(转)Solaris的gcc的安装
1 查看sun os版本
uname-a的命令查看系统版本。得知是SunOS5.8。
SunOS5.8叫做Solaris8
SunOS 5.9 叫做Solaris 9,以后就没有5.x的说法了,到Solaris 10了。。。2 安装gcc
1.到www.sunfreeware.com下载gcc-3.4.6-sol8-sparc-local.gz
2.gunzipgcc-3.4.6-sol8-sparc-local.gz
3.pkgadd–dgunzipgcc-3.4.6-sol8-sparc-local
4.手工设置root环境变量,添加PATH、LD_LIBRARY_PAT
exportPATH=$PATH:/usr/local/bin
exportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
完毕后发现gcc -v报错:ld.so.1: gcc: fatal: libintl.so.3: open failed: No such file or directory,那么要安装libintl库3 安装libintl库
1.从www.sunfreeware.com下载libintl-3.4.0-sol8-sparc-local.gz
2.gunziplibintl-3.4.0-sol8-sparc-local.gz
3.pkgadd–dlibintl-3.4.0-sol8-sparc-local.gz
完毕后发现gcc -v报错:ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory,那么要安装libiconv库4 安装libiconv库
1.从http://www.sunfreeware.com下载libiconv-1.11-sol8-sparc-local.gz
2.gunziplibiconv-1.11-sol8-sparc-local.gz
3.pkgadd–dlibiconv-1.11-sol8-sparc-local.gz
安装后gcc-v终于不再报错
相关推荐
wanyi0 2020-11-03
onlykg 2020-08-01
xuguiyi00 2020-07-09
FlightForever 2020-06-28
zghover 2020-06-25
zllbirdonland 2020-06-16
choupiaoyi 2020-06-13
Wonder的学习 2020-06-11
cwgxiaoguizi 2020-06-07
secondid 2020-06-06
昭君出塞 2020-06-03
fushilin 2020-06-03
jackadmi 2020-06-03
85407718 2020-05-30
wanggongzhen 2020-05-28
sunln00 2020-05-07
wangxiaoxue 2020-05-05
ningningmingming 2020-05-01