Tar zxvf ncurses-5.6.tar.gz into Directory CD ncurses-5.6
Generate the MAKEFILE file,
Further Compilation
./Configure -- prefix =/usr -- With-shared -- without-Debug compilation. The compilation time is longer. Please wait.
Make
After compilation, the installation is completed.
Make install
========================================
Next, we will start to install the GD library. If the GD library is successfully installed or not, it has a certain relationship with the following installation sequence. We will demonstrate the installation step by step. All the files used below, go to http://www.tabcn.cn/download/gd_all.7zto download and put all the files in the webserv directory.
1: Install zlib2 Similarly, use wget in Linux to download the file tar zxvf zlib-1.2.3.tar.gz CD zlib-1.2.3./configure -- prefix =/usr/local/zlib make install
---------------------------------
2: Install PNG
Tar zxvf libpng-1.2.26.tar.gz CD libpng-1.2.26
CP scripts/makefile. Linux./makefile
./Configure -- prefix =/usr/local/libpng
Make
Make install
---------------------------------
3: Install TTF (TTF is supported by fonts)
Tar zxvf freetype-2.3.5.tar.gz CD freetype-2.3.5
./Configure -- prefix =/usr/local/FreeType
Make
Make install
---------------------------------
4: Install IIS6
Tar zxvf restart src.v6b.tar.gz
CD jpeg-6b
Mkdir-PV/usr/local/libjpeg/{, bin, Lib, include, man/Man1, Man1}
The preceding command is implemented as follows:
Mkdir: Created directory '/usr/local/libjpeg'
Mkdir: Created directory '/usr/local/libjpeg/bin'
Mkdir: Created directory '/usr/local/libjpeg/lib'
Mkdir: Created directory '/usr/local/libjpeg/include'
Mkdir: Created directory '/usr/local/libjpeg/man'
Mkdir: Created directory '/usr/local/libjpeg/man/man1'
Mkdir: Created directory '/usr/local/libjpeg/man1'
It can be said that it is a small bug. We need to manually create these directories. Otherwise, the configure will not find the directories.
./Configure -- prefix =/usr/local/libjpeg -- enable-shared -- enable-static
Make
Make install
---------------------------------
5. Install libxml2
Tar zxvf libxml2-2.6.31.tar.gz
CD libxml2-2.6.31
./Configure -- prefix =/usr/local/libxml2
Make
This step of make operation will take a relatively long time, huh, huh
Make install
CP xml2-config/usr/bin
---------------------------------
6: Install libmcrypt-2.5.7.tar.gz
Tar zxvf libmcrypt-2.5.7.tar.gz
CD libmcrypt-2.5.7
./Configure
Make
Make install
---------------------------------
7. Install fontconfig
Tar-zxvf fontconfig-2.4.2.tar.gz
CD fontconfig-2.4.2
As you can see, the parameter is relatively long. I suggest using notepad friends not to choose Automatic line feed.
According to my operations, an error may occur when I copy the line feed automatically.
Remove automatic line feed
./Configure -- prefix =/usr/local/fontconfig -- With-FreeType-Config =/usr/local/FreeType/bin/FreeType-config
An error message is displayed:
Checking for libxml2... configure: Error: Package requirements (libxml-2.0> = 2.6) were not met: no package 'libxml-2.0 'found consider adjusting the pkg_config_path environment variable if you installed software in a non-standard prefix. alternatively, you may set the environment variables libxml2_cflags and libxml2_libs to avoid the need to call PKG-config. see the PKG-config man page for more details.
But we have actually installed libxml2 on it. here it's just that an environment variable is not set.
Solution:
Make sure there is a libxml-2.0.pc under the/usr/local/libxml2/lib/pkgconfig directory
Export pkg_config_path =/usr/local/libxml2/lib/pkgconfig: $ pkg_config_path
Generate makefile again.
./Configure -- prefix =/usr/local/fontconfig -- With-FreeType-Config =/usr/local/FreeType/bin/FreeType-config
Well, there is no such error.
Make
Make install
---------------------------------
8: Install the GD library,
We put this step at the end.
Tar zxvf gd-2.0.35.tar.gz CD gd-2.0.35. /configure -- prefix =/usr/local/libgd -- With-PNG =/usr/local/libpng -- With-FreeType =/usr/local/FreeType -- With-JPEG =/usr /local/libjpeg -- With-fontconfig =/usr/local/fontconfig
We can see the following information. Many of them show support for PNG Library: Yes support for JPEG Library: Yes support for FreeType 2.x Library: Yes support for fontconfig Library: yes support for XPM Library: no support for pthreads: Yes make install. By now, the process of installing the GD library has been demonstrated.
Install the GD library in centos