What is the general approach to installing c libraries on Linux?
In particular, I would like to install this library, with the objective to compile this:
#include <SDL_image.h> // it errs that it does not recognize this
int main()
{
}
What I have tried:
- get a binary from here
- put it in
/etc/usr/clibs
- added this path to
/etc/ld.so.conf
=> FAILED. still failing to compile my file.
I installed the rpm from here
=> FAILED, still failing to compile
I tried building from source:
Upon running configure
, it said this:
checking for sdl-config... no
checking for SDL - version >= 1.2.10... 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.
I don't understand, it expects a script for installing whose presence there is the result of an installation...
I don't know what to try anymore... I've spent a lot of time trying to figure this out, so if someone could just give me a solution with do this and that, it would be great. An answer to the general question would be a great bonus.
Thanks.