Thread: Problem with custom shared library

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    13

    Problem with custom shared library

    Hi,
    I created a shared Library called libTree.so to be used with a program called Insert.
    When doing it in a Mandrake 10 machine (2.6.3-7mkd, i686) , everything works fine
    The problem occured when i copy all the files to a Fedora Core 4 machine (2.6.11-1.1369_FC4.stk16, i686) and try to run it. The error is:

    Code:
    error while loading shared libraries: libTree.so: cannot open shared object file: No such file or directory
    Have tried to add the path to LD_LIBRARY_PATH and even copy the libTree.so to /usr/local/bin; but no help.

    Does anyone know why it is ?

    Thanks in advance.
    Cheers.

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Are you running ldconfig as root after copying the library over (to some place in LD_LIBRARY_PATH)?
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    13
    What's ldconfig and how to check if i were running it or not ?

    Thanks.

  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    http://www.die.net/doc/linux/man/man8/ldconfig.8.html

    You'd know whether or not you ran it or not, by whether or not you ran it or not. It sounds like you didn't.
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. shared library for QNX
    By ReeV in forum C Programming
    Replies: 3
    Last Post: 05-06-2009, 10:58 AM
  2. Library Problem
    By evetevet in forum C Programming
    Replies: 4
    Last Post: 01-18-2009, 11:07 AM
  3. Creating a custom library
    By officedog in forum C Programming
    Replies: 3
    Last Post: 11-11-2008, 10:33 AM
  4. DLL Function / Load Library Problem
    By cboard_member in forum Windows Programming
    Replies: 5
    Last Post: 12-10-2005, 10:11 AM
  5. custom library
    By lambs4 in forum C Programming
    Replies: 1
    Last Post: 06-09-2002, 04:58 AM