[SOLVED] simple-scan on CENTOS 6

Issues related to applications and software problems

[SOLVED] simple-scan on CENTOS 6

Postby pkozerski » 2011/09/27 13:17:06

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]
pkozerski
 
Posts: 10
Joined: 2011/09/27 13:10:43

Re: simple-scan on CENTOS 6

Postby TrevorH » 2011/09/27 13:54:38

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.
User avatar
TrevorH
Forum Moderator
 
Posts: 9108
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: simple-scan on CENTOS 6

Postby pkozerski » 2011/09/27 14:14:33

I see, could You try to rebuild it for me? because I really do not know how

http://download.fedora.redhat.com/pub/f ... 17.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
pkozerski
 
Posts: 10
Joined: 2011/09/27 13:10:43

[SOLVED] simple-scan on CENTOS 6

Postby toracat » 2011/09/27 15:29:34

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:

Code: Select all
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'
User avatar
toracat
Forum Moderator
 
Posts: 6687
Joined: 2006/09/03 16:37:24
Location: California, US

Re: simple-scan on CENTOS 6

Postby TrevorH » 2011/09/27 16:06:19

There is a wiki page about How to rebuild packages that might be helpful
User avatar
TrevorH
Forum Moderator
 
Posts: 9108
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: simple-scan on CENTOS 6

Postby pkozerski » 2011/09/27 17:12:48

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:

Code: Select all
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/f ... 15.src.rpm
pkozerski
 
Posts: 10
Joined: 2011/09/27 13:10:43

Re: simple-scan on CENTOS 6

Postby toracat » 2011/09/27 17:20:48

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.
User avatar
toracat
Forum Moderator
 
Posts: 6687
Joined: 2006/09/03 16:37:24
Location: California, US

Re: simple-scan on CENTOS 6

Postby beaker_ » 2011/09/27 17:23:03

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:

Code: Select all
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.
beaker_
 
Posts: 43
Joined: 2011/07/06 15:28:39

Re: simple-scan on CENTOS 6

Postby pkozerski » 2011/09/27 17:44:58

toracat wrote:
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.


Code: Select all
[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...
pkozerski
 
Posts: 10
Joined: 2011/09/27 13:10:43

Re: simple-scan on CENTOS 6

Postby toracat » 2011/09/27 17:52:07

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.
User avatar
toracat
Forum Moderator
 
Posts: 6687
Joined: 2006/09/03 16:37:24
Location: California, US

Next

Return to CentOS 6 - Software Support

Who is online

Users browsing this forum: No registered users and 1 guest