首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Ubuntu12.04中安装Apache

无法在Ubuntu12.04中安装Apache
EN

Ask Ubuntu用户
提问于 2012-06-07 17:16:51
回答 4查看 12.4K关注 0票数 0

我非常需要在我的Ubuntu12.04上安装apache。我在网上搜索,并试图按照https://help.ubuntu.com/10.04/serverguide/httpd.html中提供的说明进行搜索。

我的终端的日志贴在这里供您参考:

代码语言:javascript
复制
jacob@jacob-laptop:~$ sudo apt-get install apache2 
[sudo] password for jacob: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up crossplatformui (1.0.27) ...
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service acpid restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop acpid ; start acpid. The restart(8) utility is also available.
acpid stop/waiting
acpid start/running, process 8643
package libqtgui4 exist
QT_VERSION = 4
make -C /lib/modules/3.2.0-25-generic/build M=/usr/local/bin/ztemtApp/zteusbserial/below2.6.27 modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-25-generic'
  CC [M]  /usr/local/bin/ztemtApp/zteusbserial/below2.6.27/usb-serial.o
/usr/local/bin/ztemtApp/zteusbserial/below2.6.27/usb-serial.c:34:28: fatal error: linux/smp_lock.h: No such file or directory
compilation terminated.
make[2]: *** [/usr/local/bin/ztemtApp/zteusbserial/below2.6.27/usb-serial.o] Error 1
make[1]: *** [_module_/usr/local/bin/ztemtApp/zteusbserial/below2.6.27] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-25-generic'
make: *** [modules] Error 2
dpkg: error processing crossplatformui (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 crossplatformui
E: Sub-process /usr/bin/dpkg returned an error code (1)
EN

回答 4

Ask Ubuntu用户

回答已采纳

发布于 2012-06-07 17:54:21

上面的输出显示您已经安装了apache --顶部的一行写着:

代码语言:javascript
复制
apache2 is already the newest version.

所以apache已经安装好了,您不需要做任何其他事情了。

输出的其余部分很容易完成另一个包的安装:

代码语言:javascript
复制
Setting up crossplatformui (1.0.27) ...

这是个问题,清理一下这个烂摊子是很好的。你的选择是:

  • 移除交叉平台- sudo apt-get remove crossplatformui
  • 安装它需要编译的依赖项。

它未能编译,因为:

代码语言:javascript
复制
... fatal error: linux/smp_lock.h: No such file or directory

快速搜索ubuntu /smp_lock.h会出现这个答案,这意味着您需要编辑交叉平台的源代码并将linux/smp_lock.h更改为linux/smp.h

您还应该确保安装了build-essential包,尽管您可能已经安装了编译器。

票数 4
EN

Ask Ubuntu用户

发布于 2012-06-07 17:50:03

尝试清除当前安装,然后再次安装apache2,如下所示:

  • sudp apt-get purge apache2
  • sudo apt-get install apache2
票数 1
EN

Ask Ubuntu用户

发布于 2012-06-07 17:56:15

引述:

Apache是一个Web服务器软件,在万维网的开发中扮演着重要的角色。这个HTTP的最新版本是Apache2.4,它包含了在功能和性能方面的更多改进。以下是最新版本中的一些新奇之处:

  1. 与Apache2.2.x相比,减少了内存使用量
  2. 业绩方面的重大改进
  3. KeepAliveTimeout (毫秒)
  4. 覆盖配置
  5. 完全支持事件MPM。
  6. 新的通用表达式解析器
  7. 配置文件变量等。

你必须安装

代码语言:javascript
复制
sudo apt-get install build-essential

sudo apt-get build-dep apache2

然后安装Apache2.4 你可以在这里找到剩下的

来源:discusswire.com

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/147872

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档