cpanel install jpegoptim
cd /usr/local/src/
wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.3.tar.gz
zcat jpegoptim-1.4.3.tar.gz | tar xf -
cd jpegoptim-1.4.3
./configure
make
make strip
make install
Envious Elk