4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS8へCentOS7のcompat-gcc-44-4.4.7をインストール

Last updated at Posted at 2019-10-31

CentOS8でGCC4.4.7を使いたい場合。

http://mirror.centos.org/centos/7/os/x86_64/Packages/
から

  • compat-gcc-44-4.4.7-8.el7.x86_64.rpm
  • compat-gcc-44-c++-4.4.7-8.el7.x86_64.rpm
  • libstdc++-4.8.5-39.el7.x86_64.rpm

をダウンロードしインストールするとよい。

CentOS8で実施
# フォースと共にあれ。
rpm -ivh --force \
 compat-gcc-44-4.4.7-8.el7.x86_64.rpm \
 compat-gcc-44-c++-4.4.7-8.el7.x86_64.rpm \
 libstdc++-4.8.5-39.el7.x86_64.rpm

# もしほかのGCCが入っていたら削除 (お好みで。)
yum remove -y gcc gcc-c++

# シンボリックリンクの修正
update-alternatives \
 --install /usr/bin/gcc gcc /usr/bin/gcc44 20 \
 --slave   /usr/bin/g++ g++ /usr/bin/g++44

export CC=/usr/bin/gcc44
export CXX=/usr/bin/g++44

このあと滅茶苦茶コンパイルした

4
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?