LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-24-2005, 02:52 PM   #1
greghua
LQ Newbie
 
Registered: Apr 2005
Posts: 19

Rep: Reputation: 0
Anjuta 2.0 install problem


I am trying to install Anjuta 2.0 in my computer, When I run ./configure, follow error information appeared:

checking for libgnomeprint-2.2 >= 2.4.0... Package libgnomeprint-2.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgnomeprint-2.2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgnomeprint-2.2' found

configure: error: Library requirements (libgnomeprint-2.2 >= 2.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.


I thought it may be because I didn't install libgnomeprint, then I installed libgnomeprint-2.10.3 in the computer, and try agian, the same error information appeared. Please help, I am just a beginner of linux. Thanks!
 
Old 05-24-2005, 03:16 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
distro? method used to install libgnomeprint? did you modify you PKG_CONFIG_PATH environment variable?
 
Old 05-24-2005, 04:03 PM   #3
greghua
LQ Newbie
 
Registered: Apr 2005
Posts: 19

Original Poster
Rep: Reputation: 0
It's CentOs
I logged on as root, and do following things:
./configure
make
make install

to install the libgnomeprint and didn't modify PKG_CONFIG_PATH environment variable.
Do you have any idea? Thanks!


Quote:
Originally posted by __J
distro? method used to install libgnomeprint? did you modify you PKG_CONFIG_PATH environment variable?
 
Old 05-25-2005, 03:44 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You need to install the libgnomeprint development package.
 
Old 05-25-2005, 05:03 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
if you did ./configure, make, make install you need to:

Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
make sure you don't already have one installed somewhere else, if you do, it's better to replace that one than to install another one in parallel in a different location. also, since you are installing into /usr/local, you might want to consider looking into a method of creating packages ( rpmbuild or checkinstall) if you care about being able to remove/upgrade these libs later on.
 
Old 05-25-2005, 10:49 AM   #6
greghua
LQ Newbie
 
Registered: Apr 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks! I tried, but it still does not work.
I check the dectory /usr/local/lib, I found a libgnomeprint-2.2 there. So maybe it is because the originally intstalled version is too old. How can I get rid of it and use the new one? Thanks!

Quote:
Originally posted by __J
if you did ./configure, make, make install you need to:

Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
make sure you don't already have one installed somewhere else, if you do, it's better to replace that one than to install another one in parallel in a different location. also, since you are installing into /usr/local, you might want to consider looking into a method of creating packages ( rpmbuild or checkinstall) if you care about being able to remove/upgrade these libs later on.
 
Old 05-25-2005, 03:19 PM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by greghua
Thanks! I tried, but it still does not work.
I check the dectory /usr/local/lib, I found a libgnomeprint-2.2 there. So maybe it is because the originally intstalled version is too old. How can I get rid of it and use the new one? Thanks!
/usr/local/lib or /usr/local/lib/pkgconfig? just remove the old package if you have an older one installed. you never mentioned what distro you are running, so can't help you there.
 
Old 05-25-2005, 06:38 PM   #8
greghua
LQ Newbie
 
Registered: Apr 2005
Posts: 19

Original Poster
Rep: Reputation: 0
It's CentOs.
I use rpm -e remove the old one. and download a libgnomeprint-2.4.2-1.i686.rpm rpm package.
I run rmp -i libgnomeprint-2.4.2-1.i686.rpm
And I can find the program is installed by using rpm -q -a,
but it still does not work when I try to install Anjuta2.0. The same error message.
Any idea? Thanks!


Quote:
Originally posted by __J
/usr/local/lib or /usr/local/lib/pkgconfig? just remove the old package if you have an older one installed. you never mentioned what distro you are running, so can't help you there.
 
Old 05-26-2005, 06:48 AM   #9
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by greghua
It's CentOs.
I use rpm -e remove the old one. and download a libgnomeprint-2.4.2-1.i686.rpm rpm package.
I run rmp -i libgnomeprint-2.4.2-1.i686.rpm
And I can find the program is installed by using rpm -q -a,
but it still does not work when I try to install Anjuta2.0. The same error message.
Any idea? Thanks!
you're running an rpm distro, so the libgnomeprint-2.4.2-xxxx will only solve one of your problems, to compile against it, you need the matching -devel package, get it from the same place you got the other rpm. should be something along the lines of "libgnomeprint-2.4.2-devel-i686.rpm"
 
Old 05-26-2005, 10:12 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Exactly what I'd said in my previous post, but nobody seems to have noticed it.
 
Old 05-26-2005, 03:36 PM   #11
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
he installed it from source earlier, in /usr/local.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Please help to install anjuta-1.2.2 in Fedora Core 3 shoma1508 Linux - Software 1 12-09-2004 08:45 AM
Anjuta install gjmwalsh Mandriva 0 05-08-2004 07:00 PM
What is the proper directory to install libraries/dependecies of Gnome/Anjuta? jdruin Linux - Software 0 12-05-2003 02:20 PM
Can't install Anjuta dustinwu Mandriva 0 12-01-2003 07:07 AM
anjuta problem Cii Linux - Software 3 09-01-2003 07:48 PM

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

All times are GMT -5. The time now is 07:07 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