Results 1 to 8 of 8

Thread: Tar.gz ./configure tells me to install libSDL, even when I already have

  1. #1

    Default Tar.gz ./configure tells me to install libSDL, even when I already have

    I'm trying to extract a package, MilkyTracker, and when I run the command

    Code:
    ./configure; make; make install
    at the very end it says

    Code:
    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: Please install libSDL
    
    I installed libSDL from the Opensuse repository, but it seems like I have to do something with the path or change a variable. I'm fairly new to these commands and I'm not sure how to do it.

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,136

    Default Re: Tar.gz ./configure tells me to install libSDL, even when I already have

    I assume that you already have "extracted" the package, else you would not have the ./configure (and other files that are apparently used) available.

    You say "at the end", but do not explain at the end of what. You show three statements, which you should do one by one and not in one go. Specially because the first two should be done as a "normal" user and the last one as root.

    So please explain which one goes wrong (and be syure that the steps before it are without flaws). And the best is to show a everything and not only the (part of) the output that you think is important. Other may see important things in the output that you guess as being useless. So please copy/paste the prompt, the command, the output and the next prompt. It is about the only way to show others what you see.
    Henk van Velden

  3. #3
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,134

    Default Re: Tar.gz ./configure tells me to install libSDL, even when I already have

    Have you installed “libSDL-devel”? In order to compile you need the development tools (including “sdl-config”) as well as the run-time libraries.

    Then try something like:
    Code:
    rayh@y3:~> SDL_CONFIG=`which sdl-config`
    rayh@y3:~> export SDL_CONFIG
    rayh@y3:~> printenv |grep SDL_CONFIG
    SDL_CONFIG=/usr/bin/sdl-config
    rayh@y3:~>
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  4. #4

    Default Re: Tar.gz ./configure tells me to install libSDL, even when I already have

    Here at my steps.
    1. CD to directory
    2.
    Code:
    ./configure
    Output: https://pastebin.com/VSqWmmke
    This is where its going wrong, near the end of the output

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,278
    Blog Entries
    2

    Default Re: Tar.gz ./configure tells me to install libSDL, even when I already have

    My guess is that the config file is improperly written with a hard path to the library typically found for some other distro (Fedora?)

    If that is the case, then instead of looking for the error,
    simply copy the needed files to your current directory (where you're running your make)
    eg
    Code:
    cp /usr/lib64/libSDL* ./
    Then try to make and make install again.

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6

    Default Re: Tar.gz ./configure tells me to install libSDL, even when I already have

    How do I find where libSDL is installed to? That command didn't work.
    Thanks

  7. #7
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,134

    Default Re: Tar.gz ./configure tells me to install libSDL, even when I already have

    Quote Originally Posted by Boi_Stevens View Post
    How do I find where libSDL is installed to?
    Code:
    sysman@ns3:~> locate libSDL
    /usr/lib64/libSDL-1.2.so.0
    /usr/lib64/libSDL-1.2.so.0.11.4
    /usr/lib64/libSDL2-2.0.so.0
    /usr/lib64/libSDL2-2.0.so.0.8.0
    /usr/lib64/libSDL_Pango.so.1
    /usr/lib64/libSDL_Pango.so.1.1.0
    /usr/lib64/libSDL_gfx.so.15
    /usr/lib64/libSDL_gfx.so.15.9.1
    /usr/lib64/libSDL_image-1.2.so.0
    /usr/lib64/libSDL_image-1.2.so.0.8.4
    /usr/lib64/libSDL_mixer-1.2.so.0
    /usr/lib64/libSDL_mixer-1.2.so.0.12.0
    /usr/lib64/libSDL_ttf-2.0.so.0
    /usr/lib64/libSDL_ttf-2.0.so.0.10.1
    /usr/share/doc/packages/libSDL-1_2-0
    ...
    If you do not have locate installed
    YaST > Software Manager {Select libsdl}, View, File List
    will show which and where files are installed by the selected package.
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  8. #8
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: Tar.gz ./configure tells me to install libSDL, even when I already have

    my guess is that you are building something and you don't have the include headers and link libraries you need to install libSDL2-devel to get those files try
    Code:
    zypper in libSDL2-devel
    then re-run
    Code:
    ./configure
    and see what else you need to install
    just keep in mind you'll probobly need to install the devel packages as you're building from source
    I'd recommend you try
    https://software.opensuse.org/search
    as it's quite probable the package you are compiling has already been build by somebody else

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •