2012-01-22 15:08:19 +0000 2012-01-22 15:08:19 +0000
88
88
Advertisement

CentOSにgcc 4.7.x/4.8.xをインストールする方法

Advertisement

CentOS 6.2+を搭載したシステムにgcc 4.7.x/4.8.xをインストールする最も簡単な方法は何でしょうか?デフォルトのRPMパッケージには古いバージョンのgccが含まれています。

Advertisement
Advertisement

回答 (8)

67
67
67
2013-01-26 13:54:36 +0000

centos.orgのTru Huynh氏は、centos用の redhat developer toolset 1.1 を構築しており、gcc 4.7.2

を含んでいます。

42
42
42
2014-04-17 23:09:20 +0000

ここに devtoolset-2 (gcc 4.8.1 を含む)

これは http://people.centos. org/tru/devtools-2/readme

wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++

既知の問題:

-符号なしのパッケージ - CentOS-6 devtoolset-2 は全Eclipseのスタックを含んでいるが、まだ造らないdevtoolset-2-ideを必要とする - CentOS-6 すべてのmavenの関連ファイルは造られない

devtools-1からの主な変更。 1:

  • /opt/centos は使用されなくなった
  • /opt/rh はアップストリームとして使用されるようになった (SL バージョンとして)
30
Advertisement
30
30
2013-11-15 13:21:43 +0000
Advertisement

devtoolset 2.0の新しいバージョンがあります。Scientific Linuxで働いているCernからの親切な人々はオープンバージョンを作成しました:

CentOS (Scientific Linuxではない)を使用する場合は、ここからGPGキーをインポートしなければなりません:

rpm --import http://www.scientificlinux.org/documentation/gpg/RPM-GPG-KEY-cern

お楽しみください!

21
21
21
2013-11-18 20:33:21 +0000
# 1. Install a package with repository for your system:
# RHEL 6: `yum-config-manager --enable rhel-server-rhscl-6-rpmss`
# RHEL 7: `yum-config-manager --enable rhel-server-rhscl-7-rpms`
$ sudo yum install centos-release-scl # On CentOS 6/7+, install package centos-release-scl available in CentOS repository

# 2. Install the collection:
$ sudo yum install devtoolset-3

# 3. Start using software collections:
$ scl enable devtoolset-3 bash

$ sudo yum list devtoolset-3\*
2
Advertisement
2
2
2012-01-22 15:21:25 +0000
Advertisement

gnu gcc ](http://gcc.gnu.org/)を見たところ、最新の安定版は4.62。バージョン4.7はダウンロードしてコンパイルすることができます。

2
2
2
2014-06-29 22:23:38 +0000

どちらの答えもうまくいきませんでした。 devtoolset のシェルでも gcc 4.4.7 を見ています。

1
Advertisement
1
1
2014-09-14 11:25:12 +0000
Advertisement

devtool1.1に問題があるので、いくつかの変更をしました - 最終的に、これは私のために働きました : 最初に

yum clean all

を実行してください :

wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo -O /etc/yum.repos.d/devtools-1.1.repo

今 /etc/yum.repos.d/devtools-1.1.repo を開いて、次のように変更してください:

http://people.centos.org/tru/devtools-2/$releasever/$basearch/RPMS

(あなたが x86_64 を使用している場合) 1.repo と変更:

http://people.centos.org/tru/devtools-1.1/6/x86_64/RPMS/

(x86 を使用している場合) から:

http://people.centos.org/tru/devtools-1.1/6/i386/RPMS/

または ((x86 を使用している場合) yum install devtoolset-1.1

と最後に実行:

&001 を実行します。

0
0
0
2012-05-13 06:30:24 +0000

これを実現する一つの方法は、fedoraリポジトリからsrcのRPMを取得し、ターゲットシステム用に再コンパイルすることです。

Advertisement

関連する質問

2
2
4
4
7
Advertisement
Advertisement