- 论坛徽章:
- 0
|
最近空闲时间太多,就想着学习会儿LINUX。手头有3个版本,RedHat7.2、RedHat9.0、Solaris9.0。先拿RedHat7.2开练。装系统不是问题,一会就好了。
为了锻炼自己,安装的时候选的是最小安装:所以选项安装软件包都没选。从CU上下了gcc4.1.0,tar包解开。然后执行./configure配置。提示 checking for gcc ....no
checking for cc .....no
configure:error:no acceptable cc found in $path 。
从网上搜索得到:“系统中没有能用的cc编译器。你应该用rpm装一个预编译的cc,然后就可以用那个编译器编译你的gcc了,这是个鸡和蛋的问题。”于是在安装盘里面找到gcc-2.9.8.i386.rpm安装成功。
再次安装4.1.0,这次提示
WARNING: `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 of 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]: *** [fastjar.info] Error 1
make[3]: Leaving directory `/usr/src/gcc-4.1.0/host-i686-pc-linux-gnu/fastjar'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/gcc-4.1.0/host-i686-pc-linux-gnu/fastjar'
make[1]: *** [all-fastjar] Error 2
make[1]: Leaving directory `/usr/src/gcc-4.1.0'
make: *** [all] Error 2
需要安装textinfo,可是从网上搜索了半天也没找到这个东东???忙活了多半天也没成功,郁闷。。。。
不甘心失败,于是又装了个RedHat9.0,再次安装gcc4.1.0居然成功。只是怀着忐忑的心等待了两个小时,没有报错,应该是装好了。也不给个Congratulations!
总结:gcc4.1.0需要RedHat9.0以上的系统支持! |
|