VPS侦探论坛

 找回密码
 注册
查看: 7697|回复: 2
打印 上一主题 下一主题

手动安装eaccelerator-0.9.5.3报错了,Cannot find php-config

[复制链接]
跳转到指定楼层
1#
发表于 2011-7-30 10:50:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

[root@finalcn eaccelerator-0.9.5.3]# ./configure --enable-eaccelerator=shared --with-php-config=/usr/php/bin/php-config --with-eaccelerator-shared-memory
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
[root@finalcn eaccelerator-0.9.5.3]# ./configure --enable-eaccelerator=shared --with-php-config=/usr/php/bin/php-config --with-eaccelerator-shared-memory
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
[root@finalcn eaccelerator-0.9.5.3]# make
make: *** No rule to make target `/home/bart/development/eaccelerator/branches/0.9.5/eaccelerator.c', needed by `eaccelerator.lo'.  Stop.
[root@finalcn eaccelerator-0.9.5.3]#

PHP版本为5.2.17

[ 本帖最后由 灵尘子 于 2011-7-30 10:51 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
2#
发表于 2011-7-30 11:30:54 | 只看该作者


php没有安装成功或者在编译参数里加上--with-php-config=/usr/local/php/bin/php-cgi
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
3#
 楼主| 发表于 2011-7-30 20:00:25 | 只看该作者

回复 2# 的帖子


如何重新安装PHP呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-12 17:59 , Processed in 0.026974 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表