Where can I find apxs on amazon linux?

扶醉桌前 提交于 2020-01-04 07:49:50

问题


I'm trying to get started with an AWS website, and used the free tier Amazon Linux installation. I installed python3.3 from source, but the wsgi it comes with is for python2.6 so I tried installing mod_wsgi3.3 from source as well, at which point I get

./configure --with-python=/usr/local/bin/python3
checking for apxs2... no
checking for apxs... no
checking Apache version... ./configure: line 1704: apxs: command not found
./configure: line 1704: apxs: command not found
./configure: line 1705: apxs: command not found
./configure: line 1708: /: is a directory

./configure: line 1877: apxs: command not found
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in

and for the life of me, I have not found a single helpful online source to tell me how to get apxs installed on this system. Suggestions have all been for ubuntu, and hence sudo apt-get install apache2{}-dev where '{}' can be replace with nothing, or -worker or -threaded or -prefork; none of these have worked on my system (using sudo yum install instead).

Is there a different package name I should be looking for? If so, what is it/where do I find potential packages? sudo yum search apache doesn't yield any apache2.

Please help.


回答1:


First of all if you are using Amazon Linux or any RPM based linux distro, you should use "httpd" rather than "apache2". Apache use in Debian family.

I think you can resolve this issue by installing httpd-devel package. Try yum search httpd-devel and choose required version and then do yum install httpd-devel <package version>

Sometime just firing yum install httpd-devel can do the job.



来源:https://stackoverflow.com/questions/21539759/where-can-i-find-apxs-on-amazon-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!