In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the process of installing and compiling gcc in CentOS rpm". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
CentOS is a commonly used system based on linux development, and then I deeply discussed CentOS rpm installation. Here, I generally explain to CentOS users how to install CentOS rpm application, use CentOS rpm under linux to install libxml2,gcc,gcc-c++ and other basic packages. I used CentOS5.0 version of linux and installed it at a minimum, so many packages are not installed. Such as gcc (C component and interpreter), libxml2,gcc-c++, etc. I am now using the installation CD to install these required packages. I have already installed gcc before, and did not write down the steps for this installation, but it is the same as other installations. Now write down my installation diary in case I forget it. I hope it will be of some help to netizens.
CentOS rpm install libxml2-devel
When CentOSrpm installs libxml2-devel, it is prompted that the package it depends on is also pkgconfig-0.21-1 ZLibMuVue de Vel 1.2.3-3, so follow the prompt to find whatever package is missing on the CentOSrpm installation CD. Generally speaking, the basic package will be placed on the second CD [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 e8562897. [100] 1:pkgconfig [100%]
[root@localhost mnt] # umount / mnt/cdrom
Insert the third CD [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 install gcc-c++
Error configure: error: C++ preprocessor "/ lib/cpp" fails sanity checkSee `config.log' for more details.gcc is not fully installed, lack of C++ preprocessor, etc.
. / cdrom/CentOS/gcc-c++-4.1.1-52.el5.i386.rpm./cdrom/CentOS/gcc-gfortran-4.1.1-52.el5.i386.rpm fortran preprocessor. / cdrom/CentOS/gcc-java-4.1.1-52.el5.i386.rpm java preprocessor CentOS rpm installation. / cdrom/CentOS/gcc-c++-4.1.1-52.el5.i386.rpmCentOS rpm is missing its dependency package libstdc++-devel before installing the gcc-c++ package, the third CD
[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 e8562897. [100] 1:libstdc++-devel [100%]
Second CD [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 Mushroom + [100%]
This is the end of "the process of installing and compiling gcc for CentOS rpm". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.