最近空闲时间太多,就想着学习会儿LINUX。手头有3个版本,RedHa.t7.2、RedHat9.0、Solaris9.0。先拿RedHat7.2开练。装系统不是问题.,一会就.好了。.
为了锻炼自己,安装的时候选的是最小安装:所以选项安装软.件包都没选。从CU上下了gcc4.1.0,tar包解开。然后执行./configure配置。.提示 checking fo.r gcc ....no 外汇
. . checking for cc .....no .
. configure:error.:no acceptable cc found in $p.ath 。.
从网上搜索得到:“系统中没有能用的cc编译器。你.应该用rpm装一个.预编译的cc,然后就可以用那个编译器编译你的gcc了,这是个鸡和蛋的问题。”于是在安装盘里面找到gcc-2..9.8.i386.rpm安装成功。 乙肝
再次安.装4.1.0,这次提示 健康
WAR.NING: `makeinfo' .is missing on your system. You should only need it if.
. you modified a .`.texi' or `.texinfo' file, or any other file 建材
. indirectly affecting the aspect of the manual. The spurious..
call might also be the consequence o.f using a buggy `make'. (AIX,学习
. DU, IRIX). . You might want to install the `Texinfo' package or电脑
. the `GNU make' .package. Grab either from any GNU archive site. 外汇
make[3]: *** [fast.jar.i.nfo] Error 1.
make[3]: Leaving directory `/usr/sr.c/gcc-4..1.0/host-i686-.pc-linux-gnu/fastjar'.
make[2]: *** [a.ll] E.rror 2 杀毒
make[2]: Leav.ing direct.ory `/usr/src/gcc-4.1.0/h.ost-i686-pc-linux-gnu/fastjar'.
make[1]: *** [all-.fastjar] E.rror 2 建材
make[1]: .L.eaving directory `/usr/src/gcc-4.1.0' 美容
make: *** [all] Error. 2 美容
需要安装textinfo,可是从网上搜索了半天也没找到.这个东东???忙活了多半天也没成功,.郁闷。。。。健康
不甘心失败,于是又装了个RedH.at9.0,再次安装gcc4.1.0居然成.功。只.是怀着忐忑的心等待了两个小时,没有报错,应该是装好了。也不给个Congratulations!.
总结:gc.c4.1.0需要R.edHat9.0以上的系统支持!健康