CentOs 5.3 安装lamp
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-21
ig=/usr/local/bin/freetype-config =========================================================================================== 这里遇到的错误问题:checking for LIBXML2... configure: error: Package requirements (libxml-2.0 >= 2.6) were not met: No package ''libxml-2.0'' found 解决方法:确定 /usr/local/libxml2/lib/pkgconfig 目录下有 libxml-2.0.pc export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH 紧接重新编译 ./configure --prefix=/usr/local/fontconfig --with-freetype-config=/usr/local/bin/freetype-config ==================================================================================================================== # make # make install # cd ../ 7 tar zxvf autoconf-2.60.tar.gz # cd autoconf-2.60 #./configure # make # make install # cd ../ tar zxvf libiconv-1.13.tar.gz cd libiconv-1.13/ ./configure --prefix=/usr/local/libiconv make make install cd ../ # tar zxvf gd-2.0.35.tar.gz # cd gd-2.0.35 # ./configure --with-freetype=/usr/local/include/freetype2/ --with-fontconfig=/usr/local/fontconfig/ --with-jpeg=/usr/local/jpeg/ --with-png=/usr/local/libpng/ --with-libiconv-prefix=/usr/local/libiconv gd_png.c:731: error: ''prow_pointers'' undeclared (first use in this function) gd_png.c:747: error: expected '')'' before ''gdMalloc'' gd_png.c:804: error: expected '')'' before ''gdMalloc'' make[2]: *** [gd_png.lo] 错误 1 make[2]: Leaving directory `/backup/file/gd php-/gd/gd-2.0.35'' make[1]: *** [all-recursive] 错误 1 #<Location /fileupload.php> #SecFilterInheritance Off #SecFilterSelective POST_PAYLOAD "!image/(jpeg|bmp|gif)" #</Location> </IfModule> mod_evasive 查看历史编译参数: 1、nginx编译参数: #/usr/local/nginx/sbin/nginx -V 2、apache编译参数: # cat /usr/local/apache/build/config.nice 3、php编译参数: # /usr/local/php/bin/php -i |grep configure 4、mysql编译参数: # cat /usr/local/mysql/bin/mysqlbug|grep configure 11、把基于文件的会话切换到基于共享内存的会话.编译 PHP 时采用 --with-mm 选项,在 php.ini 中设置 set session.save_handler=mm .这个简单的修改能让会话管理时间缩短一半. 12、采用最新版本的 Apache ,并把 PHP 编译其中,或者采用 DSO 模式,不要采用 CGI 方式. 13、编译 PHP 时,建议采用如下的参数: --enable-inline-optimization --disable-debug 1、nginx编译参数: #/usr/local/nginx/sbin/nginx -V 2、apache编译参数: # cat /usr/local/apache/build/config.nice 3、php编译参数: # /usr/local/php/bin/php -i |grep configure 4、mysql编译参数: # cat /usr/local/mysql/bin/mysqlbug|grep configure |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |