# rpm -e gcc-go-7.2.0-6.aix6.1.ppc.rpm
error: package gcc-go-7.2.0-6.aix6.1.ppc.rpm is not installed
# rpm -ivh gcc-go*
package gcc-go-7.2.0-6 is already installed
# rpm -ivh gcc-cpp*
package gcc-cpp-7.2.0-6 is already installed
# rpm -e gcc-go-7.2.0-6.aix6.1.ppc.rpm
error: package gcc-go-7.2.0-6.aix6.1.ppc.rpm is not installed
# rpm -e gcc-go
# rpm -qa |grep gcc
libgcc-7.2.0-6
gcc-7.2.0-6
gcc-cpp-7.2.0-6
# gcc -v
exec(): 0509-036 Cannot load program gcc because of the following errors:
0509-130 Symbol resolution failed for gcc because:
0509-136 Symbol aligned_alloc (number 35) is not exported from
dependent module /usr/lib/libc.a(shr.o).
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
# rpm -ivh gcc-go*
gcc-go ##################################################
# ls -lrt
问题总结:
1通过更换系统:
1.目前发现测试所用的AIX6100-07-SP5补丁, 未生效,重新更换系统AIX61-09后,已正常,没有如上的报错了。
总结2: AIX gcc-go安装主要依赖gcc,当gcc之前玩之后,安装lib-go 两个包,然后安装gcc-go就正常了,最后注意
将环境变量path路径设置好久可以了。/etc/profile文件追加如下内容:
export PATH=$PATH:/opt/freeware/bin
文件libc.a是AIX系统中重要的核心库文件,如果被意外删除或改名,系统的各种命令都将无法正常运行。