在尝试安装 kqemu 的时候,要先编译 gcc3,Wiki 上说 qemu 官方是并不为使用 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

