一、问题的由来

前几天在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. seaJs初体验

    目录结构 模块定义define define(function(require,exports,module){ //exports可以把方法或属性暴露给外部 exports.name = 'hell ...

  2. TCP协议握手与分手

    TCP(Transmission Control Protocol) 传输控制协议 TCP的7次握手可以理解为3次握手和4次分手. TCP状态转换图,如下: 这个图N多人都知道,它对排除和定位网络或系 ...

  3. C++例题1:输出可打印字符

    #include<iostream>#include<stdlib.h>#include<cctype>int main(){ int i;char a=0; fo ...

  4. BZOJ 2423 最长公共子序列

    Description 字符序列的子序列是指从给定字符序列中随意地(不一定连续)去掉若干个字符(可能一个也不去掉)后所形成的字符序列.令给定的字符序列X=“x0,x1,…,xm-1”,序列Y=“y0, ...

  5. [转]Windows Azure上安装SharePoint 2013

    基于Windows Azure 安装SharePoint 2013 前段时间写的基于Windows Azure安装SharePoint系列,由于Azure的体验账号过期了,所以不得不暂停.今天有幸参加 ...

  6. 跨进程发送消息数据(发送WM_COPYDATA消息,够简单的)

    1 //1.发送窗体 2 procedure TForm2.Button1Click(Sender: TObject); 3 var 4 h: HWND; 5 Size: Integer; 6 Cop ...

  7. VSTO:无法安装此应用程序,因为已安装具有相同标识的应用程序

    原文:VSTO:无法安装此应用程序,因为已安装具有相同标识的应用程序 在开发环境(Win7+VS2010+Outlook 2010)上做一个Outlook AddIn,运行Outlook时报如下错误: ...

  8. Unity NGUI实现Tabview

    unity版本:4.5.1 NGUI版本:3.5 参考链接:http://blog.csdn.net/g__dragon/article/details/17242969,作者:CSDN G_Drag ...

  9. Unity NGUI实现技能CD效果

    unity版本:4.5.1 NGUI版本:3.6.5 脚本代码:C# 在游戏中经常要实现技能的CD效果,NGUI中已经实现了这个功能,即在button上创建一个半透明的Sprite实现这个功能. 首先 ...

  10. 自己动手实现Queue

    前言: 看到许多面经说,有时候面试官要你自己当场用模板写出自己的vector容器.于是,我也琢磨着怎么自己动手写一个,可是本人才刚刚学C++模板编程不久,会的不多.不过,我恰好在C++ Primer上 ...