gcc安装
从IBM上下载RPM包(ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/)
gcc-4.2.0-3.aix6.1.ppc.rpm,
gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm,
libgcc-4.2.0-3.aix6.1.ppc.rpm,
libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm,
libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm
用ftp将上述五个rpm文件上传到$home/gcc_aix目录下
以root身份在$home/gcc_aix目录下执行命令
#rpm -ivh gcc-4.2.0-3.aix6.1.ppc.rpm
#rpm -ivh libgcc-4.2.0-3.aix6.1.ppc.rpm
#rpm -ivh libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm
#rpm -ivh libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm
#rpm -ivh gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm
编译及问题解决
Dependentmodule libstdc++.a(libstdc++.so.5) could not be loaded.
1. ldd <your exec> will show you all thedynamic libraries with the paths the loader is going to look.
2. check and set correctly your LIBPATHenvironment variable. LIBPATH will preprend /usr/lib:/lib (the default)
3. 最后将LIBPATH加入.profile中,LIBPATH中指定libstdc++.a所在的路径,解决。
报错:undefined symbol SAComand::setCommandtext
1. 查看操作系统位数bootinfo-y
2. 更新aix 7.1上编译的libsqlapi.ao文件和sqlapi的include文件后解决
报错:
/usr/local/sphinx/src/sphinx.cpp:15557:undefined reference to `libiconv_open'
libsphinx.a(sphinx.o)(.text+0x53a01):/usr/local/sphinx/src/sphinx.cpp:15575:undefined
reference to `libiconv'
libsphinx.a(sphinx.o)(.text+0x53a28):/usr/local/sphinx/src/sphinx.cpp:15581:undefined
reference to `libiconv_close'
1. 将/opt/freeware/lib下的libiconv.a放到本用户的lib目录下,
2. 在makefile的LIBS中增加-Llib lib/libiconv.a
安装oracle11客户端