php安裝时产生的问题

发布时间:2020-07-26 13:30:47 作者:renjie5175
来源:网络 阅读:788
  1. php在安装时全出现很多问题,但一般安装到最后都会有提示错误在哪里.

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

  2. sorry, I cannot run apxs. Possible reasons follow:

  3. 1. Perl is not installed

  4. 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs

  5. 3. Apache was not built using --enable-so (the apxs usage page is displayed)

  6. 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

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

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

    bash: ./apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory

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

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

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

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

推荐阅读:
  1. Ubuntu 19.0.4系統安裝NextCloud 16.01
  2. CentOS 7安裝MariaDB 10.3配置yum源

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

php 安装 错误

上一篇:魅族8.0系统(亲测有效)激活xposed框架的流程

下一篇:查询FSMO主机的方式

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》