CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - Software Support
  [SOLVED] simple-scan on CENTOS 6

 

 Bottom   Previous Topic   Next Topic
12>
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  pkozerski
      pkozerski
[SOLVED] simple-scan on CENTOS 6
#1
Newbie
Joined: 2011/9/27
From
Posts: 10
Hi, i cannot install very small and simple application for scanning under CENTOS 6, simple-scan. website: http://pkgs.org/download/simple-scan

Could someone tell my what libaries i have to install to be able to install simple-scan?

Quote:
# rpm -i simple-scan-3.1.5-1.fc16.x86_64.rpm
ostrzeżenie: simple-scan-3.1.5-1.fc16.x86_64.rpm: Nagłówek V3 RSA/SHA256 Signature, identyfikator klucza a82ba4b7: NOKEY
błąd: Niespełnione zależności:
libc.so.6(GLIBC_2.14)(64bit) jest wymagany przez simple-scan-3.1.5-1.fc16.x86_64
libcairo-gobject.so.2()(64bit) jest wymagany przez simple-scan-3.1.5-1.fc16.x86_64
libcolord.so.1()(64bit) jest wymagany przez simple-scan-3.1.5-1.fc16.x86_64
libgdk-3.so.0()(64bit) jest wymagany przez simple-scan-3.1.5-1.fc16.x86_64
libgtk-3.so.0()(64bit) jest wymagany przez simple-scan-3.1.5-1.fc16.x86_64
libjpeg.so.62(LIBJPEG_6.2)(64bit) jest wymagany przez simple-scan-3.1.5-1.fc16.x86_64
]/quote]
Posted on: 2011/9/27 13:17
Create PDF from Post Print
Top
  •  TrevorH
      TrevorH
Re: simple-scan on CENTOS 6
#2
Moderator
Joined: 2009/9/24
From Brighton, UK
Posts: 6361
Since it wants glibc 2.14 then you don't stand a chance of doing this this way. If there is a source RPM there then you might be able to download and rebuild it to run and install on CentOS 6 though.
_________________
Linux/VoIP Systems Administrator
Posted on: 2011/9/27 13:54
Create PDF from Post Print
Top
  •  pkozerski
      pkozerski
Re: simple-scan on CENTOS 6
#3
Newbie
Joined: 2011/9/27
From
Posts: 10
I see, could You try to rebuild it for me? because I really do not know how

http://download.fedora.redhat.com/pub/fedora/linux/development/rawhide/source/SRPMS/simple-scan-3.1.91-1.fc17.src.rpm

this source rpm will be good? if not You can download other src rpms from here http://pkgs.org/download/simple-scan

thanks in advance
Posted on: 2011/9/27 14:14
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: simple-scan on CENTOS 6
#4
Moderator
Joined: 2006/9/3
From California, US
Posts: 6921
I would try the srpm from Fedora 15 first. It is closer to CentOS 6, so you have a better chance of successful build. Then try a command similar to:

rpmbuild --rebuild --target `uname -m` simple-scan-XXX.fc15.src.rpm

Run the command as 'you', not 'root'. It probably complains about some packages required/missing. Install them by using yum (as root) and try the same rpmbuild command again (as you).

[EDIT] You need the rpm-build package to run 'rpmbuild'
_________________
Useful links: Search Forums, Forum FAQ
Posted on: 2011/9/27 15:29
Create PDF from Post Print
Top
  •  TrevorH
      TrevorH
Re: simple-scan on CENTOS 6
#5
Moderator
Joined: 2009/9/24
From Brighton, UK
Posts: 6361
There is a wiki page about How to rebuild packages that might be helpful
_________________
Linux/VoIP Systems Administrator
Posted on: 2011/9/27 16:06
Create PDF from Post Print
Top
  •  pkozerski
      pkozerski
Re: simple-scan on CENTOS 6
#6
Newbie
Joined: 2011/9/27
From
Posts: 10
Quote:

toracat wrote:
I would try the srpm from Fedora 15 first. It is closer to CentOS 6, so you have a better chance of successful build. Then try a command similar to:

rpmbuild --rebuild --target `uname -m` simple-scan-XXX.fc15.src.rpm

Run the command as 'you', not 'root'. It probably complains about some packages required/missing. Install them by using yum (as root) and try the same rpmbuild command again (as you).

[EDIT] You need the rpm-build package to run 'rpmbuild'


I did this and still some errors during rpmbuild :( could You try?

http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/source/SRPMS/simple-scan-2.32.0.1-2.fc15.src.rpm
Posted on: 2011/9/27 17:12
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: simple-scan on CENTOS 6
#7
Moderator
Joined: 2006/9/3
From California, US
Posts: 6921
Quote:

pkozerski wrote:

I did this and still some errors during rpmbuild :( could You try?

It builds fine on my system (EL6.1).

Post the errors you get so that we can help you better.
_________________
Useful links: Search Forums, Forum FAQ
Posted on: 2011/9/27 17:20
Create PDF from Post Print
Top
  •  beaker_
      beaker_
Re: simple-scan on CENTOS 6
#8
Jr Board Member
Joined: 2011/7/6
From
Posts: 43
ok, I'll say it. You're trying to rebuild a program with gtk3 dependencies. Good luck with it.

Yes you'll have better luck with 2.xx.fc15 but I'd check the change-log. Basically you want to stay under gtk3 so fc14 ~ maybe fc15 And pull in the dependencies before rebuilding. So, at minimum and for sanities sake, it should go like:

su -c 'yum-builddep YourSourcePackage.src.rpm'
rpmbuild --rebuild YourSourcePackage.src.rpm


Late Edit: Also check the scipts. It doesn't look so straght forward. You might have dive into 1.x... or do some more work.

Late late edit: Ah. monitor, job control. It should work, or be made to work.
Posted on: 2011/9/27 17:23
Create PDF from Post Print
Top
  •  pkozerski
      pkozerski
Re: simple-scan on CENTOS 6
#9
Newbie
Joined: 2011/9/27
From
Posts: 10
Quote:

toracat wrote:
Quote:

pkozerski wrote:

I did this and still some errors during rpmbuild :( could You try?

It builds fine on my system (EL6.1).

Post the errors you get so that we can help you better.


[cargo@easycargo Pobrane]$ rpmbuild --rebuild --target 'uname -m' simple-scan-2.32.0.1-2.fc15.src.rpm
Instalowanie simple-scan-2.32.0.1-2.fc15.src.rpm
ostrzeĹźenie: InstallSourcePackage at: psm.c:244: NagĹĂłwek V3 RSA/SHA256 Signature, identyfikator klucza 069c8460: NOKEY
ostrzeĹźenie: uĹźytkownik mockbuild nie istnieje - uĹźywanie roota
ostrzeĹźenie: grupa mockbuild nie istnieje - uĹźywanie roota
ostrzeĹźenie: uĹźytkownik mockbuild nie istnieje - uĹźywanie roota
ostrzeĹźenie: grupa mockbuild nie istnieje - uĹźywanie roota
Budowanie dla platform: uname -m
Budowanie dla uname -m
Wykonywanie(%prep): /bin/sh -e /var/tmp/rpm-tmp.Nb6O6s
+ umask 022
+ cd /home/cargo/rpmbuild/BUILD
+ cd /home/cargo/rpmbuild/BUILD
+ rm -rf simple-scan-2.32.0.1
+ /usr/bin/gzip -dc /home/cargo/rpmbuild/SOURCES/simple-scan-2.32.0.1.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd simple-scan-2.32.0.1
+ exit 0
Wykonywanie(%build): /bin/sh -e /var/tmp/rpm-tmp.69IHkj
+ umask 022
+ cd /home/cargo/rpmbuild/BUILD
+ cd simple-scan-2.32.0.1
+ CFLAGS=-O2
+ export CFLAGS
+ CXXFLAGS=-O2
+ export CXXFLAGS
+ FFLAGS=-O2
+ export FFLAGS
+ ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu -
 -program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/u
sr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec 
--localstatedir=/usr/var --sharedstatedir=/usr/com --mandir=/usr/share/man 
--infodir=/usr/share/info --disable-schemas-install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for x86_64-unknown-linux-gnu-gcc... no
checking for gcc... no
checking for x86_64-unknown-linux-gnu-cc... no
checking for cc... no
checking for x86_64-unknown-linux-gnu-cl.exe... no
checking for cl.exe... no
configure: error: in `/home/cargo/rpmbuild/BUILD/simple-scan-2.32.0.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
bĹÄ
d: BĹÄdny stan wyjĹia z /var/tmp/rpm-tmp.69IHkj (%build)


BĹÄdy budowania pakietu RPM:
    InstallSourcePackage at: psm.c:244: NagĹĂłwek V3 RSA/SHA256 Signature, identyfikator klucza 069c8460: NOKEY
    uĹźytkownik mockbuild nie istnieje - uĹźywanie roota
    grupa mockbuild nie istnieje - uĹźywanie roota
    uĹźytkownik mockbuild nie istnieje - uĹźywanie roota
    grupa mockbuild nie istnieje - uĹźywanie roota
    BĹÄdny stan wyjĹia z /var/tmp/rpm-tmp.69IHkj (%build)


what should i do?

will try with older ver...
Posted on: 2011/9/27 17:44
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: simple-scan on CENTOS 6
#10
Moderator
Joined: 2006/9/3
From California, US
Posts: 6921
The link TrevorH gave you has a reference to SetupRpmBuildEnvironment. You need to go through it with special attention to the Other tools you may need section.
_________________
Useful links: Search Forums, Forum FAQ
Posted on: 2011/9/27 17:52
Create PDF from Post Print
Top
  •  beaker_
      beaker_
Re: simple-scan on CENTOS 6
#11
Jr Board Member
Joined: 2011/7/6
From
Posts: 43
Ok... there we go. The easiest path is simple-scan-2.31.5-1. Rebuilt and installed. Try it if your 2.32.0.1-2 rpm fails to install.

yum list simple-scan

Installed Packages
simple-scan.x86_64           2.31.5-1.el6          @/simple-scan-2.31.5-1.el6.x86_64
Posted on: 2011/9/27 18:02
Create PDF from Post Print
Top
  •  beaker_
      beaker_
Re: simple-scan on CENTOS 6
#12
Jr Board Member
Joined: 2011/7/6
From
Posts: 43
Sorry for the double post. But if the OP's still slinging and determined to get 2.23.0.2-1's then edit your spec. CentOS doesn't like seam to like the gconf macros. Or use 2.31.5-1's spec instead.

yum list simple-scan*

Installed Packages
simple-scan.x86_64                2.32.0.2-1.el6                @/simple-scan-2.32.0.2-1.el6.x86_64
Posted on: 2011/9/27 19:25
Create PDF from Post Print
Top
  •  pkozerski
      pkozerski
Re: simple-scan on CENTOS 6
#13
Newbie
Joined: 2011/9/27
From
Posts: 10
2.31.5-1 works! thanks guys a lot :)
Posted on: 2011/9/28 7:06
Create PDF from Post Print
Top
  •  pkozerski
      pkozerski
Re: simple-scan on CENTOS 6
#14
Newbie
Joined: 2011/9/27
From
Posts: 10
I found that this version of simple-scan has bug, I cant save images to pdf...

here is a fix, script in python, but it doesnt work for me

http://bobthegnome.blogspot.com/2011/09/broken-pdfs-in-simple-scan.html

[root@easycargo Pulpit]# python
Python 2.6.5 (r265:79063, Jun 25 2011, 08:36:25)
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> execfile("python.py")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "python.py", line 3, in <module>
    lines = file (sys.argv[1]).readlines ()
IndexError: list index out of range


could someone tell me why? or how to fix this

I tried to install never versions, rpmbuild running fine but there are erros during install...
Posted on: 2011/9/28 11:06
Create PDF from Post Print
Top
  •  beaker_
      beaker_
Re: simple-scan on CENTOS 6
#15
Jr Board Member
Joined: 2011/7/6
From
Posts: 43
I'm away and haven't tried saving to pdf. I will later this evening.

Right. CentOS doesn't like the gconf macros found in 2.32.0.2-1's spec. See posts 11 & 12. But it will build and install with 2.31.5-1's spec. However I saved as a .png and haven't tried .pdf.


Late edit: Ok. So I think it was resolved in 3.1.90.
https://bugs.launchpad.net/simple-scan/+bug/741628
https://bugs.gentoo.org/show_bug.cgi?id=380429
Posted on: 2011/9/28 16:02
Create PDF from Post Print
Top
  •  pkozerski
      pkozerski
Re: simple-scan on CENTOS 6
#16
Newbie
Joined: 2011/9/27
From
Posts: 10
ok, but I do not exacly understand this, how to "edit your spec" from older ver to 2.32.0.2-1?

Please try do save to pdf when You will be at home, In older ver I can save, but it doesnt open after save
Posted on: 2011/9/28 16:17
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: simple-scan on CENTOS 6
#17
Moderator
Joined: 2006/9/3
From California, US
Posts: 6921
I can see simple-scan is a nice program. But if running it on CentOS becomes rather problematic, you might want to consider looking at gscan2pdf. It is available from repoforge (formerly rpmforge). I've been using it on CentOS 5 and 6 with great success.
_________________
Useful links: Search Forums, Forum FAQ
Posted on: 2011/9/28 16:23
Create PDF from Post Print
Top
  •  beaker_
      beaker_
Re: simple-scan on CENTOS 6
#18
Jr Board Member
Joined: 2011/7/6
From
Posts: 43
+1 in trying something else.

However, I can save and reopen single & multi page pdfs in 2.32.0.2-1 without difficulty. Verified with okular, gimp, and libreoffice. The rpm is only 190kb and I don't know where I can upload this for you. Suggestions? Umm nope, I'm not opening this repo to the wild. Then again, considering you've been trying to install from source, who's to say something isn't lingering around.


Late Edit: Yep..., just pushed through a 20 page document and it saved as a multipage pdf without a problem.
Posted on: 2011/9/29 0:45
Create PDF from Post Print
Top
  •  megatux
      megatux
Re: simple-scan on CENTOS 6
#19

Joined: 2010/7/3
From
Posts: 50
simple-scan-2.32.0.2 is now available in my repo at: http://pkgrepo.linuxtech.net/el6/testing/x86_64/

I have built and tested it on SL6.1, but I imagine it should work fine on Centos6 too.

Please let us know if it works for you.
Posted on: 2011/9/29 2:12
Create PDF from Post Print
Top
  •  pkozerski
      pkozerski
Re: simple-scan on CENTOS 6
#20
Newbie
Joined: 2011/9/27
From
Posts: 10
ver from megatux repos works great! I can save to pdf, thanks guys a lot!
Posted on: 2011/9/29 12:55
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic
12>

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com