[AIX] solutions to the problem of "C compiler CC is not found" in Aix 6.1

Source: Internet
Author: User
I. Origin of the problem

Installing the deployment nginx-1.4.1 in Aix a few days ago reports the following error:

# Cd nginx-1.4.1
#./Configure
Checking for OS
+ AIX 1 0004f60bd400
Checking for C compiler... not found

./Configure: Error:C compiler CC is not found
#

Ii. "Vomiting AIX"

I believe anyone who has used AIX knows that everything should be installed!
I checked a lot of information on the Internet and got a conclusion that CC (C compiler) requires US $4,300.00 to be clear. It is a beautiful knife!
Address: http://www-03.ibm.com/software/products/us/en/xlcpp-aix
It's too dark. Crazy fortune ~~~ Crashing ......
A great deal of thinking ............
Why are other UNIX-like releases available?

Iii. GCC beauty

Originally ....
There is a pretty girl named GCC, and there is no enemy of talent! GCC is used.
Haha ~~~ I like it ~~~
Go to her house (http://gcc.gnu.org/) to see her appearance, only hate to see each other very late !!!

The GNU Compiler Collection has des front ends for C, C ++, objective-C, Fortran, Java, Ada, and go, as well as libraries for these programming ages (libstdc ++, libgcj ,...).
GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, free in the sense that it respects the user's freedom.

Check her last message ~~~ Her free package ~~~

Official download Source: http://gcc.gnu.org/mirrors.html
GCC download source from IBM: ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/ (returns to the previous layer with a few surprises)
You can also go to IBM's AIX toolbox for Linux applications download: http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html
Of course, the omnipotent Internet is not only able to find her in these three ways... Goooooogle!

4. Please bring the beauty home

#### Install GCC ###
# Sudo rpm-IVH libgcc-4.2.0-3.aix6.1.ppc.rpm
# Sudo rpm-IVH libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm
# Sudo rpm-IVH libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm
# Sudo rpm-IVH gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm
# Sudo rpm-IVH gcc-4.2.0-3.aix6.1.ppc.rpm
Pay attention to the order. They have dependencies ~~~
I get used to Ubuntu and fall in love with sudo. Sometimes I can't change sudo. No sudo is available on Google. You can also use root to log on.

5. Modify the CC path

# Cd/bin
# Ln-s GCC CC

You know.

Related Article

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.