LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ./config error: no sdl-config? (https://www.linuxquestions.org/questions/linux-newbie-8/config-error-no-sdl-config-258233/)

Beomoss 11-23-2004 01:23 AM

./configure error: no sdl-config?
 
I'm a newbie running Fedora Core 3, and this is my first attempt at compiling a program from source. I got as far as running ./configure before I got an error. Here's the output of that command:

Code:

loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for main in -lm... yes
checking for sdl-config... no
checking for SDL - version >= 1.0.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: lib SDL is needed

Would someone please explain to me what sdl-config is, and how I might go about putting it where it needs to be?

Many thanks in advance!

Tinkster 11-23-2004 01:58 AM

Is SDL installed at all?


Cheers,
Tink

Beomoss 11-23-2004 03:15 AM

A very valid question!

I went to libsdl.org and got the latest version rpm available (1.2.7), but when I tried to install it, I was told that I already had a *newer* version of SDL installed. Based on a suggestion from another board, I was instructed to provide the output of 'rpm -qa |grep -i sdl', which is:

SDL_net-1.2.5-2
SDL-1.2.7-8
SDL_mixer-1.2.5-4

So, I guess it's installed, but not where it needs to be? Or is the issue perhaps related to what seems to be two different versions? Thanks for the help!

bathory 11-23-2004 03:40 AM

Quote:

*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
Since sdl is installed do as ./configure says, add in your PATH the sdl bin directory and/or set the SDL_CONFIG variable::
Code:

export PATH=/path/to/sdl/bin:$PATH
export SDL_CONFIG=/full/path/to/sdl-config

and re-run ./configure

Beomoss 11-24-2004 01:26 AM

Success!
 
THANK YOU!

From your help, I was able to track down and install the libraries I needed, and have now successfully compiled! Thank you for helping me along on the beginnings of my GNU/Linux journey!


All times are GMT -5. The time now is 02:35 PM.