There is no prebuild Debian/Ubuntu Package for mozjpeg 3.0.0.
Here is a short howto build this:
Install build requirements:
sudo apt-get install autoconf automake libtool nasm make pkg-config git
Go to your build directory and download source code from git:
git clone https://github.com/mozilla/mozjpeg.git
Prepare & build mozjpeg:
autoreconf -fiv
./configure –prefix=/usr
make
The default prefix is „/opt/mozjpeg“, i recommend to change this to „/usr“.
You can select to install it directly or build a .deb-Package:
Direct install: make install
Deb package: make deb
The „Deb package“-Method creates a Debian package with the filename:
mozjpeg_3.0_amd64.deb
You need to build it for each Distribution Version of each distribution, due to missing glibc bindings in the binaries.
Problem handling:
Problem: autoreconfig exists with the following error:
configure.ac:22: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
Solution: libtool is not installed, install libtool using „apt-get install libtool“
Problem: ./configure exists with the following error:
./configure: line 13146: syntax error near unexpected token `libpng,‘
./configure: line 13146: `PKG_CHECK_MODULES(libpng, libpng, HAVE_LIBPNG=1,‘
Solution: pkg-config wasn’t installed during automake. Install pkg-config (apt-get install pkgconfig) and run „autoreconf -fiv“ again.