After installing the system, you need to install the compiler (even a GCC installation experience)

Source: Internet
Author: User
After installing the system, you need to install the compiler (even a GCC installation experience)
The day before yesterday, we completed the installation of linux2005 ..
I had a linuxdown (resumable download tool) all over the world. In order to download files in Linux, I can't download half of the files !, File Name: linuxdown-1.2.0.tar.gz
After opening the graphics do not say it, in the terminal to execute # tar-xzvf linuxdown-1.2.0.tar.gz
It is because the source file cannot be installed, as if there is no compiler or something CC .. (I didn't prompt when installing the system, I don't know how to install the compilation software)
Go to the Garden of Eden, gcc-3.3.3-7.i386.rpm.
Run # rpm-IVH gcc-3.3.3-7.i386.rpm on the terminal
Tip:
Warning: gcc-3.3.3-7.i386.rpm: V3 DSA Signature: nokey, key ID 4f2a6fd2
Error: Failed dependencies:
Libstdc ++-devel = 3.3.3 is needed by GCC-C ++-3.3.3-7
Libf2c = 3.3.3-7 is needed by gcc-g77-3.3.3-7
Libgnat = 3.3.3-7 is needed by gcc-gnat-3.3.3-7
Libgcj-devel> = 3.3.3 is needed by gcc-java-3.3.3-7
Zlib-devel is needed by gcc-java-3.3.3-7
Libobjc = 3.3.3-7 is needed by gcc-objc-3.3.3-7
No way :..
To win the second disk ISO decompress it, in Linux into the Baby2-devel-i386-disc] #./install. Sh-all
Sorry, install. Sh cocould not find correct Directory :~ /RPMS

I posted a post on the Forum and later learned that the mistake was:
./Install. Sh-all
./Install. Sh -- all
A bar is missing.
I did not even try again, because when I saw the reply an hour ago, I installed gcc3.2.2 *
So much nonsense...
Specifically, we do this:
Let's talk about it in front-even the CD that was used when the system was first installed, but luck may be that the installation was not successful, I changed three sets of CD. I was prompted to install it. When the boot was completed, WINXP was depressed. It seemed that I didn't write the boot information!
I had to replace the hard disk installation method.
It was finally installed at the time of co-creation, so there were three sets of Linux ISO (redhat9.0, redflag4.1, 2005 ..)

--------------------------------------------
in win, use WinRAR to enter several ISO entries in redhat9.0 respectively, we can see that the GCC of redhat9.0 is the file of version 3.2.2, which is the same as those of the "characters" (3.2.2), so we can go back to the ISO root to find the file name * 3.2.2, it is quite convenient to extract all the files to a separate folder (even g3.2.2). Then, find the three ISO files in the second folder of redhat9.0 and put them in the same folder (g3.2.2 ), now, the "g3.2.2 GCC" rpm installation package is counted as complete. for example, if we can't get back to WINXP, we will use similar methods to put redflag4.1 in (g3.2.3) and co-create the release (g3.3.3)
copy the three files to/usr/local in Linux to go to g3.2.2 and run rpm-IVH *. rpm is not good, there is a file can not be installed, look at the grid w3m-0.3.2.2-5.i386.rpm and then execute rpm-IVH *. print the RPM "familiar" information, and install OK;
yesterday, gcc4.0.2 is also idle
# cp/home/clin003/gcc-4.0.2.tar.bz2/usr/local
# cd/usr/local
# bunzip2 gcc-4.0.2.tar.bz2
# tar xvf gcc-4.0.2.tar
#. /gcc-4.0.2/configure
# Make (wait for a long time)
# make install (same as above ..)
well, now I try to compile a Code gcc-pipe-O test.1 test. c
no problem. Just find the GCC command, test. c write it yourself...
^-^

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.