LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-06-2003, 04:01 AM   #1
polynotre
LQ Newbie
 
Registered: Aug 2003
Distribution: DUAL_XPPROSP1+KNOPPIX3_3/DEBIAN
Posts: 19

Rep: Reputation: 0
Angry cannot find libSDL_image-1.2.so.0


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

programname: error while loading shared libraries: libSDL_image-1.2.so.0: 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. libSDL_image-1.2.so.0. 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
polynotre
LQ Newbie
 
Registered: Aug 2003
Distribution: DUAL_XPPROSP1+KNOPPIX3_3/DEBIAN
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
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
First find out where you have the library file. The command is
locate libSDL_image-1.2.so.0
In my system it shows
Code:
/usr/lib/libSDL_image-1.2.so.0
/usr/lib/libSDL_image-1.2.so.0.1.1
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.so.conf.

LD_LIBRARY_PATH is for libraries what PATH is to executables. All below applies to LD_LIBRARY_PATH as well.
/etc/ld.so.conf 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.
 
  


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
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

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

All times are GMT -5. The time now is 11:07 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