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

Çл»GCC°æ±¾

·¢²¼Ê±¼ä:2008-03-10 21:23:34À´Ô´:ºìÁª×÷Õß:Enlist
½ñÌìÏë°²×° kqemu À´ÊÔÊÔ£¬µ«ºóÀ´»¹ÊÇ·ÅÆúÁË£¬¾õµÃ kqemu ûÓÐ VirtualBox ʹÓ÷½±ã£¬Èç½ñ¾õµÃ VirtualBox µÄ²»×ãÊDz»ÖªÈçºÎ´ò¿ª CPU µÄ svm Ö§³Ö£¬ÔËÐÐʱӲÅÌÀÏת£¬¿ÉÄÜÄÚ´æÉÙÁË¡£

ÔÚ³¢ÊÔ°²×° kqemu µÄʱºò£¬ÒªÏȱàÒë gcc3£¬Wiki ÉÏ˵ qemu ¹Ù·½ÊDz¢²»ÎªÊ¹Óà gcc4 ±àÒë qemu Ìṩ֧³Ö£¬ËùÒÔ×îºÃʹÓà gcc3 À´±àÒë¡£

¹Ê£¬½ÓÏÂÀ´µÄÒ»²½¾ÍÓ¦¸ÃÊÇÇл» gcc °æ±¾¡£°´ÕÕ Wiki ËùÊöµÄ²½Ö裬ȴ²»¹ýÓöµ½Ò»¸öÎÊÌ⣺

ÒýÓÃ:
heyuqi@qGentoo ~ $ sudo gcc-config x86_64-pc-linux-gnu-3.4.6
* gcc-config: Could not locate 'x86_64-pc-linux-gnu-3.4.6' in '/etc/env.d/gcc/' !


²»ÏþµÃÈçºÎ²ÅÄܲúÉú /etc/env.d/gcc/* Îļþ£¬µ«ÕÒµ½Ò»¸ö½â¾ö°ì·¨£º

ÒýÓÃ:
heyuqi@qGentoo ~ $ sudo gcc-config -l
[1] i686-pc-linux-gnu-3.4.6
[2] i686-pc-linux-gnu-3.4.6-hardened
[3] i686-pc-linux-gnu-3.4.6-hardenednopie
[4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.6-hardenednossp
[6] i686-pc-linux-gnu-4.1.2 *

heyuqi@qGentoo ~ $ sudo gcc-config 1
* Switching native-compiler to i686-pc-linux-gnu-3.4.6 ...
>>> Regenerating /etc/ld.so.cache... [ ok ]

* If you intend to use the gcc from the new profile in an already
* running shell, please remember to do:

* # source /etc/profile
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ