If you are compiling something from sources in Debian, and you see something like this:

error: somefile.so No such file or directory

You will have to look for a package that contain that library, the best way to do it in Debian is using apt-file, so let’s install it:

 apt-get install apt-file

And then look for the file:

 apt-file update && apt-file search somefile.so

This will give you a list of packages containing that file, which you can then install using apt-get this time you should be able to finish your compilation.