百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>服务器> 编译安装lamp报错:apxs:Error: Command failed with rc=65536
分享文章到:

编译安装lamp报错:apxs:Error: Command failed with rc=65536

发布时间:01/15 来源: 浏览: 关键词:
我们来看一篇关于编译安装lamp报错:apxs:Error: Command failed with rc=65536问题的解决办法,具体的步骤细节如下文介绍.


在编译lamp(http2.2.2+mysql5.1.73+php5.3.22)环境的时候遇到一个奇怪的报错:
错误代码(php5.3.22):

[root@Test php-5.3.22]# make install           
Installing PHP SAPI module:       apache2handler
/application/httpd2.2.22/build/instdso.sh SH_LIBTOOL='/usr/local/apr/build-1/libtool' libphp5.la /application/httpd2.2.22/modules
/usr/local/apr/build-1/libtool --mode=install cp libphp5.la /application/httpd2.2.22/modules/
libtool: install: cp .libs/libphp5.lai /application/httpd2.2.22/modules/libphp5.la
libtool: install: cp .libs/libphp5.a /application/httpd2.2.22/modules/libphp5.a
libtool: install: chmod 644 /application/httpd2.2.22/modules/libphp5.a
libtool: install: ranlib /application/httpd2.2.22/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /byrd/tools/php-5.3.22/libs'
Warning!  dlname not found in /application/httpd2.2.22/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /application/httpd2.2.22/modules/libphp5.so
chmod: cannot access `/application/httpd2.2.22/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536
make: *** [install-sapi] Error 1

错误代码(php5.5.x):


configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /application/php5.3.22
configure: WARNING: unrecognized options: --enable-zend-multibyte
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... Invalid configuration `/application/php5.3.22': machine `/application/php5.3.22' not recognized
configure: error: /bin/sh ./config.sub /application/php5.3.22 failed

解决方法:

--prefix= /application/php5.5.11 \
修改为【一个空格惹的祸!!!】
--prefix=/application/php5.5.11 \
其实php5.3.22居然可以编译过去,只是在make install才报错,5.5.x就直接报错了,后来仔细看了文档才发现这个错误。。word文档啊!!

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有6人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板