ºìÁªLinuxÃÅ»§
Linux°ïÖú

solaris9°²×°gcc²½Öè

·¢²¼Ê±¼ä:2007-06-07 00:42:57À´Ô´:ºìÁª×÷Õß:Database
(1):²Ù×÷ϵͳ
Solaris9
#uname -a
SunOS XADOMAIN 5.9 Generic_118559-11 i86pc i386 i86pc

(2)gccºÍlib¿â
ʹÓÃ
gcc-3.4.1-sol9-intel-local.gz
ºÍ libiconv-1.8-sol9-intel-local.gz£¬Æäʵgcc-3.4.0-sol9-intel-local.gz
»òÕßgcc-3.4.0-sol9-intel-local.gzÒò¸ÃÒ²¿ÉÒԵģ¬Äú¿ÉÒÔÊÔÊÔ¡£
automakeϵͳÒѾ­°²×°ÁË£¬ËùÒÔÎÒÖ»°²×°ÁËmake-3.80-sol9-intel-local.gz

(3)°²×°¹ý³Ì
¿ÉÒÔÓÃsshÒÔrootµÄÉí·Ý(ÕâÑùÓÐȨÏÞÐÞ¸ÄÎļþ)µÇ½Solarisϵͳ£¬Èç¹ûroot²»ÄܵǽµÄ»°¿ÉÒÔ
#cd /etc/ssh
#vi sshd_config.conf
ÐÞ¸ÄPermitRootLogin no Ϊ PermitRootLogin yes
È»ºó
#cd /etc/init.d
# ./ssh restart
»òÕßÖ±½Óreboot¾Í¿ÉÒÔrootµÇ½ÁË
µÇ½ºó£¬½«Èý¸ö.gzÎļþÍÏÈëµ½/Ŀ¼ÏÂ
È»ºó
# gzip -d gcc-3.4.1-sol9-intel-local.gz
# pkgadd -d gcc-3.4.1-sol9-intel-local
# gzip -d libiconv-1.8-sol9-intel-local.gz
# pkgadd -d libiconv-1.8-sol9-intel-local
# gzip -d make-3.80-sol9-intel-local.gz
# pkgadd -d make-3.80-sol9-intel-local
Èç¹ûÄúûÓа²×°automakeµÄ»°£¬¿ÉÒÔÈç´Ë·½·¨°²×°Ò»¸öautomake-1.7.2-sol9-intel-local.gz

(4)ÅäÖÃ
PATH=$PATH:/usr/local/bin
LD_LIBRARY_PATH=/usr/local/lib
MANPATH=$MANPATH:/usr/local/man
CC=gcc
export PATH
export LD_LIBRARY_PATH
export CC
export MANPATH
»òÕßÖ±½Ó½«ÕâЩ¼ÓÈëµ½/etc/profileÀïÃ棬reboot¾Í¿ÉÒÔÁË,ÕâÑù¾Í²»ÐèҪÿ´ÎÖØÆôºó¶¼µÃÉèÒ»±é

(5)×¢Ò⣬°²×°gccµÄʱºòÒ»¶¨Òª×¢Òâ¿´Ìáʾ£¬ÎÒÇ°Ãæû³É¹¦¾ÍÊÇÒòΪgcc°²×°¿Õ¼ä²»¹»£¬Òª×°gcc×îÆðÂëµÃÁô800Õ×£¬ÔÚ/usrÏÂÁô800Õ×°É£¬ÎÒÁôÁË1G¶à¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ