LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-20-2005, 12:39 PM   #1
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Rep: Reputation: 31
cant find library


i am trying to install a game so i run configure and it exits with this:

checking for sigc++-1.2... Package sigc++-1.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sigc++-1.2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sigc++-1.2' found

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




so installed libsigc++-1.2.5.tar.gz to the /lib folder and still get the same message. what should i do?
 
Old 02-20-2005, 12:55 PM   #2
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Original Poster
Rep: Reputation: 31
so i did some more searching and i found that if i run:
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/

before the configure then it works
 
Old 02-20-2005, 01:00 PM   #3
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
most software you'll download will install, by default, into /usr/local as opposed to /usr

Sometimes you want this, sometimes you don't. If you want it to install into /usr, when "configuring", usually just adding --prefix=/usr will fix it. Example.
./configure --prefix=/usr
By default as well, pkgconfig doesn't search /usr/local/lib/pkgconfig and you have to explicitly add it to your PKG_CONFIG_PATH like you did.
 
Old 02-20-2005, 06:21 PM   #4
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Original Poster
Rep: Reputation: 31
ok differnet problem now. i need to install SDL_ttf-2.0.7 and i installed it in /lib and now when i configure it cant find where i installed it. where should i install it?
 
Old 02-21-2005, 12:53 PM   #5
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
What do you mean you installed it in /lib... /lib is suppose to be used for libraries that are needed at startup. SDL_ttf shouldn't be installed there, /usr/lib is a good for it. You'll download the file, uncompress it, then run
./configure --prefix=/usr
After which you'll run make && su -c 'make install'
After this you may need to run ldconfig as root
 
Old 02-21-2005, 09:32 PM   #6
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Original Poster
Rep: Reputation: 31
ok thanks. it works now. i guess i should read up on where to install things.
 
  


Reply



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
gd 2.0.15 cannot find jpeg library bluestorm Linux - Software 2 06-17-2009 06:33 PM
Can't find ltdl library! m3s3lf Linux - Software 14 12-01-2004 11:27 PM
How To Find Out What A Library Does? nysb Linux - Software 1 05-27-2004 10:46 AM
Cannot find path for library Baran Linux - Newbie 5 09-03-2003 04:46 AM
gcc cannot find -lc library DarkDrive Linux - Software 1 08-08-2003 05:05 PM

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

All times are GMT -5. The time now is 08:04 AM.

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