Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-06-2003, 04:01 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 19

Rep: Reputation: 0
Angry cannot find

okay, so basically i get this error when trying to run certain programs:

programname: error while loading shared libraries: cannot open shared object file: No such file or directory

i really have very little idea as to compiling and installing. as far as i know there's ./configure, make, and make install. beyond that i know PATH=$PATH sets paths and sometimes works, but not in all cases. (do you have to set the path every time you install something? and if so, every path in that directory or just the main directory [automatically mapping the subdirs and contents])

okay, so. i try to install what i found, which is SDL_image-1.2.3-4.i386.rpm, and i get errors basically saying i can't install it because i'd be overwriting the _SAME VERSION_ of the program i'm supposedly missing.

somebody please clue me in before i pull my nails out. at this point it seems more fun than this.
Old 12-06-2003, 04:46 PM   #2
LQ Newbie
Registered: Aug 2003
Posts: 19

Original Poster
Rep: Reputation: 0
*bump* anyone? it's doing this with everything i install now, just different shared libraries.
Old 12-06-2003, 04:57 PM   #3
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,667

Rep: Reputation: 217Reputation: 217Reputation: 217
First find out where you have the library file. The command is
In my system it shows
It's in a good directory, that's in all paths it needs to be. But it may be in a strange location. In such case you'll need to add the directory to LD_LIBRARY_PATH or to

LD_LIBRARY_PATH is for libraries what PATH is to executables. All below applies to LD_LIBRARY_PATH as well.
/etc/ is a file where directories with libraries are in. It has the same effect as adding it to LD_LIBRARY_PATH, but remember to run 'ldconfig' after any modification of the file.

Add this point I can try to make the PATH issue clear for you. To run an executable, you type its name. But only directories in PATH are searched. That's why you add the exact directory the executable is in to PATH.

The default is to install executable in bin/ or sbin/ directories (like /usr/bin, /bin, /sbin and so on). Such directory must be added to PATH once, when fist executable is moved into it.

It happens that programs don't install in default directories. For example, OpenSSL installs to /usr/local/openssl. The executable goes to /usr/local/openssl/bin (if I remember correctly) and the directory is not in PATH.


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
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 12:15 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 03:07 AM
I can find the camera but can't find the images? sneckert Linux - Newbie 2 02-02-2005 08:51 AM
find: . changed during execution of find suse degraffenried13 Linux - General 3 12-12-2004 07:13 PM
linux 'find' to find text files subu_s Programming 2 12-02-2004 02:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 PM.

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