LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2004, 03:33 PM   #1
DDD26
LQ Newbie
 
Registered: Dec 2004
Location: CA
Distribution: Red Hat 9.0
Posts: 13

Rep: Reputation: 0
Problem accessing libraries


I have installed coin3d to be used as a visualization tool in some C++ code. Now I am running into a problem with libraries. When I run the compiled code I get an error:

$ g++ -Wno-deprecated -lCoin -lSoXt -o main test.C
$ ./main
./main: error while loading shared libraries: libCoin.so.40: cannot open shared object file: Error 40


I checked the libraries and they are in /usr/local/lib, where the installation put them.

Anybody know how to solve this problem?

Thanks a lot.
 
Old 12-16-2004, 03:42 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Are they being mentioned when you run an ldconfig?

ldconfig -v | grep -i coin





Cheers,
Tink
 
Old 12-16-2004, 04:27 PM   #3
DDD26
LQ Newbie
 
Registered: Dec 2004
Location: CA
Distribution: Red Hat 9.0
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks. I tried that and it gives me:

# /sbin/ldconfig -v | grep -i coin
/sbin/ldconfig: Cannot stat /usr/lib/libCoin.so: Too many levels of symbolic links
/sbin/ldconfig: Cannot stat /usr/lib/libCoin.so.40: Too many levels of symbolic links
/sbin/ldconfig: Cannot stat /usr/lib/libCoin.so.40.3.0: Too many levels of symbolic links
/sbin/ldconfig: Cannot stat /usr/lib/libsimage.so: Too many levels of symbolic links
/sbin/ldconfig: Cannot stat /usr/lib/libsimage.so.20: Too many levels of symbolic links
/sbin/ldconfig: Cannot stat /usr/lib/libsimage.so.20.6.1: Too many levels of symbolic links
/sbin/ldconfig: Cannot stat /usr/lib/libSoXt.so: Too many levels of symbolic links
/sbin/ldconfig: Cannot stat /usr/lib/libSoXt.so.2: Too many levels of symbolic links
/sbin/ldconfig: Cannot stat /usr/lib/libSoXt.so.2.0.0: Too many levels of symbolic links
libCoin.so.40 -> libCoin.so.40.3.0
#

Can it be the problem that these are symbolic links?
 
Old 12-16-2004, 04:32 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Never ran into that myself but I'd almost definitely
say YES to that ;0
If ldconfig can't make sense of the file the linker
won't either.


Cheers,
Tink
 
Old 12-16-2004, 04:38 PM   #5
DDD26
LQ Newbie
 
Registered: Dec 2004
Location: CA
Distribution: Red Hat 9.0
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks. I will try to clean up symbolic links and see if it helps. Meanwhile, adding -L/usr/local/lib to g++ helped it to find the libraries.
 
  


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
my compiler problem is in the libraries dogbird Linux - Software 1 11-25-2004 05:01 PM
a problem with libraries in slack 9.0 dogbird Slackware 1 11-25-2004 03:54 AM
Missing X Libraries problem albert106 Linux - Newbie 1 09-12-2004 01:34 PM
problem with installing libraries slano Linux - Software 2 12-11-2003 06:09 PM
Problem With Libraries. flamesrock Linux - Software 4 10-13-2003 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration