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

./configure; make; make install

at the very end it says

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.

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.

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:

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

Here at my steps.

  1. CD to directory
./configure

Output: https://pastebin.com/VSqWmmke
This is where its going wrong, near the end of the output

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

cp /usr/lib64/libSDL* ./

Then try to make and make install again.

HTH,
TSU

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


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.

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

zypper in libSDL2-devel

then re-run

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