安装php出现 run apxs错误

lp1989119 2015-05-19 12:31:14
Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/local/apache/bin/apxs follows:
./configure: line 6669: /usr/local/apache/bin/apxs: No such file or directory
configure: error: Aborting
安装php出现以上错误,找遍谷歌百度也没找到如何解决,大部分都说是到apache的bin目录下运行./apxs 之类的方法,可是我根本就找不到Apache这个目录,更不用说找到apxs这个文件了。
请教大神,这种情况该如何解决啊?
...全文
478 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
lp1989119 2015-05-20
  • 打赏
  • 举报
回复 1
已经找出解决办法,apxs在/usr/sbin/目录里面,修改正确路径就没有问题了。 难道是问题太幼稚了,竟然没人回答问题。。。。。。。。。。。。。

19,613

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧