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

ナビゲーションに移動 検索に移動
27行目: 27行目:
  LD_LIBRARY_PATH=""
  LD_LIBRARY_PATH=""
<br>
<br>
ビルド用ディレクトリに移動して、Makeファイルを作成する。<br>
ビルド用ディレクトリに移動して、ビルドおよびインストールを行う。<br>
標準の<code>--prefix=/usr</code>ディレクトリを設定した後、一時的なインストールディレクトリにGNU標準変数<code>DESTDIR</code>を設定して、<br>
これで、インストールしたGLIBCにより、実行するアプリケーションをビルドすることができる。<br>
makeコマンドとmake installコマンドを実行する。<br>
  cd build
  cd build
  ../glibc/configure CC=/home/<ユーザ名>/InstallSoftware/GCC/gcc-10_2_0/bin/gcc-10.2 --prefix=/home/<ユーザ名>/Installsoftware/GLIBC \
  ../glibc/configure CC=/home/<ユーザ名>/InstallSoftware/GCC/gcc-10_2_0/bin/gcc-10.2 --prefix=/home/<ユーザ名>/Installsoftware/GLIBC \
  --host=x86_64-linux-gnu --enable-add-ons=libidn, --without-selinux --enable-stack-protector=strong --enable-multi-arch \
  --host=x86_64-linux-gnu --enable-add-ons=libidn, --without-selinux --enable-stack-protector=strong --enable-multi-arch \
  --with-binutils=/home/<ユーザ名>/InstallSoftware/Binutils
  --with-binutils=/home/<ユーザ名>/InstallSoftware/Binutils
<br>
glibcをコンパイルする。<br>
  make -j 8
  make -j 8
<br>
glibcをインストールする。<br>
これで、インストールしたGLIBCにより、実行するアプリケーションをビルドすることができる。<br>
  make install
  make install
<br>
<br>

案内メニュー