no acceptable C compiler found in $PATH
2011-12-12 10:24
281 查看
linux下安装源码包软件可能会出现错误
configure: error: no acceptable C compiler found in $PATH See `config.log' for more details.
你的机器里没有安装任何C语言编译器,可以安装gcc。
可以在安装盘里找到gcc相关的包进行安装,不过会比较繁琐,因为关联的包会比较多。
如果可以上网,使用yum安装是比较好的选择:
yum install gcc (本人亲测成功)
还有人建议使用:
sudo yum install gcc* make* (如果以上不成功,可以尝试一下)
以下转载“一方有” 博客,/article/4304921.html
新安装好的Centos是没有安装gcc的,若是在联网的情况下安装gcc,运行(需要配置好dns服务器)
下面要介绍的是在离线的情况下安装gcc,前提是需要有安装盘
因为安装盘里有gcc,我们把安装盘当作一个本地yum源
end
configure: error: no acceptable C compiler found in $PATH See `config.log' for more details.
你的机器里没有安装任何C语言编译器,可以安装gcc。
可以在安装盘里找到gcc相关的包进行安装,不过会比较繁琐,因为关联的包会比较多。
如果可以上网,使用yum安装是比较好的选择:
yum install gcc (本人亲测成功)
还有人建议使用:
sudo yum install gcc* make* (如果以上不成功,可以尝试一下)
以下转载“一方有” 博客,/article/4304921.html
新安装好的Centos是没有安装gcc的,若是在联网的情况下安装gcc,运行(需要配置好dns服务器)
yum install gcc
下面要介绍的是在离线的情况下安装gcc,前提是需要有安装盘
因为安装盘里有gcc,我们把安装盘当作一个本地yum源
#设置光驱挂载点 mkdir -p /Application/cdrom #挂载光驱 mount /dev/cdrom /Application/cdrom #备份原yum源 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak #把光驱设为yum源 echo "[base]" > /etc/yum.repos.d/CentOS-Base.repo echo "name=CentOS-$releasever - Base" >> /etc/yum.repos.d/CentOS-Base.repo echo "baseurl=file:///Application/cdrom/" >> /etc/yum.repos.d/CentOS-Base.repo echo "gpgcheck=0" >> /etc/yum.repos.d/CentOS-Base.repo #安装gcc yum install gcc -y #恢复原yum源 cp –f /etc/yum.repos.d/CentOS-Base.repo.bak /etc/yum.repos.d/CentOS-Base.repo
end
相关文章推荐
- configure: error: no acceptable C compiler found in $PATH 问题解决
- no acceptable C compiler found in $PATH
- Centos5.8(64位)装Python2.7.5执行./configure时报错,configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH 问题解决
- 安装gcc提示no acceptable C compiler found in $PATH
- aconfigure: error: no acceptable C compiler found in $PATH
- Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH 解决办法
- CentOS6.2报no acceptable C compiler found in $PATH的解决办法
- centOS升级python2至python3过程中遇到configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- "no acceptable C compiler found in $PATH"解决手记
- CentOS上安装软件错误提示:configure: error: no acceptable C compiler found in $PATH
- no acceptable Java compiler found in $PATH解决办法
- configure: error: no acceptable C compiler found in $PATH 问题解决
- ./configure时提示错误 configure: error: no acceptable C compiler found in $PATH
- 解决:no acceptable C compiler found in $PATH