gcc-13.0.2 のビルド (Ubuntu Desktop 23.04)

gcc-13.2.0 の Ubuntu Desktop 23.04 へのインストールログです.
個人ディレクトリにインストールします.

sudo apt -y install g++

wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-13.2.0/gcc-13.2.0.tar.xz
tar xfJ gcc-13.2.0.tar.xz
cd gcc-13.2.0/
./contrib/download_prerequisites
mkdir a
cd a
../configure --prefix=/home/may/app/gcc-13.2.0 --disable-multilib

もし
configure: error: *** A compiler with support for C++11 language features is required.
と,表示されたら
sudo apt -y install g++
を忘れています.

make
mkdir -p /home/may/app
mkdir -p /home/may/app/gcc-13.2.0
make install
/home/may/app/gcc-13.2.0/bin/gcc --version

以下の様にバージョンが表示されると思います.

gcc (GCC) 13.2.0 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

#linux
#ubuntu
#ubuntudesktop
#コンパイラ
#ubuntu23
#Ubuntu23_04
#Lobster
#compiler
#gcc
#gcc13


この記事が気に入ったらサポートをしてみませんか?