在aix6.1下安装apache
# rpm -ivh httpd-2.2.22-1.aix6.1.ppc.rpm
error: failed dependencies:
libexpat.a(libexpat.so.1) is needed by httpd-2.2.22-1
libsqlite3.a(libsqlite3.so.0) is needed by httpd-2.2.22-1
结果需要其他的包,在http://www.bullfreeware.com/affichage.php?id=1538
下载全部的包,按照依赖关系一个一个的安装,结果最后安装到gettext-0.17-7.aix6.1.ppc.rpm的时候,却报出
error: failed dependencies:
libiconv.a(libiconv.so.2) is needed by gettext-0.17-7
libxlsmp.a(smprt.o) is needed by gettext-0.17-7
的错误,安装libiconv却报
libintl.a(libintl.so.8) is needed by ***
而libintl.a就是gettext包里的,这不成了死循环了么,谷歌半天之后发现只要加一个参数就可以搞定了。
# rpm -ivh gettext-0.17-7.aix6.1.ppc.rpm --nodeps
/
gettext ##################################################
add libintl.so.1 (32bits) shared member to /opt/freeware/lib/libintl.a
add libintl.so.1 (64bits) shared member to /opt/freeware/lib/libintl.a
/
#
#
# rpm -ivh libiconv-1.13.1-3.aix6.1.ppc.rpm
libiconv ##################################################
add shr4.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a
add shr.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a
add shr4_64.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a
/
加一个强制安装--nodeps的参数来安装gettext,后面的就可以正常安装了。
# rpm -ivh info-4.13-3.aix6.1.ppc.rpm
warning: /opt/freeware/info/dir created as /opt/freeware/info/dir.rpmnew
info ##################################################
Please check that /etc/info-dir does exist.
You might have to rename it from /etc/info-dir.rpmsave to /etc/info-dir.
#
#
# rpm -ivh readline-6.2-3.aix6.1.ppc.rpm
readline ##################################################
# rpm -ivh sqlite-3.7.6.3-3.aix6.1.ppc.rpm
sqlite ##################################################
#
# rpm -ivh expat-2.0.1-4.aix6.1.ppc.rpm
expat ##################################################
# rpm -ivh httpd-2.2.22-1.aix6.1.ppc.rpm
httpd ##################################################
#
本文转载自:http://jingfeng198.blog.163.com/blog/static/462559201272392246232/