I'm trying to build Emacs 26 from source but make
fails
./temacs --batch --load loadup bootstrap
./temacs: error while loading shared libraries: libjpeg.so.9: cannot open shared object file: No such file or directory
If I search for libjpeg.so
I have
$ locate libjpeg.so
/home/boffi/Downloads/processing-3.3.5/java/lib/amd64/libjpeg.so
/home/boffi/lib/miniconda3/lib/libjpeg.so
/home/boffi/lib/miniconda3/lib/libjpeg.so.9
/home/boffi/lib/miniconda3/lib/libjpeg.so.9.2.0
/home/boffi/lib/miniconda3/pkgs/jpeg-9b-habf39ab_1/lib/libjpeg.so
/home/boffi/lib/miniconda3/pkgs/jpeg-9b-habf39ab_1/lib/libjpeg.so.9
/home/boffi/lib/miniconda3/pkgs/jpeg-9b-habf39ab_1/lib/libjpeg.so.9.2.0
/usr/lib/x86_64-linux-gnu/libjpeg.so
/usr/lib/x86_64-linux-gnu/libjpeg.so.62
/usr/lib/x86_64-linux-gnu/libjpeg.so.62.2.0
and it seems to me that Emacs is not looking at the system libraries...
Grepping the output of configure I have another suspicious line
$ ./configure | grep miniconda
Does Emacs use a png library? yes - L/home/boffi/lib/miniconda3/lib -lpng16
My question is, how can I screen the libraries installed by the Anaconda Python Distribution for its own use, so that ./configure
does not mess with them?
Or, on the other hand, how can I have temacs
and later Emacs find the library they expect to load?
conda
is a bit too much, have a look at the answers below. It suffices to temporarily change thePATH
during the execution ofconfig...