LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-09-2009, 12:37 PM   #1
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 83

Rep: Reputation: 15
cannot install manually gutenprint


OS: Centos 5.3

I downloaded gutenprint-5.2.4.tar.bz2 from http://sourceforge.net/projects/gimp...utenprint-5.2/

Have follow http://ftp.evolva.ro/zenwalk/source/...-gutenprint.sh

but when I make -j2 i discovered some error in the config.log file.

Code:
configure:5834: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[   ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm
configure:5837: $? = 0
configure:5891: gcc -o conftest -O2 -march=i486 -mtune=i686   conftest.c conftstm.o >&5
configure:5894: $? = 0
configure:5932: result: ok
configure:6799: checking how to run the C preprocessor
configure:6839: gcc -E  conftest.c
configure:6846: $? = 0
configure:6877: gcc -E  conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
when I google around "conftest.c:10:28: error: ac_nonexistent.h: No such file or directory"

from http://osdir.com/ml/linux.drivers.op.../msg00048.html, it suggest make clean

I've done a make clean, then make -j2, but still the error is still in config.log.


from http://osdir.com/ml/linux.drivers.op.../msg00048.html, it suggest make clean
Quote:
It seems you're missing development headers for a bunch of packages.
Check they are actually missing and possibly try to 'make clean' before
trying to build again.
in the first place how do I know which development packages are missing? I've already done

Code:
yum groupinstall 'Development Tools'
How should I resolved this bugging issues?

thanks a lot!
 
Old 09-09-2009, 04:13 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'build-gutenprint.sh' is for zenwalk / slackware.
( arch = i486 , should be i386.? )
and probably also missing out the patching in this one
http://download.fedora.redhat.com/pu...2.fc12.src.rpm
> > gutenprint-5.2.4-2.fc12.src.rpm ( source code, etc. etc.)
.. to be unpacked to /usr/src/redhat/SOURCES/

# yum install \
foomatic gimp-devel cups-devel gettext-devel libtiff-devel libtool \
libpng-devel libjpeg-devel gtk2-devel ghostscript-devel chrpath rpm-build

# rpmbuild -bb gutenprint-2el5.spec

gutenprint-2el5.spec :
line 7 was edited to "el5" : Release: 2el5%{?dist}
line 226 : %{_libdir}/gimp/*/plug-ins/print
... meaning : no plugin 'gutenprint', but 'print'
( If asked for, then please make a link 'gutenprint' ....
... only the file "print" was created...)

The specfile is attached as gutenprint-2el5.spec.txt
The created gutenprint RPMS ( 7 packages ) can be found in
/usr/src/redhat/RPMS/i386
.....
Good luck !
.....
Attached Files
File Type: txt gutenprint-2el5.spec.txt (14.4 KB, 18 views)

Last edited by knudfl; 09-10-2009 at 05:05 AM.
 
Old 09-10-2009, 09:24 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Appendix .... Plugin 'gutenprint' versus 'print'.
[knudfl@localhost gutenprint-5.2.4]$ cat -n configure | grep plugin
> > >
[knudfl@localhost gutenprint-5.2.4]$ cat -n configure | grep -iA 6 25583
Code:
 25583  if test "$BUILD_GIMP2" != "no" ; then
 25584      echo "    Build enhanced Print plugin for GIMP:       yes"
 25585      if test "$BUILD_GIMP2_AS_GUTENPRINT" != "no" ; then
 25586          echo "        GIMP plugin will be named:              gutenprint"
 25587      else
 25588          echo "        GIMP plugin will be named:              print"
 25589      fi
 
Old 09-12-2009, 01:30 PM   #4
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
Appendix .... Plugin 'gutenprint' versus 'print'.
[knudfl@localhost gutenprint-5.2.4]$ cat -n configure | grep plugin
> > >
[knudfl@localhost gutenprint-5.2.4]$ cat -n configure | grep -iA 6 25583
Code:
 25583  if test "$BUILD_GIMP2" != "no" ; then
 25584      echo "    Build enhanced Print plugin for GIMP:       yes"
 25585      if test "$BUILD_GIMP2_AS_GUTENPRINT" != "no" ; then
 25586          echo "        GIMP plugin will be named:              gutenprint"
 25587      else
 25588          echo "        GIMP plugin will be named:              print"
 25589      fi
sorry I don't get what the above means. I follow your advice and this is my ouput after I edit the gutenprint.spec and rpmbuild -ba gutenprint.spec

Code:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/gutenprint-5.2.4-2el5-root-doordie
Wrote: /home/doordie/rpmbuild/SRPMS/gutenprint-5.2.4-2el5.src.rpm
Wrote: /home/doordie/rpmbuild/RPMS/i386/gutenprint-5.2.4-2el5.i386.rpm
Wrote: /home/doordie/rpmbuild/RPMS/i386/gutenprint-doc-5.2.4-2el5.i386.rpm
Wrote: /home/doordie/rpmbuild/RPMS/i386/gutenprint-devel-5.2.4-2el5.i386.rpm
Wrote: /home/doordie/rpmbuild/RPMS/i386/gutenprint-plugin-5.2.4-2el5.i386.rpm
Wrote: /home/doordie/rpmbuild/RPMS/i386/gutenprint-foomatic-5.2.4-2el5.i386.rpm
Wrote: /home/doordie/rpmbuild/RPMS/i386/gutenprint-extras-5.2.4-2el5.i386.rpm
Wrote: /home/doordie/rpmbuild/RPMS/i386/gutenprint-cups-5.2.4-2el5.i386.rpm
Wrote: /home/doordie/rpmbuild/RPMS/i386/gutenprint-debuginfo-5.2.4-2el5.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.74346
according to http://thesorcerer.wordpress.com/200...nter-in-linux/

Quote:
first of all, what do you need ? This time I’m not giving direct rpms links, just to avoid mistakes, and make the guide more easy…

Install Cups (usually already installed, it’s better if 1.3.4 or newer)

Install Gutenprint (please use the lastest, at least the 5.0.1, do not use the old one included in fedora’s 7 CD)

Install gutenprint-foomatic

Install the Mp160 Printer Drivers ver. 2.70 avaiable from Canon (RPM and Source code avaible — they’re useful even for Mp150 — file names are cnijfilter-common-2.70-1.i386.rpm & cnijfilter-mp160-2.70-1.i386.rpm)
so I install gutenprint-foomatic

here's my output

Code:
[doordie@localhost SPECS]$ su -c' rpm -qi gutenprint'
Password: 
Name        : gutenprint                   Relocations: (not relocatable)
Version     : 5.2.4                             Vendor: (none)
Release     : 2el5                          Build Date: Sun 13 Sep 2009 02:11:03 AM EDT
Install Date: Sun 13 Sep 2009 02:19:28 AM EDT      Build Host: localhost.localdomain
Group       : System Environment/Base       Source RPM: gutenprint-5.2.4-2el5.src.rpm
Size        : 15070804                         License: GPLv2+
Signature   : (none)
URL         : http://gimp-print.sourceforge.net/
Summary     : Printer Drivers Package.
Description :
Gutenprint is a package of high quality printer drivers for Linux, BSD,
Solaris, IRIX, and other UNIX-alike operating systems.
Gutenprint was formerly called Gimp-Print.
[doordie@localhost SPECS]$ su -c 'rpm -Uvh /home/doordie/rpmbuild/RPMS/i386/gutenprint-foomatic-5.2.4-2el5.i386.rpm'
Password: 
error: Failed dependencies:
        libgimpprint.so.1 is needed by (installed) gimp-print-plugin-4.2.7-22.2.el5.i386
        gimp-print = 4.2.7-22.2.el5 is needed by (installed) gimp-print-plugin-4.2.7-22.2.el5.i386
so I try to install libgimpprint but fails
Code:
[root@localhost ~]# yum install libgimpprint
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * rpmforge: apt.sw.be
 * base: ftp.oss.eznetsols.org
 * updates: mirror.intrapower.net.au
 * addons: mirror.intrapower.net.au
 * extras: mirror.intrapower.net.au
410 packages excluded due to repository priority protections
Setting up Install Process
Parsing package install arguments
No package libgimpprint available.
Nothing to do
and I think this mistake is related to what u have mentioned.

any help rendered is really greatly appreciated.
 
Old 09-12-2009, 02:09 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
  • usr/lib/libgimpprint.so.1 is provided by 'gimp-print'
  • ...
  • # yum -y install gimp-print
This is one of the things, very easy to find..
and also to get info about in a sec :
# yum whatprovides libgimpprint.so.1
... Or use the "Search window" in
http://rpm.pbone.net/index.php3/stat/2/simple/2
> > Advanced Search → → CentOS5 + RH EL5
.....

Last edited by knudfl; 09-12-2009 at 02:15 PM.
 
Old 09-13-2009, 12:01 PM   #6
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 83

Original Poster
Rep: Reputation: 15
Code:
[doordie@localhost gutenprint-5.2.4]$ cat -n configure | grep -iA 6 25583
 25583  if test "$BUILD_GIMP2" != "no" ; then
 25584      echo "    Build enhanced Print plugin for GIMP:       yes"
 25585      if test "$BUILD_GIMP2_AS_GUTENPRINT" != "no" ; then
 25586          echo "        GIMP plugin will be named:              gutenprint"
 25587      else
 25588          echo "        GIMP plugin will be named:              print"
 25589      fi
[doordie@localhost gutenprint-5.2.4]$ man yum
[doordie@localhost gutenprint-5.2.4]$
it is the same as yours.

For the following error both libgimpprint and gimp-print are both installed.
Code:
error: Failed dependencies:
        libgimpprint.so.1 is needed by (installed) gimp-print-plugin-4.2.7-22.2.el5.i386
        gimp-print = 4.2.7-22.2.el5 is needed by (installed) gimp-print-plugin-4.2.7-22.2.el5.i386
for verification of libgimpprint.so.1
Code:
[root@localhost ~]# yum whatprovides libgimpprint.so.1
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * rpmforge: apt.sw.be
 * base: mirror.primusdatacentre.com.au
 * updates: mirror.pacific.net.au
 * addons: mirror.pacific.net.au
 * extras: mirror.pacific.net.au
410 packages excluded due to repository priority protections
gimp-print-4.2.7-22.2.el5.i386 : A collection of high-quality printer drivers.
Matched from:
Other       : libgimpprint.so.1



gimp-print-4.2.7-22.2.el5.i386 : A collection of high-quality printer drivers.
Matched from:
Other       : Provides-match: libgimpprint.so.1
for verification of gimp-print
Code:
[root@localhost ~]# rpm -ri gimp-print
rpm: arguments to --root (-r) must begin with a /
[root@localhost ~]# rpm -qi gimp-print
Name        : gimp-print                   Relocations: (not relocatable)
Version     : 4.2.7                             Vendor: CentOS
Release     : 22.2.el5                      Build Date: Thu 26 Feb 2009 05:21:36
both libgimpprint and gimp-print are already installed why the error?

thanks a lot!
 
Old 09-14-2009, 01:00 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
So what is the package you name 'libgimpprint' ?
And from where did you get it ?

I don't know of any such package for EL5 / CentOS 5.x.
 
Old 09-14-2009, 02:31 AM   #8
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 83

Original Poster
Rep: Reputation: 15
my distribution Centos 5.3

Quote:
So what is the package you name 'libgimpprint' ?
And from where did you get it ?
sorry don't get what u mean when u ask what is the package u name libgimpprint?

I believe I get it from installation of gutenprint

Code:
[root@localhost ~]# yum whatprovides libgimpprint.so.1
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * rpmforge: apt.sw.be
 * base: mirror.primusdatacentre.com.au
 * updates: mirror.pacific.net.au
 * addons: mirror.pacific.net.au
 * extras: mirror.pacific.net.au
410 packages excluded due to repository priority protections
gimp-print-4.2.7-22.2.el5.i386 : A collection of high-quality printer drivers.
Matched from:
Other       : libgimpprint.so.1
the above code states that libgimpprint is part of gimp-print, right? And since on http://gutenprint.sourceforge.net/

it stated

Quote:
Gimp-Print Becomes Gutenprint
I believe the libgimpprint.so.1 appears after the installation of gutenprint.

but as stated in http://thesorcerer.wordpress.com/200...nter-in-linux/

I need to install Install gutenprint-foomatic in order to set up canon Mp 160

as to How to install gutenprint, I follow your instructions

Quote:
probably also missing out the patching in this one
http://download.fedora.redhat.com/pu...2.fc12.src.rpm
so I download gutenprint-5.2.4-4.fc10.src.rpm and do a rpmbuild.

after that I edited the gutenprint-5.2.4-4.spec

as stated by you

Quote:
line 7 was edited to "el5" : Release: 2el5%{?dist}
line 226 : %{_libdir}/gimp/*/plug-ins/print
and later as stated on http://www.owlriver.com/tips/patching_srpms/

after rebuild with the new specification files, all the rpms will be build in a directory.

Code:
[doordie@localhost gutenprint-5.2.4-5]$ ls -lrth ~/rpmbuild/RPMS/i386/
total 12M
-rw-r--r-- 1 doordie doordie 824K Sep 13 02:11 gutenprint-doc-5.2.4-2el5.i386.rpm
-rw-r--r-- 1 doordie doordie 3.1M Sep 13 02:11 gutenprint-5.2.4-2el5.i386.rpm
-rw-r--r-- 1 doordie doordie  17K Sep 13 02:11 gutenprint-plugin-5.2.4-2el5.i386.rpm
-rw-r--r-- 1 doordie doordie 957K Sep 13 02:11 gutenprint-devel-5.2.4-2el5.i386.rpm
-rw-r--r-- 1 doordie doordie 4.8M Sep 13 02:11 gutenprint-foomatic-5.2.4-2el5.i386.rpm
-rw-r--r-- 1 doordie doordie 634K Sep 13 02:11 gutenprint-extras-5.2.4-2el5.i386.rpm
-rw-r--r-- 1 doordie doordie 379K Sep 13 02:11 gutenprint-cups-5.2.4-2el5.i386.rpm
-rw-r--r-- 1 doordie doordie 1.2M Sep 13 02:11 gutenprint-debuginfo-5.2.4-2el5.i386.rpm
From there I su -c 'rpm _Uvh gutenprint-5.2.4-2el5.i386.rpm'

next I need to install gutenprint-foomatic

Code:
[doordie@localhost i386]$ su -c 'rpm -Uvh gutenprint-foomatic-5.2.4-2el5.i386.rpm'
Password: 
error: Failed dependencies:
        libgimpprint.so.1 is needed by (installed) gimp-print-plugin-4.2.7-22.2.el5.i386
        gimp-print = 4.2.7-22.2.el5 is needed by (installed) gimp-print-plugin-4.2.7-22.2.el5.i386
but am I in the right track in the first place?

so why is the compiler complaining that libgimpprint.so.1 and gimp-print = 4.2.7-22.2.el5 are needed when they are in fact installed?

any help rendered is greatly appreciated.

Code:
[root@localhost ~]# ls -lrth /usr/lib/libgimpprint.so.1
lrwxrwxrwx 1 root root 21 Aug 14 01:49 /usr/lib/libgimpprint.so.1 -> libgimpprint.so.1.1.3
[root@localhost ~]# rpm -qi gimp-print
Name        : gimp-print                   Relocations: (not relocatable)
Version     : 4.2.7                             Vendor: CentOS
Release     : 22.2.el5                      Build Date: Thu 26 Feb 2009 05:21:36 PM EST
Install Date: Fri 14 Aug 2009 01:49:48 AM EDT      Build Host: chamkaur.karan.org
Group       : System Environment/Libraries   Source RPM: gimp-print-4.2.7-22.2.el5.src.rpm
Size        : 4325843                          License: GPL
Signature   : DSA/SHA1, Sun 08 Mar 2009 09:45:35 PM EDT, Key ID a8a447dce8562897
Packager    : Karanbir Singh <kbsingh@karan.org>
URL         : http://gimp-print.sourceforge.net/
Summary     : A collection of high-quality printer drivers.
Description :
These drivers provide printing quality for UNIX/Linux in many cases equal
to or better than proprietary vendor-supplied drivers, and can be used for
many of the most demanding printing tasks.
thanks a lot!
 
Old 09-14-2009, 03:02 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The reason, I ask , is this line, post # 6
Quote:
both libgimpprint and gimp-print are both installed.
Well, enough about that, the issue is, gutenprint-foomatic
needs the option " --nodeps " to install :

rpm -Uvh --nodeps gutenprint-foomatic-5.2.4-2el5.i386.rpm

.. This happens for one out of 100(0) ? packages.
.. The rpm package management is only 99.(9) % reliable, I guess.
.....

Last edited by knudfl; 09-14-2009 at 08:49 AM.
 
  


Reply

Tags
el5, gutenprint



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to manually add SATA driver manually when kernel boot? aixilin Linux - Kernel 6 08-15-2008 10:36 AM
Souncard detection + gutenprint foomatic install Alex_2007 Linux - Newbie 2 02-08-2007 08:09 PM
Manually Install Flash carlosinfl Linux - Software 17 04-25-2006 12:05 PM
manually install mysql, php, and apache or install from CD? FiveFlat Linux - Software 5 12-15-2005 01:12 PM
How to install lilo manually kool_kid Slackware - Installation 17 02-03-2005 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration