![]() |
|
|||||||
| 新闻公告 网站重要事件,论坛规则,会员惩罚处理等信息将在这里公布。 |
|
|
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 ./configure --prefix=/usr/local/gd2/ --with-jpeg=/usr/local/jpeg6/ --with-freetype=/usr/local/freetype/ --with-png=/usr/local/libpng/ make make install * png错误,修改方法: vi gd_png.c 把 #include “png.h” 替换为 #include "/usr/local/libpng/include/png.h" Last edited by topvip : 2016-05-25 at 02:13 PM |
| Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 用php语言来编写shell脚本 | car | 代码交流 | 0 | 2008-05-05 08:09 PM |
| Php教程.经验技巧(上) | sunshine | 代码交流 | 0 | 2006-12-15 08:13 PM |
| Php入门速成 | smiling | 代码交流 | 0 | 2006-12-15 07:30 PM |
| php.ini中文解释 | sunshine | 服务器环境搭建 | 0 | 2006-02-04 11:05 PM |
| winxp下安装全新的apache,php(5.0),mysql(5.0)... | topvip | 服务器环境搭建 | 0 | 2006-01-08 10:28 PM |