安装不了php72,[Php 安装不成功!停止安装LuNamp2.0]的解决办法

/include/curl/ 这样子才行得通。

再搜索这个错误提示,

终于找到了这篇文章,ubuntu编译安装php5 mysql nginx

#如果出现下面的错误提示

#checking for cURL in default path… not found

#configure: error: Please reinstall the libcurl distribution –  easy.h should be in /include/curl/

#安装:  apt-get install libcurl4-gnutls-dev

然后再试./zijidelu_install.sh -y

一切OK了,安装成功!

引用

LuNamp安装完成,谢谢您的使用!

LuNamp was successfully installed!, Thank you for choosing LuNamp!

总耗时:27 分钟

Total runtime: 27 分钟

请按任意键继续安装或升级LuManager!

Please press any key to continue install or update LuManager!

不容易啊,一晚上就折腾了个这!

-----------------------

参考资料:

ubuntu编译安装php5 mysql nginx  http://archive.cnblogs.com/a/2055968/

linux下php动态添加扩展 http://linfanps.iteye.com/blog/1150521

linux 安装php 时出现easy.h should be in /include/curl/ 的解决方法  http://blog.csdn.net/lgm252008/article/details/5445671  [其实不是这个原因]

php编译安装常见错误 http://www.hackbase.com/tech/2011-09-09/65235.html

============= 华 丽 丽 的 分 割 线  ========================

2011.11.5 更新: 又遇到新问题了!

ext/openssl/xp_ssl.o: In function `php_openssl_setup_crypto':

/home/husw/zijidelu_install/LuNamp/soft/php-5.2.17/ext/openssl/xp_ssl.c:357: undefined reference to `SSLv2_server_method'

/home/husw/zijidelu_install/LuNamp/soft/php-5.2.17/ext/openssl/xp_ssl.c:337: undefined reference to `SSLv2_client_method'

collect2: ld returned 1 exit status

make: *** [sapi/cgi/php-cgi] 错误 1

./php/php_fcgi.sh: 行 80: /usr/local/php_fcgi/lib/php.ini: 没有那个文件或目录

/usr/local/php_fcgi/lib/php.ini 不存在,没安装成功!

Php_fcgi 安装不成功!停止安装LuNamp2.0

Php_fcgi is not installed! Stop to install .

LuNamp安装失败

LuNamp was install failed

查子很多资料说是PHP的BUG,SSLv2这个东西有个补丁,但是不会打,打不上。

补丁地址:http://anonscm.debian.org/gitweb ... 8347bdf89ea862dbd92

不知如何解决

-------------------------------

2011.11.12 01:28 更新:

补丁打成功了,又折腾了很长时间!

知识储备太重要了!

给出解决方案:

下载补丁文件:disable_SSLv2_for_openssl_1_0_0.patch

放到PHP扩展文件目录中的openssl中,我的路径是:

/home/husw/zijidelu_install/LuNamp/soft/php-5.2.17/ext/openssl

所以:

root@husw:/home/husw# cd '/home/husw/zijidelu_install/LuNamp/soft/php-5.2.17/ext/openssl'

root@husw:/home/husw/zijidelu_install/LuNamp/soft/php-5.2.17/ext/openssl# patch -p3

patching file xp_ssl.c

Hunk #1 succeeded at 332 (offset 4 lines).

Hunk #2 succeeded at 354 (offset 4 lines).

Hunk #3 succeeded at 583 (offset -50 lines).

Hunk #4 succeeded at 819 (offset -98 lines).

#打补丁成功,然后重新安装./zijidelu_install.sh

root@husw:/home/husw/zijidelu_install/LuNamp/soft/php-5.2.17/ext/openssl# cd /home/husw

root@husw:/home/husw# ./zijidelu_install.sh

另外简单说一下如何打补丁。

引用

先去下载你需要的补丁包(包里一般有一个补丁文件的,因为如果有不同的版本,就肯定会有补丁的),然后用命令:patch 命令打包就行了。具体用法如下:

patch -p[num]

如:a/ext/openssl/xp_ssl.c 就是给xp_ssl.c打补丁;

而 -p[num]的作用就是去掉这个路径的第几个“/“前的内容,

如:patch -p1 patch -p3 这里的路径怎么定就要看你把你的补丁文件放在什么目录了。

以上内容参考:http://zhidao.baidu.com/question/319147840.html

我这边还在编译安装中,还不知道能不能成功,过程先记下来!

郁闷,还是不成功,同样的错误!

是不是编译参数需要改一下啊?

对这个编译安装还真不熟悉!

再看看。。。

-------------------------------

2011.11.12 02:58  最后更新  完美解决!

找着原因了,看了一下安装脚本,发现重新./zijidelu_install.sh安装的时候,会把原先已经存在的安装包删除,重新解压一个新的安装包文件夹在那里,意思就是我之前已经打过补丁的PHP源码文件夹已经被删除,又重新解压了一个在那里,等于我打补丁的工作白做了。所以需要对默认的安装压缩包做一下替换,替换成打过补丁的包。重装安装即可。

cool.gif

Build complete.

Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/php_fcgi/lib/php/extensions/no-debug-non-zts-20060613/

Php_fcgi 安装成功,继续安装LuNamp2.0

Php_fcgi was successfully installed! Continue...

已耗时:9 分钟

Runtime: 9 分钟

。。。。。。N分钟之后。。。。。。

LuNamp安装完成,谢谢您的使用!

LuNamp was successfully installed!, Thank you for choosing LuNamp!

总耗时:27 分钟

Total runtime: 27 分钟

请按任意键继续安装或升级LuManager!

Please press any key to continue install or update LuManager!

OH MY GOD! 完美解决了!

grin.gifa22b65671f6c32aa83acb1ec411f0aca.png

最后编辑: 我就是个世界 编辑于November 12, 2011 03:01

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值