Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install jpegoptim on Centos 6

I am trying to install jpegoptim on a CentOS 6 server. I have downloaded and unpacked the package but when I try to run ./configure from the jpegoptim-1.3.0 directory I get an error that says:

"cannot find libjpeg or you have too old version (v6 or later required)."

I have checked and I have libjpeg-turbo install, which should supercede libjpeg. I have not been able to find anything on the net about this issue. What am I doing wrong?

Thanks, Rob

like image 491
user1780242 Avatar asked Sep 16 '25 14:09

user1780242


2 Answers

The configure script is looking for jpeglib.h which is in the libjpeg-turbo-devel package.

like image 65
Michael W Avatar answered Sep 19 '25 06:09

Michael W


You may want to use yum to help you with what you are looking for. The following may get you what you need:

yum search libjpeg
yum install libjpeg*

Note I have the epel repository installed on my system too. So if the above don't give you what you want, you may need to install the epel repository first.

like image 34
James Oravec Avatar answered Sep 19 '25 04:09

James Oravec