Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-02-2002, 11:17 PM   #1
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
compile..can't find library files

I'm trying to compile gtk+2.0
should be stupid error..

i have /usr/local/lib in file
[root@beautifulmind gtk+-2.0.9]# cat /etc/
[root@beautifulmind gtk+-2.0.9]#

i did ldconfig as root is at /usr/local/lib not at /usr/lib
how can i solve this nicely?
thank you

libtool: link: warning: `/usr/lib/' seems to be moved
grep: /usr/lib/ No such file or directory
/bin/sed: can't read /usr/lib/ No such file or directory
libtool: link: `/usr/lib/' is not a valid libtool archive
make[3]: *** [] Error 1
Old 12-02-2002, 11:21 PM   #2
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
you can create a symlink in /usr/lib to point to the "missing" library
cd /usr/lib
ln -s /usr/local/lib/
Old 12-02-2002, 11:29 PM   #3
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
actually i did that
but diferent files popped up

i don't want to link in *.la files =)

thanks though
Old 12-03-2002, 03:11 AM   #4
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Have you tried removing /etc/ and then running ldconfig again?
Also you should probably either remove some conf file in the source tree of gtk or start from a clean source tree.

Oh nevermind I noticed it's an la file and not an so file. Well what does it say in the .la file itself? It should contain a line at the end which specifies the libdir, is that still set to /usr/lib?

Last edited by Mik; 12-03-2002 at 03:18 AM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting a different library path on compile brainlesspinkey Linux - Software 7 11-13-2005 06:42 PM
compile error srgp library in C csst0136 Programming 13 10-25-2005 10:36 PM
x86_64 library compile problem zypo Fedora 1 10-10-2005 05:46 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 05:20 AM
How to compile a tiny simple library by g++? Xiangbuilder Programming 13 10-20-2003 09:33 PM

All times are GMT -5. The time now is 10:47 AM.

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