




免费预览已结束,剩余7页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
php5.3安装过程中遇到的问题 1:php5.3.24 版本的和php5.2.*版本的编译参数不同我在php5.2.*中使用的编译参数如下:./configure -prefix=/usr/local/php -with-config-file-path=/usr/local/php/etc -with-mysql=/usr/local/mysql -with-mysqli=/usr/local/mysql/bin/mysql_config -with-iconv-dir -with-freetype-dir -with-jpeg-dir -with-png-dir -with-zlib -with-libxml-dir=/usr -enable-xml -disable-rpath -enable-discard-path -enable-safe-mode -enable-bcmath -enable-shmop -enable-sysvsem -enable-inline-optimization -with-curl -with-curlwrappers -enable-mbregex -enable-fastcgi -enable-force-cgi-redirect -enable-mbstring -with-mcrypt -with-gd -enable-gd-native-ttf -with-openssl -with-mhash -enable-pcntl -enable-sockets -with-ldap -with-ldap-sasl -with-xmlrpc -enable-zip -enable-soap -with-apxs2=/usr/local/apache/bin/apxs当我同样将该参数放到php5.3.24下编译有如下提示:在configure php5.3.24时发现Notice: Following unknown configure options were used:-enable-discard-path-enable-fastcgi-enable-force-cgi-redirectCheck ./configure -help for available optionsconfiugre里面没有这几个参数了!2:make test时出错:rootcentos5xen php-5.3.24# make testBuild complete.Dont forget to run make test.Warning: putenv(): Safe Mode warning: Cannot set environment variable SSH_CLIENT - its not in the allowed list in /home/liuxiaojie/php-5.3.24/run-tests.php on line 98Warning: putenv(): Safe Mode warning: Cannot set environment variable SSH_AUTH_SOCK - its not in the allowed list in /home/liuxiaojie/php-5.3.24/run-tests.php on line 99Warning: putenv(): Safe Mode warning: Cannot set environment variable SSH_TTY - its not in the allowed list in /home/liuxiaojie/php-5.3.24/run-tests.php on line 100Warning: putenv(): Safe Mode warning: Cannot set environment variable SSH_CONNECTION - its not in the allowed list in /home/liuxiaojie/php-5.3.24/run-tests.php on line 101Warning: set_time_limit(): Cannot set time limit in safe mode in /home/liuxiaojie/php-5.3.24/run-tests.php on line 104 - | ! WARNING ! | You are running the test-suite with safe_mode ENABLED ! | | Chances are high that no test will work at all, | depending on how you configured safe_mode ! |- ERROR: invalid PHP executable specified by TEST_PHP_EXECUTABLE = /home/liuxiaojie/php-5.3.24/sapi/cli/php 解决方法:这个错误可以忽略,直接make install 即可!3:安装memcache时遇到的问题安装php扩展memcache时遇到问题:checking target system type. i686-pc-linux-gnuconfigure: error: Cannot find php-config. Please use -with-php-config=PATH解决方法:./configure -with-php-config=/usr/local/php/bin/phpconfig4:configure: error: mcrypt.h not found. Please reinstall libmcrypt.解决方法:yum -y install libmcrypt-devel5:onfigure: error: Please reinstall libmhash - I cannot find mhash.h解决方法:yum -y install mhash-devel6:php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file解决方法:echo /usr/local/mysql/lib >>/etc/ld.so.confsldconfig -v 即可7:Cannot load modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: unixd_config原因:php5.2的版本和httpd-2.4 不匹配!老外的两个回答如下:The reason youre having this issue is because it seems PHP 5.2 isnt compatible with Apache 2.4 because its using a (now) deprecated Apache API. The developers at PHP are no longer supporting 5.2, and thus it is unlikely that there will be any updates to rectify this in the future.Your options are to either change PHP versions, or remain at Apache 2.2. Hi,I guess that the the php version youre trying to install is not aware of the changes made in apache-2.3.xWhy dont you try to install the latest php-5.3.9 instead of the old 5.2.17 that is no longer supported. 8:configure: error: Cannot find ldap libraries in /usr/lib.其实我相关软件已经安装了:rootlocalhost # rpm -qa | grep ldapopenldap-2.4.23-32.el6_4.x86_64openldap-devel-2.4.23-32.el6_4.x86_64rootlocalhost # 解决方法:cp -frp /usr/lib64/libldap* /usr/lib/9:/bin/sh: /home/liuxiaojie/install/php-5.3.24-src/build/shtool: Permission denied/bin/sh: -d: command not foundmake: * ext/phar/phar.php Error 127解决方法:rootlocalhost build# pwd/home/liuxiaojie/install/php-5.3.24-src/buildrootlocalhost build# chmod a x shtool rootlocalhost build# 10:chmod: cannot access ext/phar/phar.phar: No such file or directoryrootlocalhost php-5.3.24-src# makeGenerating phar.pharchmod: cannot access ext/phar/phar.phar: No such file or directorymake: ext/phar/phar.phar Error 1 (ignored)Build complete.Dont forget to run make test.解决方法:此处可以忽略,但可以解决:解决方法:如下/home/liuxiaojie/install/php-5.3.24-src/ext/pharcp phar.php phar.phar11:configure: error: mcrypt.h not found. Please reinstall libmcrypt. #安装mcrypt扩展时报错解决方法: tar zxvf libmcrypt-2.5.8.tar.gz cd libmcrypt-2.5.8 ./configure make make install12:configure: error: not found. Please reinstall the expat distribution.其实已经安装了expat 和expat-devel解决方法:ln -sv /lib64/libexpat.* /lib/ln -sv /usr/lib64/libexpat.* /usr/lib/13:configure php时报错如下:-bash: ./configure: Permission denied: 解决方法:chmod a x configure14:configure: error: Unable to locate gmp.h:解决方法:yum -y install gmp-devel15:Cannot find config.m4.rootlocalhost install# /usr/local/webserver/php/bin/phpize Cannot find config.m4. Make sure that you run /usr/local/webserver/php/bin/phpize in the top level source directory of the module故障原因:目录的位置错了, 应该在APC-1.*所在的目录16: #转载的,试过了,确实可以解决问题/usr/bin/ld: ext/ldap/.libs/ldap.o: undefined reference to symbol ber_pvt_opt_onOPENLDAP_2.4_2/usr/bin/ld: note: ber_pvt_opt_onOPENLDAP_2.4_2 is defined in DSO /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 so
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 抗菌功能与螺旋结构表面接触面积的协同优化路径
- 成本倒逼机制下刀削面机模块化设计与快速迭代开发模式
- 循环经济视角下的鞋套回收产业链整合困境
- 异材质复合面料加工时剑杆机张力动态调控难题
- 《点阵中的规律》(教学设计)2024-2025学年五年级上册数学北师大版
- 美妆集合店2025年美妆行业市场趋势与品牌战略布局报告
- 2025年初三数学初考试卷及答案
- 中国邮政2025西双版纳傣族自治州秋招金融业务类岗位面试模拟题及答案
- 2025年四年级素质杯试卷及答案
- 揭阳市烟草公司2025秋招会计核算岗位高频笔试题库含答案
- 铁路交通事故调查处理-铁路交通事故
- 花海的设计方案
- 作文提纲课件
- 静设备安装质量控制过程
- 智慧养殖物联网解决方案
- 个人借款协议书范文:免修版模板范本
- 孙燕姿所有歌曲歌词大全(11张专辑)
- 竹简与毛笔背景的国学主题PPT
- 《欧姆定律》 单元作业设计
- 学生饮用奶采购服务投标方案
- 《收购兼并和企业重组》
评论
0/150
提交评论