LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-30-2006, 05:43 AM   #1
RhysBJ
LQ Newbie
 
Registered: Jun 2006
Distribution: Fedora Core
Posts: 17

Rep: Reputation: 0
pkg-config problems


I'm trying to build Anjuta, but for that I need to first build gdl-1.0. I've installed gdl, but it's been installed into /usr/local/lib not /usr/lib. gdl-1.0.pc is in /usr/local/lib/pkg-config, but when I run pkg-config --libs gdl-1.0 I get the error: Package gdl-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gdl-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gdl-1.0' found

I'm guessing that I need to include /usr/local/lib/pkg-config in the pkg-config search path.

Is this correct? If so how do I do it? It not, what should I do to solve this?
 
Old 06-30-2006, 07:00 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,925

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
You can either copy gdl-1.0.pc in /usr/lib/pkgconfig, or define PKG_CONFIG_PATH:
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
 
Old 06-30-2006, 07:09 AM   #3
RhysBJ
LQ Newbie
 
Registered: Jun 2006
Distribution: Fedora Core
Posts: 17

Original Poster
Rep: Reputation: 0
Thank you
 
Old 06-30-2006, 10:26 AM   #4
RhysBJ
LQ Newbie
 
Registered: Jun 2006
Distribution: Fedora Core
Posts: 17

Original Poster
Rep: Reputation: 0
I managed to install anjuta, but now it crashes on start up with the following error:
anjuta: error while loading shared libraries: libanjuta.so.0: cannot open shared object file: No such file or directory
This file is in /usr/local/lib/, and I have copied libanjuta-1.0.pc to /usr/lib/pkgconfig
 
Old 06-30-2006, 04:01 PM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,925

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
You should put /usr/local/lib in /etc/ld.so.conf and then run:
Code:
ldconfig
You can also add the following line in /etc/profile:
Code:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
 
Old 06-30-2006, 05:26 PM   #6
RhysBJ
LQ Newbie
 
Registered: Jun 2006
Distribution: Fedora Core
Posts: 17

Original Poster
Rep: Reputation: 0
That fixed it, though /usr/local/lib was already in ld.so.conf and I had already run ldconf after it had been added. This was a couple of days ago though...
 
Old 06-30-2006, 05:37 PM   #7
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,925

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
You have to run ldconfig everytime you add new libraries if it's not done by the "make install", if you want to make them available, right away after the installation, to other programs.
 
  


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
pkg-config brimble2010 Suse/Novell 3 05-19-2008 08:01 AM
pkg-config version problems Spooled Linux - Software 0 09-04-2005 04:53 PM
Problems with PKG-Config wmustudent99 Linux - Newbie 2 02-04-2005 04:34 AM
I got problems with pkg-config and pango Boogieman Mandriva 1 09-11-2003 08:45 PM
pkg-config Keebler Linux - Software 2 04-30-2003 02:10 PM


All times are GMT -5. The time now is 07:36 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration