Problems with gcc installation in Linux

Source: Internet
Author: User
Problems that may occur when gcc is installed in Linux-general Linux technology-Linux programming and kernel information. For details, refer to the following section. I believe that many people are still using the classic RedHat9. After all, he is a free RedHat Linux!

This section describes the problems that may occur when installing gcc.

When installing gcc, you may be prompted to install the following software packages:

Binutils-2.13.90.0.18-9.i386.rpm

Cpp-3.2.2-5.i386.rpm

Glibc-devel-2.3.2-11.9.i386.rpm

Don't worry, step by step. First, find the above three software packages on the first red hat CD and install them.

[Root @ RedHat9 mnt] # mount/dev/cdrom/mnt/cdrom/

Mount: block device/dev/cdrom is write-protected, mounting read-only

[Root @ RedHat9 mnt] # find-iname binutils *

./Cdrom/RedHat/RPMS/binutils-2.13.90.0.18-9.i386.rpm

[Root @ RedHat9 mnt] # RPMS/binutils-2.13.90.0.18-9.i386.rpm rpm-ivh cdrom/RedHat/RPMS/

Warning: cdrom/RedHat/RPMS/binutils-2.13.90.0.18-9.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Preparing... ######################################## ### [100%]

1: binutils ####################################### #### [100%]

[Root @ RedHat9 mnt] # find-iname cpp *

./Cdrom/RedHat/RPMS/cpp-3.2.2-5.i386.rpm

[Root @ RedHat9 mnt] # RPMS/cpp-3.2.2-5.i386.rpm rpm-ivh cdrom/RedHat/RPMS/

Warning: cdrom/RedHat/RPMS/cpp-3.2.2-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Preparing... ######################################## ### [100%]

1: cpp ####################################### #### [100%]

[Root @ RedHat9 mnt] # find-iname glibc-devel *

./Cdrom/RedHat/RPMS/glibc-devel-2.3.2-11.9.i386.rpm

[Root @ RedHat9 mnt] # RPMS/glibc-devel-2.3.2-11.9.i386.rpm rpm-ivh cdrom/RedHat/RPMS/

Warning: cdrom/RedHat/RPMS/glibc-devel-2.3.2-11.9.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Error: Failed dependencies:

Kernel-headers is needed by glibc-devel-2.3.2-11.9

Kernel-headers>; = 2.2.1 is needed by glibc-devel-2.3.2-11.9

In this case, do not search for kernel-headers. You can't find the kernel-headers on any of the three discs. You need to find glibc-kernheaders. See the following:

[Root @ RedHat9 mnt] # find-iname glibc-k *

./Cdrom/RedHat/RPMS/glibc-kernheaders-2.4-8.10.i386.rpm

[Root @ RedHat9 mnt] # RPMS/glibc-kernheaders-2.4-8.10.i386.rpm rpm-ivh cdrom/RedHat/RPMS/

Warning: cdrom/RedHat/RPMS/glibc-kernheaders-2.4-8.10.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Preparing... ######################################## ### [100%]

1: glibc-kernheaders ##################################### ###### [100%]

[Root @ RedHat9 mnt] # find-iname glibc-devel *

./Cdrom/RedHat/RPMS/glibc-devel-2.3.2-11.9.i386.rpm

[Root @ RedHat9 mnt] # RPMS/glibc-devel-2.3.2-11.9.i386.rpm rpm-ivh cdrom/RedHat/RPMS/

Warning: cdrom/RedHat/RPMS/glibc-devel-2.3.2-11.9.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Preparing... ######################################## ### [100%]

1: glibc-devel ##################################### ###### [100%]

So far, the software packages on which gcc depends have been installed. Now insert the second disc and install gcc:

[Root @ RedHat9 mnt] # umount/mnt/cdrom

[Root @ RedHat9 mnt] # mount/dev/cdrom/mnt/cdrom/

Mount: block device/dev/cdrom is write-protected, mounting read-only

[Root @ RedHat9 mnt] # find-iname gcc *

./Cdrom/RedHat/RPMS/gcc-3.2.2-5.i386.rpm

./Cdrom/RedHat/RPMS/gcc-c ++-3.2.2-5. i386.rpm

./Cdrom/RedHat/RPMS/gcc-g77-3.2.2-5.i386.rpm

./Cdrom/RedHat/RPMS/gcc-gnat-3.2.2-5.i386.rpm

Apt-get install gcc

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.