After compiling swftools on my linux box, I did some other tasks and then went to convert a pdf to swf file. When running the conversion, I was met with the following error:
/user/local/bin/pdf2swf: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
Solution:
This is due to where the libjpeg files are and where pdf2swf is looking for them. Looking at their documentation for installation, I found this:
Furthermore, a new installation of jpeglib (the following assumes it's in /usr/local/lib) often requires doing a:
ranlib /usr/local/lib/libjpeg.a
ldconfig /usr/local/lib
- I executed these lines and everything went back to running smoothly.
1 comment