Most likely you are working on a Linux system and you are missing a C-header file called jpeglib.h. You will need to install the development libraries that contain this file.
If you are on Ubuntu run:
sudo apt-get install libjpeg-dev
If you are on CentOS run:
sudo yum install libjpeg-turbo-devel