The problem was that the package libjpeg-dev was not installed. To solve the problem you should do this:
sudo apt-get install libjpeg-dev
The problem was that the package libjpeg-dev was not installed. To solve the problem you should do this:
sudo apt-get install libjpeg-dev