LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 10-09-2005, 09:50 PM   #1
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Rep: Reputation: 30
help compiling a program


hello, i just installed SDL 1.2 (and the devel packages) which is needed to get zsnes working. However, when i go to compile zsnes, i get this error:

Quote:
checking for SDL - version >= 1.2.0... no
*** Could not run SDL test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding SDL or finding the wrong
*** version of SDL. If it is not finding SDL, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: SDL >= 1.2.0 is required
I have never gotten this error before i don't quite understand what i have to do.. Can somebody give me step by step instructions on how to make it show that SDL is indeed installed?

I installed sdl and sdl-devel using rpm packages which is on their site.

Thanks!
 
Old 10-09-2005, 11:29 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
First thing to do is try what the message suggests
Quote:
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
As root, run ldconfig. If you'd like to be 100% positive the library is included, then execute this command:
Code:
$ ldconfig -v | grep libSDL
That command should give you at least one line of output. On my system, it gives:
Code:
        libSDL-1.2.so.0 -> libSDL.so
If you do not get anything, then the SDL library is not in one of the expected locations.

If you get some output like I have quoted above, try recompiling.

If you don't get any output or the recompile still doesn't work, then we can look at other possible reasons.
 
Old 10-10-2005, 01:05 AM   #3
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
hey, thanks for the reply!
i tried what you said and i got this:

mark@linux:~> ldconfig -v | grep libSDL
bash: ldconfig: command not found


however, i'd like to note that i solved the problem. The solution was in another thread. Here it is:
http://www.linuxquestions.org/questions/history/366262

Cheers
 
Old 10-10-2005, 01:14 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Try as root ...


Cheers,
Tink
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling a program for X-Linux 4.1 steaktc Programming 7 11-01-2005 07:36 AM
Compiling a Program? dbzw Linux - Software 4 10-09-2005 01:31 PM
Compiling a program lintho Linux - Software 2 08-24-2004 07:41 AM
Compiling Program Star3132 Linux - General 8 06-29-2004 05:35 AM
Problem with compiling my program. Zeth_htp Linux - Newbie 4 04-04-2003 10:12 PM


All times are GMT -5. The time now is 04:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration