在Linux上安装GCC [英] Installing gcc on linux

查看:3627
本文介绍了在Linux上安装GCC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在需要荫安装的CentOS或科学的Linux操作系统上安装gcc版本4.8。​​

How to install gcc version 4.8 on centos or scientific linux operating systems which require yum for installing.

我试图从 https://ftp.gnu.org下载gcc /gnu/gcc/gcc-4.8.2/ 然后跑的./configure,然后作出。运行make后,它给我的错误:配置:错误:无法计算出目标文件后缀:不能编译
见'的config.log'了解更多详情。

I tried to download gcc from https://ftp.gnu.org/gnu/gcc/gcc-4.8.2/ and then ran ./configure and then make. After running make it gives me the error: configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details.

有没有一些方法,我也好在Linux上使用安装gcc版本4.8百胜安装

Is there some way by which I may install gcc version 4.8 on linux using yum install

我想:
1)。我与百胜--enablerepo =测试-2-devtools-6试图安装devtoolset-2-GCC devtoolset-2-GCC-C ++它给我资料库没有找到

I tried: 1). I tried with yum --enablerepo=testing-2-devtools-6 install devtoolset-2-gcc devtoolset-2-gcc-c++ it gives me repository not found

2)。百胜餐饮集团安装开发工具。它给了我已经安装包gcc-4.4.7-11.el6.x86_64和最新版

2). yum group install "Development Tools". It gives me Package gcc-4.4.7-11.el6.x86_64 already installed and latest version

3)。从头开始构建它,你必须首先做./contrib/download_$p$prequisites获得MPFR,GMP和MPC在GCC源代码树,然后做一个单独的目录,然后运行/路径/要/ GCC /来源/配置。
它提供了配置:错误:构建了树,但/home/Softwares/gcc-4.8.2包含主机x86_64的未知-Linux的GNU

3). building it from scratch, you'll have to do ./contrib/download_prerequisites first to get MPFR, GMP and MPC in the GCC source tree, then make a separate directory and run /path/to/gcc/source/configure. It gives configure: error: building out of tree but /home/Softwares/gcc-4.8.2 contains host-x86_64-unknown-linux-gnu

推荐答案

<一个href=\"https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/3/html/3.0_Release_Notes/DTS3.0_Release.html#Features\" rel=\"nofollow\">https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/3/html/3.0_Release_Notes/DTS3.0_Release.html#Features
安装在类似于描述的此处。 (基本上你使用回购别人建为CentOS)。

https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/3/html/3.0_Release_Notes/DTS3.0_Release.html#Features Install the Red Hat Developer Toolset 3.0 (or 2.X) in a way similar to what is described here. (Basically you use a repo someone else built for CentOS).

这篇关于在Linux上安装GCC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆