Ò»¡¢ÔÒò
ÎÒµÄϵͳÊÇsuse9£¬ÔÀ´×Ô´øµÄ±àÒëÆ÷ÊÇgcc-3.3.5£¬ÓÐÒ»´ÎÉý¼¶³É3.4.6£¬rpmÉý¼¶ºÜ·½±ãrpm -Uvh XXX.rpm¾ÍºÃÁË(ÄÇÒ»´ÎÉý¼¶ÁËgcc,g++,java,develµÈһϵÁеÄrpm°ü)¡£ÏÖÔÚÓÖÐèÒª3.3.5µÄ±àÒëÆ÷ÁË£¬Ò²¾ÍÊÇ˵±àÒëÆ÷µÄÓÐЩϸ½Ú²¢²»ÊÇÏòϼæÈݵġ£ÍË»ØÀ´¾ÍÓÖҪжÔØ£¬ÓÖÒªÖØ°²×°£¬»¹Éæ¼°ÆäÖÐһЩ°üµÄÒÀÀµ¹Øϵ£¬ËùÒÔÕÒ¸ö¶à±àÒëÆ÷¹²´æµÄ°ì·¨¡£
¶þ¡¢²½Öè
1£®ÏÂÔØ£ºgcc-3.3.5.tar.bz2
http://ftp.ntu.edu.tw/gnu/gnu/gcc/gcc-3.3.5/
2£®±àÒ룺
tar xvjf gcc-3.3.5.tar.bz2
cd gcc-3.3.5
./configure --prefox=/usr/local/gcc-3.3.5/
×îºÃÖ¸¶¨°²×°Ä¿Â¼£¬ÒÔÃâºÍϵͳÏÖÓеıàÒëÆ÷»ìÁË£¬¼´Ê¹°²²»³É¹¦£¬Ò²²»ÆÆ»µÔÓÐϵͳ
make
×¢ÒâÒªÓÐ×ã¹»µÄ¿Õ¼ä£¬ÒòΪËü±à³öÀ´ÓÐ600M
Èç¹û±¨¸öconflicting type for ¡.. ¾Í°Ñ.hÀﶨÒåÄǾä¸ø×¢µô¾ÍÐÐÁË
3£®ÉèÖû·¾³£º
°Ñ°²×°ºóµÄ¿ÉÖ´ÐгÌÐò·¾¶¼ÓÔÚ»·¾³±ä¸üPATH×îÇ°±ß£¬Ëü¾Í³ÉÁËĬÈϵıàÒëÆ÷ÁË
export PATH=/usr/local/gcc-3.3.5/bin:$PATH
´Ëʱ£¬ÔÙÓÃgcc -v²é¿´£¬¾Í¿ÉÒÔ¿´µ½3.3.5ºÍ°æ±¾ºÅÁË
²»ÏëÓÃËü¾Í°ÑPATH±ä»ØÔÀ´ÉèÖü´¿É
4£®ËµÃ÷£º
±ð¿´ËüÃû×Ö½Ðgcc, ÆäʵËü°Ñg++, gcj(gcc-java)¶¼¸ø±à³öÀ´ÁË¡£
mahonehu ÓÚ 2009-10-30 15:24:07·¢±í:
ºÃ