• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

php安?时产生的问题

php 搞代码 4年前 (2022-01-23) 12次浏览 已收录 0个评论
  • php在安装时全出现很多问题,但一般安装到最后都会有提示错误在哪里.

    然后yum install -y xxx 就可以了。昨天在家里安装时还算顺利,出现的问题都解决了。但今天在公司里安装时却出现这样问题,搞了好久,然后上网查资料,终于搞明白。问题如下:

  • 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)

  • configure: error: Sorry,I cannot run apxs. Either you need to install Perl or you need to pass the absolute path of apxs by using –with-apxs=/absolute/path/to/apxs

  • 首先,通过错误提示我们得知”I cannot rum apxs”. 我一直以为是apxs安装有问题,但找了很久仍未得到合理的解释和解决方法.

    于是我直接运行”/usr/local/apache/bin/apxs”这个脚本得到下面的错误提示:

    bash: ./apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No suc本文来源gaodai#ma#com搞@@代~&码*网/搞gaodaima代码h file or directory

    运行”vi /usr/local/apache/bin/apxs”得到下面内容:

    #!/replace/with/path/to/perl/interpreter -w

    最后发现这里没有指明正确的perl执行程序的位置!

    把这一行更改为”#!/usr/bin/perl -w”. 再运行php的!./configure就可以了


  • 搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
    转载请注明原文链接:php安?时产生的问题

    喜欢 (0)
    [搞代码]
    分享 (0)
    发表我的评论
    取消评论

    表情 贴图 加粗 删除线 居中 斜体 签到

    Hi,您需要填写昵称和邮箱!

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址