我非常需要在我的Ubuntu12.04上安装apache。我在网上搜索,并试图按照https://help.ubuntu.com/10.04/serverguide/httpd.html中提供的说明进行搜索。
我的终端的日志贴在这里供您参考:
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)发布于 2012-06-07 17:54:21
上面的输出显示您已经安装了apache --顶部的一行写着:
apache2 is already the newest version.所以apache已经安装好了,您不需要做任何其他事情了。
输出的其余部分很容易完成另一个包的安装:
Setting up crossplatformui (1.0.27) ...这是个问题,清理一下这个烂摊子是很好的。你的选择是:
sudo apt-get remove crossplatformui它未能编译,因为:
... fatal error: linux/smp_lock.h: No such file or directory快速搜索ubuntu /smp_lock.h会出现这个答案,这意味着您需要编辑交叉平台的源代码并将linux/smp_lock.h更改为linux/smp.h
您还应该确保安装了build-essential包,尽管您可能已经安装了编译器。
发布于 2012-06-07 17:50:03
尝试清除当前安装,然后再次安装apache2,如下所示:
sudp apt-get purge apache2sudo apt-get install apache2发布于 2012-06-07 17:56:15
引述:
Apache是一个Web服务器软件,在万维网的开发中扮演着重要的角色。这个HTTP的最新版本是Apache2.4,它包含了在功能和性能方面的更多改进。以下是最新版本中的一些新奇之处:
你必须安装
sudo apt-get install build-essential
sudo apt-get build-dep apache2然后安装Apache2.4 你可以在这里找到剩下的
来源:discusswire.com
https://askubuntu.com/questions/147872
复制相似问题