「インストール - GLIBC」の版間の差分

ナビゲーションに移動 検索に移動
10行目: 10行目:


== 依存関係のライブラリのインストール ==
== 依存関係のライブラリのインストール ==
==== Coreutilsのインストール ====
==== Coreutilsのインストール (不要) ====
# Coreutilsのビルドに必要なライブラリをインストールする。
Coreutilsのビルドに必要なライブラリをインストールする。<br>
#: <code>sudo zypper install make gcc libcap-devel libattr-devel libacl-devel</code>
sudo zypper install make gcc libcap-devel libattr-devel libacl-devel
# [http://ftp.gnu.org/gnu/coreutils Coreutilsの公式Webサイト]にアクセスして、最新のCoreutilsをダウンロードする。
<br>
#: <code>wget https://ftp.gnu.org/gnu/coreutils/coreutils-<バージョン>.tar.xz</code>
[http://ftp.gnu.org/gnu/coreutils Coreutilsの公式Webサイト]にアクセスして、最新のCoreutilsをダウンロードする。<br>
# ダウンロードしたCoreutilsを解凍して、Coreutilsディレクトリに移動する。
wget https://ftp.gnu.org/gnu/coreutils/coreutils-<バージョン>.tar.xz
#: <code>tar xf coreutils-<バージョン>.tar.xz</code>
<br>
#: <code>cd coreutils-<バージョン></code>
ダウンロードしたCoreutilsを解凍して、Coreutilsディレクトリに移動する。<br>
# ビルドディレクトリを作成する。
tar xf coreutils-<バージョン>.tar.xz
#: <code>mkdir build && cd build</code>
cd coreutils-<バージョン>
# Coreutilsをビルドおよびインストールする。
<br>
#: <code>../configure --prefix=<Coreutilsのインストールディレクトリ></code>
ビルドディレクトリを作成する。<br>
#: <code>make -j $(nproc)</code>
mkdir build && cd build
#: <code>make install</code>
<br>
#: または
Coreutilsをビルドおよびインストールする。<br>
#: <code>../configure --prefix=<Coreutilsのインストールディレクトリ> \</code>
../configure --prefix=<Coreutilsのインストールディレクトリ>
#: <code>CC="/<GCCのインストールディレクトリ>/bin/gcc-<バージョン名> -arch i386 -arch x86_64" \</code>
make -j $(nproc)
#: <code>CXX="/<GCCのインストールディレクトリ>/bin/g++-<バージョン名> -arch i386 -arch x86_64" \</code>
make install
#: <code>CPP="/<GCCのインストールディレクトリ>/bin/gcc-<バージョン名> -E" CXXCPP="/<GCCのインストールディレクトリ>/bin/g++-<バージョン名> -E"</code>
#: <code>make -j $(nproc)</code>
# または
#: <code>make install</code>
../configure --prefix=<Coreutilsのインストールディレクトリ> \
              CC="/<GCCのインストールディレクトリ>/bin/gcc-<バージョン名> -arch i386 -arch x86_64" \
              CXX="/<GCCのインストールディレクトリ>/bin/g++-<バージョン名> -arch i386 -arch x86_64" \
              CPP="/<GCCのインストールディレクトリ>/bin/gcc-<バージョン名> -E" CXXCPP="/<GCCのインストールディレクトリ>/bin/g++-<バージョン名> -E"
make -j $(nproc)
make install
<br>
<br>
==== Binutilsのインストール ====
==== Binutilsのインストール ====
# ビルドに必要な依存関係のライブラリをインストールする。
Binutilsのビルドに必要な依存関係のライブラリをインストールする。<br>
#: <code>sudo zypper install \</code>
# RHEL
#: <code>gmp-devel mpfr-devel mpc-devel isl-devel expect-devel gcc-fortran gcc7-fortran libgfortran4 libquadmath0 gcc-go gcc7-go libgo11</code>
sudo dnf install gmp-devel mpfr-devel libmpc-devel isl-devel  
# [https://ftp.gnu.org/gnu/binutils Binutilsの公式Webサイト]にアクセスして、最新のBinutilsをダウンロードする。
# ダウンロードしたBinutilsを解凍して、Binutilsディレクトリに移動する。
# SUSE
#: <code>tar xf Binutils-x.xx.tar.xz</code>
sudo zypper install patterns-base-basesystem patterns-devel-base-devel_basis patterns-devel-C-C++-devel_C_C++ \
# ビルドディレクトリを作成する。
                    gcc gcc-c++ gawk ncurses-devel make tar pkg-config m4 gperf bison flex expect expect-devel \
#: <code>mkdir build && cd build</code>
                    gmp-devel mpfr-devel mpc-devel isl-devel
# Binutilsをビルドおよびインストールするために、以下のコマンドを実行する。
<br>
#: <code>../configure --prefix=<Binutilsのインストールディレクトリ></code>
[https://ftp.gnu.org/gnu/binutils Binutilsの公式Webサイト]にアクセスして、最新のBinutilsをダウンロードする。<br>
#: <code>make -j $(nproc)</code>
ダウンロードしたBinutilsを解凍して、Binutilsディレクトリに移動する。<br>
#: <code>make install</code>
tar xf Binutils-<バージョン>.tar.xz
#: または
mkdir build && cd build
#: <code>../configure --prefix=<Binutilsのインストールディレクトリ> \</code>
<br>
#: <code>CC="/<GCCのインストールディレクトリ>/bin/gcc-<バージョン名> -arch i386 -arch x86_64" \</code>
Binutilsをビルドおよびインストールする。<br>
#: <code>CXX="/<GCCのインストールディレクトリ>/bin/g++-<バージョン名> -arch i386 -arch x86_64" \</code>
../configure --prefix=<Binutilsのインストールディレクトリ>
#: <code>CPP="/<GCCのインストールディレクトリ>/bin/gcc-<バージョン名> -E" CXXCPP="/<GCCのインストールディレクトリ>/bin/g++-<バージョン名> -E"</code>
make -j $(nproc)
#: <code>make -j $(nproc)</code>
make install
#: <code>make install</code>
# または
../configure --prefix=<Binutilsのインストールディレクトリ> \
              CC="/<GCCのインストールディレクトリ>/bin/gcc-<バージョン名> -arch i386 -arch x86_64" \
              CXX="/<GCCのインストールディレクトリ>/bin/g++-<バージョン名> -arch i386 -arch x86_64" \
              CPP="/<GCCのインストールディレクトリ>/bin/gcc-<バージョン名> -E" CXXCPP="/<GCCのインストールディレクトリ>/bin/g++-<バージョン名> -E"
make -j $(nproc)
make install
<br><br>
<br><br>


案内メニュー