php bad interpreter,安装php出现“/replace/with/path/to/perl/interpreter: bad interpreter: No such file or...

问题:

Sorry, I cannot run apxs. Possible reasons follow:

Perl is not installed

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

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

The output of /usr/local/apache/bin/apxs follows:

./configure: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: bad interpreter: No such file or directory

configure: error: Aborting

解决方法:

1.yum install perl perl-devel

2.vi /usr/local/apache2/bin/apxs

用#!/usr/bin/perl -w 替换 #!/replace/with/path/to/perl/interpreter -w

问题:

configure: error: xml2-config not found. Please check your libxml2 installation.

解决方法:

yum install libxml2

yum install libxml2-devel -y

问题:

configure: error: Cannot find MySQL header files under /usr/local/mysql.

解决方法:

yum install mysql-devel

问题:

configure: error: Cannot find libmysqlclient under /usr.

解决方法:

/usr/lib64/mysql/

ll 查看版本号

cp -rp /usr/lib64/mysql/libmysqlclient.so. 对应版本号 /usr/lib/libmysqlclient.so

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值