How to fix it
For that error, you need to install development files for version 1.2 of libSDL
and libSDL-image
:
sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev
It may also ask you for Guile, just install that one as well:
sudo apt-get install guile-1.8-dev
Then run ./configure
again.
What was the problem
The software that you were trying to install, libgraph
, has some dependencies. It uses other pieces of software and expects you to have them already installed. When you run ./configure
, you check that you have everything you need before proceeding with the next step (make
).
The error you got said that you don't have the headers for libSDL
that are needed to compile libgraph
. Of course, you can get the libSDL
sources from the Internet and install them. But those have dependencies of their own, and it would be a rather tedious process. Instead, you can just install them from Ubuntu's repositories.
How to find out the required package name
apt-cache search libsdl | grep dev
For Ubuntu 17.10 and above
Follow the same steps as above except that you will need to install guile using
sudo apt-get install guile-2.0-dev
as guile-1.8
is no longer officially supported