有人告诉我必须 apt-get install apache2-dev 但我得到:
apt-get install apache2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'apache2-threaded-dev' instead of 'apache2-dev'
The following extra packages will be installed:
apache2 apache2-mpm-prefork apache2-threaded-dev apache2.2-bin apache2.2-common comerr-dev krb5-multidev libapr1-dev
libaprutil1-dev libdb4.8-dev libexpat1-dev libgssapi-krb5-2 libgssrpc4 libk5crypto3 libkadm5clnt-mit7 libkadm5srv-mit7
libkdb5-4 libkrb5-3 libkrb5-dev libkrb53 libkrb5support0 libldap2-dev libmysqlclient-dev libpcre3-dev libpcrecpp0
libpq-dev libpq5 libsqlite3-dev libssl-dev libssl0.9.8 uuid-dev zlib1g-dev
Suggested packages:
apache2-doc apache2-suexec apache2-suexec-custom doc-base krb5-doc db4.8-doc krb5-user postgresql-doc-8.4 sqlite3-doc
The following NEW packages will be installed:
apache2-threaded-dev comerr-dev krb5-multidev libapr1-dev libaprutil1-dev libdb4.8-dev libexpat1-dev libgssapi-krb5-2
libgssrpc4 libk5crypto3 libkadm5clnt-mit7 libkadm5srv-mit7 libkdb5-4 libkrb5-3 libkrb5-dev libkrb5support0
libldap2-dev libmysqlclient-dev libpcre3-dev libpcrecpp0 libpq-dev libsqlite3-dev libssl-dev uuid-dev zlib1g-dev
The following packages will be upgraded:
apache2 apache2-mpm-prefork apache2.2-bin apache2.2-common libkrb53 libpq5 libssl0.9.8
7 upgraded, 25 newly installed, 0 to remove and 127 not upgraded.
Need to get 0 B/17.6 MB of archives.
After this operation, 39.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Reading changelogs... Done
就是这样。发布时dpkg -l | grep apache
我得到:
ii apache2 2.2.16-6+squeeze1 Apache HTTP Server metapackage
ii apache2-mpm-prefork 2.2.16-6+squeeze1 Apache HTTP Server - traditional non-threaded model
ii apache2-utils 2.2.16-6+squeeze1 utility programs for webservers
ii apache2.2-bin 2.2.16-6+squeeze1 Apache HTTP Server common binary files
ii apache2.2-common 2.2.16-6+squeeze1 Apache HTTP Server common files
ii libapache2-mod-php5 5.2.6.dfsg.1-1+lenny9 server-side, HTML-embedded scripting language (Apache 2 module)
所以它没有安装...我的问题是我没有 apxs2 文件,我现在非常绝望。我可以从另一个节点将其复制到我的 apache_dir/sbin 吗?
附言
在“正在读取变更日志..完成”之后,shell 没有返回,而是提示我输入了一条文本:
krb5 (1.8+dfsg~alpha1-1) unstable; urgency=low
This version of MIT Kerberos disables DES and 56-bit RC4 by default.
These encryption types are generally regarded as weak; defeating them
is well within the expected resources of some attackers. However,
some applications, such as OpenAFS or Kerberized NFS, still rely on
DES. To re-enable DES support add allow_weak_crypto=true to the
libdefaults section of /etc/krb5.conf
-- Sam Hartman <[email protected]> Fri, 08 Jan 2010 22:41:14 -0500
krb5 (1.6.dfsg.4~beta1-7) unstable; urgency=low
* In response to MIT's 2006 announcement that Kerberos 4 is at end of
life and no longer under development, this version of the krb5 package
removes most support for krb4. In particular, krb4 headers are no
longer included; applications with krb4 support cannot be built using
libkrb5-dev. In addition, krb4 support has been removed from the KDC
and user utilities. If you do not use Kerberos 4 and do not have
krb4-config installed, you should notice no changes. However, if you
do use Kerberos 4, you must transition away from Kerberos 4 before
upgrading to this version.
* Downgrading from this version to a previous version can be
difficult because of library name changes. Please follow these
instructions:
- Get the libkrb53 and libkadm55 debs you want to downgrade to
-dpkg --force-depends --remove libkrb5-3 libkrb5support0 libdes425-3
libgssapi-krb5-2 libgssrpc4 libkadm5clnt5 libkadm5srv5 libkdb5-4
libk5crypto3
- At this point your system has broken Kerberos libraries
- dpkg -i libkrb53*deb libkadm55*deb (using the debs you got above)
- aptitude -f install to fix any other packages that may be broken
所以我只需按 Ctrl-C 并返回到 shell。
答案1
您按 Ctrl-C 退出 apt-get,中止安装。
当 apt-get 显示变更日志时,它会使用less
(或您可能设置的任何其他分页程序 - 默认为 less)来显示它们。如果运行的是 less,只需按 q 即可继续。按 Ctrl-C 会终止 less,但也会终止 apt-get。
答案2
首先,您的系统似乎无法安装软件包。因此您可能需要进一步研究。如果您的系统是低内存 VPS,则可能是内存不足。
我以前从未真正见过apt
没有任何诊断的终止,但在我看来这就是正在发生的事情。
但是,对于您当前的问题,您可以尝试从另一个框中移动apxs2
。首先要做的是ldd /usr/bin/apxs2
在已安装的系统上使用apache2-dev
。此命令将为您提供二进制文件所需的动态库列表。您可以检查这些库是否存在于目标系统上,并将缺少的库也复制过来。您可以将它们放入/usr/local/lib
,或修改LD_LIBRARY_PATH
并保留在本地。不过,我不建议将库复制到/lib
或/usr/lib
。从长远来看,这会引起麻烦。这不是真正的解决方案,但它可能在短期内有所帮助。