LoginSignup
13
4

More than 5 years have passed since last update.

gcc バージョンアップ

Last updated at Posted at 2018-05-02

gcc バージョンアップ

gcc の7.3.0取得

wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-7.3.0/gcc-7.3.0.tar.gz

取ってきたものを解凍します。

tar zxvf gcc-7.3.0.tar.gz 

取得してきたgcc をビルドします。

cd gcc-7.3.0
./contrib/download_prerequisites
mkdir build
cd build/
../configure --enable-languages=c,c++ --prefix=/usr/local --disable-bootstrap --disable-multilib
make
make install

確認

->> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --enable-languages=c,c++ --prefix=/usr/local --disable-bootstrap --disable-multilib
Thread model: posix
gcc version 7.3.0 (GCC) 

成功です。

13
4
0

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
13
4