安装Apache提示缺少 libapr-1.so.0与libaprutil-1完美解决

安装Apache提示缺少 libapr-1.so.0与libaprutil-1完美解决

[root@itnihao RHEL_5.5 i386 DVD]# cd Server[root@itnihao Server]# ll | grep httpd
-r--r--r-- 152 root root 1275876 2010-03-09 httpd-2.2.3-43.el5.i386.rpm-r--r--r-- 177 root root 151877 2010-03-09 httpd-devel-2.2.3-43.el5.i386.rpm-r--r--r-- 152 root root 832734 2010-03-09 httpd-manual-2.2.3-43.el5.i386.rpm-r--r--r-- 616 root root 611542 2007-11-27 system-config-httpd-1.3.3.3-1.el5.noarch.rpm[root@itnihao Server]# rpm -ivh httpd-2.2.3-43.el5.i386.rpm
error: Failed dependencies:

libapr-1.so.0 is needed by httpd-2.2.3-43.el5.i386

libaprutil-1.so.0 is needed by httpd-2.2.3-43.el5.i386
[root@itnihao Server]#
到这里 出现错误了,要求要libapr-1.so.0和libaprutil-1.so.0这2个东东。这时需要apr文件
-----------------------------------------------------------------------------------------------
[root@itnihao Server]# ll | grep apr
-r--r--r-- 433 root root 125992 2009-08-07 apr-1.2.7-11.el5_3.1.i386.rpm
-r--r--r-- 433 root root 237184 2009-08-07 apr-devel-1.2.7-11.el5_3.1.i386.rpm
-r--r--r-- 368 root root 543487 2009-08-07 apr-docs-1.2.7-11.el5_3.1.i386.rpm
-r--r--r-- 177 root root 81473 2010-03-04 apr-util-1.2.7-11.el5.i386.rpm
-r--r--r-- 177 root root 54478 2010-03-04 apr-util-devel-1.2.7-11.el5.i386.rpm
-r--r--r-- 152 root root 233456 2010-03-04 apr-util-docs-1.2.7-11.el5.i386.rpm
-r--r--r-- 152 root root 13907 2010-03-04 apr-util-mysql-1.2.7-11.el5.i386.rpm
-r--r--r-- 368 root root 9472 2007-01-19 xorg-x11-drv-dynapro-1.1.0-2.i386.rpm
嘿嘿,我们需要的文件是apr-1.2.7-11.el5_3.1.i386.rpm和apr-util-1.2.7-11.el5.i386.rpm
先安装一个看看
[root@itnihao Server]# rpm -ivh apr-1.2.7-11.el5_3.1.i386.rpm
[root@itnihao Server]# rpm -ivh httpd-2.2.3-43.el5.i386.rpm
error: Failed dependencies:
libaprutil-1.so.0 is needed by httpd-2.2.3-43.el5.i386
看到没有 至少一个文件libaprutil-1.so.0了,看来装下一个文件apr-util-1.2.7-11.el5.i386.rpm就可以了吧!
[root@itnihao Server]# yum install apr-util-1.2.7-11.el5.i386.rpm 注意是yum安装哦 不然提示你少很多文件
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Examining apr-util-1.2.7-11.el5.i386.rpm: apr-util-1.2.7-11.el5.i386
Marking apr-util-1.2.7-11.el5.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package apr-util.i386 0:1.2.7-11.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
apr-util i386 1.2.7-11.el5 /apr-util-1.2.7-11.el5.i386 164 k
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total size: 164 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : apr-util 1/1
Installed:
apr-util.i386 0:1.2.7-11.el5
Complete!
[root@itnihao Server]# rpm -ivh httpd-2.2.3-43.el5.i386.rpm
Preparing... ########################################### [100%]
1:httpd #######################

ok http可以开始来安装了
============================================================================================
linux RH5安装httpd提示libapr-1.so.0/libaprutil-1.so.0 is needed by httpd-2.2.3-11.el5.i386
linux RH5安装httpd提示
libapr-1.so.0 is needed by httpd-2.2.3-11.el5.i386
libaprutil-1.so.0 is needed by httpd-2.2.3-11.el5.i386
此提示是需要安装apr和apr-util的apm包,apr属于apr-1.2.7-11.i386.rpm,而apr-util属于postgresql-libs-8.1.9-1.el5.i386.rpm,安装这2个包就可以安装httpd的rpm包了。

=============================================================================================

posted @ 2015-07-04 08:04  J_une  阅读(2880)  评论(0编辑  收藏  举报