![]() |
|
|||||||
| 服务器环境搭建 Windows,Linux,IIS,Apache等服务器配置、安全维护以及PHP和MYSQL运行环境讨论。 |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
IP: 180.125.50.245
|
|||
|
|||
|
1 # 安装 python-devel
yum -y install python-devel 2 2.1 # 安装 gcc yum install gcc 2.2 # 安装libxml cd /lamp/libxml2-2.9.1 ./configure --prefix=/usr/local/libxml2/ make make install 3 3.1 # 安装 gcc-c++ yum -y install gcc-c++ 3.2 # 安装libmcrypt cd /lamp/libmcrypt-2.5.8 ./configure --prefix=/usr/local/libmcrypt/ make make install 3.3 # 安装libltdl,也在libmcrypt源码目录中,非新软件 cd /lamp/libmcrypt-2.5.8/libltdl ./configure --enable-ltdl-install make make install 4 # 安装mhash cd /lamp/mhash-0.9.9.9 ./configure --prefix=/usr/local/mhash make make install 5 # 安装mcrypt cd /lamp/mcrypt-2.6.8 LD_LIBRARY_PATH=/usr/local/libmcrypt/lib:/usr/local/lib \ ./configure --with-libmcrypt-prefix=/usr/local/libmcrypt #以上为一条命令。LD_LIBRARY_PATH用于指定libmcrypt和mhash的库的位置。 --with-libmcrypt-prefix用于指定libmcrypt软件位置 make make install #mcrypt没有安装完成,这是php的模块,需要等php安装完成之后,再继续安装 6 # 安装zlib cd /lamp/zlib-1.2.3 ./configure make make install >> /root/zlib.log * zlib指定安装目录可能造成libpng安装失败,故不指定,为卸载方便,建议make install执行结果输出到安装日志文件,便于日后卸载 7 装libpng libpng 软件包包含 libpng 库.这些库被其他程式用于解码png图片 cd /lamp/libpng-1.2.31 ./configure --prefix=/usr/local/libpng make make install 8 # 安装jpeg6 mkdir /usr/local/jpeg6 mkdir /usr/local/jpeg6/bin mkdir /usr/local/jpeg6/lib mkdir /usr/local/jpeg6/include mkdir -p /usr/local/jpeg6/man/man1 #目录必须手工建立 cd /lamp/jpeg-6b ./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static make make install * --enable-shared与--enable-static参数分别为建立共享库和静态库使用的libtool 9 # 安装freetype cd /lamp/freetype-2.3.5 ./configure --prefix=/usr/local/freetype/ make make install 10 # 安装GD库 cd /lamp/gd-2.0.35 * png错误,修改方法: vi gd_png.c 把 #include “png.h” 替换为 #include "/usr/local/libpng/include/png.h" ./configure --prefix=/usr/local/gd2/ --with-jpeg=/usr/local/jpeg6/ --with-freetype=/usr/local/freetype/ --with-png=/usr/local/libpng/ make make install Last edited by North City : 2016-05-25 at 02:17 PM |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 安装libpng出现configure: error: ZLib not installed | North City | 服务器环境搭建 | 0 | 2016-05-25 01:57 PM |
| zen-cart v1.5.5 How do I change the "Congratulations! you have successfully installed | Questa | ZenCart | 1 | 2016-04-03 04:06 PM |