您好,登录后才能下订单哦!
本篇内容介绍了“CentOS rpm安装编译gcc时的过程”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
CentOS是在linux开发基础上的常用系统,然后我深入探讨了CentOS rpm安装,在这里对CentOS用户概括讲解下CentOS rpm安装应用,linux下使用CentOS rpm安装libxml2,gcc,gcc-c++等基本包 我使用了的linux版本是CentOS5.0,进行了最小安装,所以很多包都没有安装上。比如gcc (C组件和解释器),libxml2,gcc-c++等。我现使用安装光盘安装这些所需的包。之前我已经安装过gcc了,没有记下这个安装时的步骤,不过跟其它的安装是一样的。现记下我的安装时的日记,以备后忘。希望对网友们也会有点帮助
CentOS rpm安装libxml2-devel
CentOSrpm安装libxml2-devel时提示其依赖的包还有pkgconfig-0.21-1,zlib-devel-1.2.3-3,所以按其提示缺少什么包就在CentOS rpm安装光盘上找什么包。一般基本的包在光盘上都会有放入第2张光盘[root@localhost mnt]# mount /dev/cdrom /mnt/cdrommount: block device /dev/cdrom is write-protected, mounting read-only[root@localhost mnt]# find -iname pkgconfig*./cdrom/CentOS/pkgconfig-0.21-1.fc6.i386.rpm[root@localhost mnt]# rpm -ivh ./cdrom/CentOS/pkgconfig-0.21-1.fc6.i386.rpmwarning: ./cdrom/CentOS/pkgconfig-0.21-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897Preparing... [100%]1:pkgconfig [100%]
[root@localhost mnt]# umount /mnt/cdrom
放入第3张光盘[root@localhost mnt]# find -iname zlib*./cdrom/CentOS/zlib-devel-1.2.3-3.i386.rpm[root@localhost mnt]# rpm -ivh ./cdrom/CentOS/zlib-devel-1.2.3-3.i386.rpm[root@localhost mnt]# find -iname libxml*./cdrom/CentOS/libxml2-devel-2.6.26-2.1.2.i386.rpm[root@localhost mnt]# rpm -ivh ./cdrom/CentOS/libxml2-devel-2.6.26-2.1.2.i386.rpm
CentOS rpm安装gcc-c++
出现错误configure: error: C++ preprocessor "/lib/cpp" fails sanity checkSee `config.log' for more details.gcc没有安装全,缺少c++预处理程序等还有
./cdrom/CentOS/gcc-c++-4.1.1-52.el5.i386.rpm./cdrom/CentOS/gcc-gfortran-4.1.1-52.el5.i386.rpm fortran预处理程序./cdrom/CentOS/gcc-java-4.1.1-52.el5.i386.rpm java预处理程序CentOS rpm安装./cdrom/CentOS/gcc-c++-4.1.1-52.el5.i386.rpmCentOS rpm安装gcc-c++包前还缺少其依赖包libstdc++-devel,第三张光盘
[root@localhost mnt]# find -iname libstd*./cdrom/CentOS/libstdc++-devel-4.1.1-52.el5.i386.rpm[root@localhost mnt]# rpm -ivh ./cdrom/CentOS/libstdc++-devel-4.1.1-52.el5.i386.rpmwarning: ./cdrom/CentOS/libstdc++-devel-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897Preparing... [100%]1:libstdc++-devel [100%]
第二张光盘[root@localhost mnt]# find -iname gcc*./cdrom/CentOS/gcc-4.1.1-52.el5.i386.rpm./cdrom/CentOS/gcc-c++-4.1.1-52.el5.i386.rpm./cdrom/CentOS/gcc-gfortran-4.1.1-52.el5.i386.rpm./cdrom/CentOS/gcc-java-4.1.1-52.el5.i386.rpm[root@localhost mnt]# rpm -ivh ./cdrom/CentOS/gcc-c++-4.1.1-52.el5.i386.rpmwarning: ./cdrom/CentOS/gcc-c++-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897Preparing... [100%]1:gcc-c++[100%]
“CentOS rpm安装编译gcc时的过程”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注亿速云网站,小编将为大家输出更多高质量的实用文章!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。