一、问题的由来

前几天在AIX中安装部署 nginx-1.4.1,报如下错误:

# 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

#

二、“吐血的AIX”

AIX的恶心之处相信用过它的都知道:什么都要装!

在网上查了很多资料,得到的是一个结论,CC(C compiler) 需要花费 USD $4,300.00 看清楚,是美刀!

采购地址:http://www-03.ibm.com/software/products/us/en/xlcpp-aix

太黑了,疯狂敛财~~~ 崩溃中......

思绪万千…………

为啥 其他类unix发行版都可以有的呢?

三、GCC大美女

原来。。。。

有一个美女叫GCC,才华之横溢无人能敌! 人家用的就是GCC。

啊哈哈~~~额喜欢~~~

去她家(http://gcc.gnu.org/)一睹她了的容貌,只恨相见甚晚!!!

The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these languages (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.

看她最后的留言哦~~~ 她的免费的哦~~~

官方下载源:http://gcc.gnu.org/mirrors.html

IBM提供的GCC下载源:ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/ (返回上一层会有惊喜滴)

也可以去IBM 提供的 AIX Toolbox for Linux Applications 下载:http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

当然万能的互联网不只有这三种方式能寻到她。。。Goooooogle一下你就知道!

四、把美女请回家

#### 安装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

注意顺序哦,她们是有依赖滴~~~

用ubuntu用惯了,爱上了sudo,有时候本能地用sudo,改不过来。没有sudo的上Google下到处都是;或者用root登录亦可。

五、修改cc路径

# cd /bin

# ln -s gcc cc

你懂的。

【AIX】AIX 6.1 “C compiler cc is not found”问题的解决方案的更多相关文章

  1. nginx报错:./configure: error: C compiler cc is not found, gcc 是已经安装了的

    源码安装nginx报错,找不到gcc,但是实际上gcc是存在的,如下: # ./configure checking for OS + Linux -.el7.x86_64 x86_64 checki ...

  2. nginx安装错误:c compiler cc is not found

    今天安装软件nginx的时候遇到的报错:c compiler cc is not found 查了下网上的资料,解决方案也不复杂. 先说明下环境: 服务器:CentOS 7 nginx:2.3.1 原 ...

  3. Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found

    场景 Ubuntu Server 16.04 LTS上怎样安装下载安装Nginx并启动: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/detai ...

  4. CentOS 7 离线环境安装nginx时报错:./configure: error: C compiler cc is not found

    先说解决方法: 在nginx目录下,查看objs/autoconf.err文件,该文件记录了具体的错误信息 vi objs/autoconf.err 一般就是缺少一些文件,因为我的gcc.g++也是离 ...

  5. 编译安装nginx提示./configure: error: C compiler cc is not found

    1 编译安装nginx提示如下 ./configure: error: C compiler cc is not found 2 解决办法 yum -y install gcc gcc-c++ aut ...

  6. Linux安装Nginx报错: ./configure: error: C compiler cc is not found

    CentOS 7.3 下 安装 Nginx 执行配置命令 ./configure 时提示以下错误: checking for OS + Linux 2.6.32-431.el6.x86_64 x86_ ...

  7. ./configure: error: C compiler cc is not found

    没有安装gcc 在安装nginx之前先安装依赖软件 yum install -y gcc gcc-c++ autoconf pcre pcre-devel make automake wget htt ...

  8. centos7安装nginx 报./configure: error: C compiler cc is not found

    CentOS 7 下 安装 nginx 执行配置命令 ./configure 时提示以下错误: 解决: 执行以下命令: yum -y install gcc gcc-c++ autoconf auto ...

  9. nginx配置C compiler cc is not found

    1.需求 linux安装个编译器 参考资料:http://blog.csdn.net/testcs_dn/article/details/51461750

随机推荐

  1. css3 翻书效果

    div { -webkit-transform-origin: 285px 0; -webkit-transform: translate(1030px, 500px) rotate(32deg); ...

  2. Javascript 类数组(Array-like)对象

    Javascript中的类数组对象(Array-like object)指的是一些看起来像数组但又不是数组的对象.Javascript中的arguments变量.document.getElement ...

  3. Mrakdown文本编辑器

    http://www.csdn.net/article/2014-05-05/2819623 WMD WMD (wmd-editor)是一个简单轻量级的HTML编辑器,使用的是 Markdown 文本 ...

  4. [R]django的HTTPREQUEST对象

    django的HTTPREQUEST对象 via Django使用request和response对象 当请求一张页面时,Django把请求的metadata数据包装成一个HttpRequest对象, ...

  5. 学会爱上iOS自动布局(Auto Layout) - 剑尖

    本文翻译自Yari Dareglia的LEARN TO LOVE AUTO LAYOUT文章先生们,女士们,让我们以正确的心态开始本教程吧:自动布局就是简单!我花了一段时间来掌握自动布局是如何工作的, ...

  6. IOS 企业版证书($299)In-House方式发布指南

    一.明确几个概念 1.企业版IDP:即iOS Development Enterprise Program.注意是$299/Year那种,并不是$99/Year的那种. 2.In House:是只企业 ...

  7. vs2013update4 vs-mda-remote cordova真机测试ios 解决里面一个坑

    sudo npm install -g vs-mda-remote --user=你的用户名 此步骤为安装vs-mda-remote,如果安装成功 执行vs-mda-remote –secure fa ...

  8. 谈谈Parser --王垠

    一直很了解人们对于parser的误解,可是一直都提不起兴趣来阐述对它的观点.然而我觉得是有必要解释一下这个问题的时候了.我感觉得到大部分人对于parser的误解之深,再不澄清一下,恐怕这些谬误就要写进 ...

  9. [BC Round#26] Card 【各种水】

    题目链接:HDOJ - 5159 这道题的做法太多了..BC的第二题也是可以非常水的.. 算法一 我在比赛的时候写的算法是这样的.. 预处理出所有的答案,然后对于每个询问直接输出. 询问 (a, b) ...

  10. javascript widget ui mvc

    MVC只是javascript的一个UI模式 JavaScript UI----UI, Template, MVC(View)----Backbone, Angular RequireJS------ ...