AIX 5.3 中非root用户用bash报错问题及bash升级与老版本冲突问题处理方法

在AIX 5.3中切换到非root用户的时候,发生如下报错,处理方法如下,安装rpm包的时候,提示与老版冲突,rpm –help 了下,用-U升级模式就解决了

bash-3.00# su - oracle
Could not load program bash:
Could not load module /opt/freeware/lib/libintl.a(libintl.so.1).
        Dependent module /usr/lib/libiconv.a(shr4.o) could not be loaded.
Could not load module /usr/lib/libiconv.a(shr4.o).
System error: Permission denied
Could not load module bash.
        Dependent module /opt/freeware/lib/libintl.a(libintl.so.1) could not be loaded.
Could not load module .

-bash-3.00# ls -l /usr/lib/libiconv.a
lrwxrwxrwx    1 root     system           25 Mar 10 09:20 /usr/lib/libiconv.a -> /usr/linux/lib/libiconv.a
-bash-3.00# mv /usr/lib/libiconv.a /usr/lib/libiconv.a.bak
-bash-3.00# cd /usr/lib/
-bash-3.00# ln -s /opt/freeware/lib/libiconv.a libiconv.a

-bash-3.00# rpm -ivh bash-4.2-3.aix5.3.ppc.rpm 
file /opt/freeware/bin/bash from install of bash-4.2-3 conflicts with file from package bash-3.0-1
file /bin/bash from install of bash-4.2-3 conflicts with file from package bash-3.0-1
file /opt/freeware/bin/bashbug from install of bash-4.2-3 conflicts with file from package bash-3.0-1
#解决方法,升级老包
-bash-3.00# rpm -Uvh --oldpackage bash-4.2-3.aix5.3.ppc.rpm 

你可能感兴趣的:(Linux/UNIX)