Linux 如何在 apache 2.4.6 上安装 apxs 模块
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18566774/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install apxs module on apache 2.4.6
提问by user26
I have just used apt-get update
and my apache has been updated to 2.4.6
.
我刚刚用过apt-get update
,我的 apache 已经更新到2.4.6
.
i want to install apxs for compiling modules and i get this error
我想安装 apxs 来编译模块,但出现此错误
The following packages have unmet dependencies:
apache2-prefork-dev : Depends: apache2.2-common (= 2.2.22-1ubuntu1.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
How can i fix that
我该如何解决
回答by Karthick88it
APC is currently not compatible with the version. Try adding native opcode cache in it.
APC 目前与该版本不兼容。尝试在其中添加本机操作码缓存。
回答by Light93
to install apxs on ubuntu, install theapache2-dev
package.
要在 ubuntu 上安装 apxs,请安装apache2-dev
软件包。
sudo apt-get install apache2-dev
回答by Kevin
You cannot install httpd-devel on cpanel. You will need to install ea-apache24-devel
您不能在 cpanel 上安装 httpd-devel。您将需要安装 ea-apache24-devel
https://forums.cpanel.net/threads/install-httpd-devel.594631/
https://forums.cpanel.net/threads/install-httpd-devel.594631/
回答by ragerdl
To install apxs
on Oracle Linux run:
要apxs
在 Oracle Linux 上安装,请运行:
yum install httpd-devel
yum install httpd-devel