apache - 编译安装php的时候,--with-apxs2的路径不知道是哪里

WBOY
Release: 2016-06-06 20:51:55
Original
1774 people have browsed it

环境:
SUSE Enterprise
apache是通过yast安装的

yast2 --install apache2
Copy after login
Copy after login

我想再编译安装php,但是编译安装的时候,--with-apxs2的路径不知道在哪里

回复内容:

环境:
SUSE Enterprise
apache是通过yast安装的

yast2 --install apache2
Copy after login
Copy after login

我想再编译安装php,但是编译安装的时候,--with-apxs2的路径不知道在哪里

你试试 find / -name apxs2,如果找不到,再试试find / -name apxs,我在CentOS上试了下,apxs2没有找到,apxs倒是找到了,如果找到的是apxs,编译时换成--with-apxs=apxs的路径试试

你也可以用which这个命令来找,比如:which apxs或which apxs2

Linux上的几种查找命令,可以看看该文章:http://www.ithr.org.cn/blogs/blog1.ph...

印象中这货是apache2.x带的apxs。因为是apache2.x,所以php那儿叫apxs2。

这货应该是在apache的bin目录下。如果用yum安装的话,应当是在 /usr/bin 或者 /usr/local/bin 下面。使用which或者where来查找一下就行了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!