Default installation jpeg-6b
shell> wget ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
Tar zxvf jpegsrc.v6b.tar.gz
CD jpeg-6b
./configure–-prefix=/usr/local/jpeg6–enable-shared–enable-static
Make
Make install
Specify the installation directory method install jpeg-6b
If you choose to install it by default, it may be fine, but to specify the path, create the following folder, or you will get an error:
Error tip: .../usr/bin/install-c-M 644 jconfig.h/usr/local/jpeg6/include/jconfig.h
/usr/bin/install: Unable to create general file '/usr/local/jpeg6/include/jconfig.h ': no file or directory
Make: * * * [install-headers] Error 1
Create the desired folder below
# Mkdir/usr/local/jpeg6
# Mkdir/usr/local/jpeg6/include
# Mkdir/usr/local/jpeg6/lib
# Mkdir/usr/local/jpeg6/bin
# Mkdir/usr/local/jpeg6/man
# Mkdir/usr/local/jpeg6/man/man1
# Make Install-lib
# make Install
Then compile the settings:
./configure--enable-shared--enable-static
Then make and start an error:
./libtool--mode=compile gcc-o2-i.-C./jcapimin.c
Make:./libtool: Command not found
Make: * * * * [Jcapimin.lo] Error 127
First, see if you have Libtool and Libtool-ltdl-devel installed.
Rpm-qa | grep Libtool
Then enter the jpeg-6b source directory, and then perform the following steps, remember!
Cp/usr/share/libtool/config.sub.
Cp/usr/share/libtool/config.guess.
That is, take the two profiles inside the Libtool and overwrite the corresponding files in the jpeg-6b directory.
Make clean and configure again.
When you do not have permissions, set up the corresponding folder, make install again on the line
Install GD
An error occurred
MAKE[2]: * * * [Gd_png.lo] Error 1
MAKE[2]: Leaving directory '/usr/local/file/gd-2.0.26gif '
MAKE[1]: * * * [all-recursive] Error 1
MAKE[1]: Leaving directory '/usr/local/file/gd-2.0.26gif '
Make: * * * [ALL] Error 2
(If there is a mistake here, please VI gd_png.c, find "png.h" changed to "/usr/local/libpng2/include/png.h")