当前位置: 技术问答>linux和unix
安装 gcc的问题
来源: 互联网 发布时间:2016-10-02
本文导语: 1. 我用linux系统版本是 我用Red Hat Enterprise Linux Server release 5.3 安装gcc 时 用rpm安装出现 出现一大堆依赖关系 ,于是放弃了 改用源码安装,源码安装 又出现如下问题 checking host system type... Invalid confi...
1. 我用linux系统版本是 我用Red Hat Enterprise Linux Server release 5.3
安装gcc 时 用rpm安装出现 出现一大堆依赖关系 ,于是放弃了
改用源码安装,源码安装 又出现如下问题
checking host system type... Invalid configuration `i386-RedHat-Linux': system `Linux' not recognized
checking target system type... Invalid configuration `i386-RedHat-Linux': system `Linux' not recognized
checking build system type... Invalid configuration `i386-RedHat-Linux': system `Linux' not recognized
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
求高手支招?
我只想安装apache ,他报的也是如下错误
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
网上说必须安装GCC ,看了一些安装方法,我就无语了。 说安装gcc前 ,系统中必须要有cc或者gcc等编译器
安装cc我,明白, 可为什么或者说要安装gcc编译器呢? 我现在安装的GCC难道不是编译器吗?
安装gcc 时 用rpm安装出现 出现一大堆依赖关系 ,于是放弃了
改用源码安装,源码安装 又出现如下问题
checking host system type... Invalid configuration `i386-RedHat-Linux': system `Linux' not recognized
checking target system type... Invalid configuration `i386-RedHat-Linux': system `Linux' not recognized
checking build system type... Invalid configuration `i386-RedHat-Linux': system `Linux' not recognized
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
求高手支招?
我只想安装apache ,他报的也是如下错误
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
网上说必须安装GCC ,看了一些安装方法,我就无语了。 说安装gcc前 ,系统中必须要有cc或者gcc等编译器
安装cc我,明白, 可为什么或者说要安装gcc编译器呢? 我现在安装的GCC难道不是编译器吗?
|
1. 我用linux系统版本是 我用Red Hat Enterprise Linux Server release 5.3
----------------------
1.你有光盘安装文件吧?直接把光盘挂载进去安装!
比如光盘挂载到/media下的
find /media -name "gcc*"
找到了 会有输出 比如
gcc-xxxx.rpm
然后rpm -ivh gcc-xxxx.rpm
如果提示依赖别的 继续用关键字到光盘挂载的地方去找 找到了继续rpm
几下就装好了
2.把你的rhel的yum源换成CentOS的或者光盘源(设置方法google)
然后yum -y install gcc gcc-c++一下搞定!
----------------------
1.你有光盘安装文件吧?直接把光盘挂载进去安装!
比如光盘挂载到/media下的
find /media -name "gcc*"
找到了 会有输出 比如
gcc-xxxx.rpm
然后rpm -ivh gcc-xxxx.rpm
如果提示依赖别的 继续用关键字到光盘挂载的地方去找 找到了继续rpm
几下就装好了
2.把你的rhel的yum源换成CentOS的或者光盘源(设置方法google)
然后yum -y install gcc gcc-c++一下搞定!
|
主席切中要害