内容へ移動
Penguin's Coffee Break
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
tools:autoconf:インストール:2.69
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== autoconfをソースからインストール ====== 必須ライブラリ * [[tools:m4:インストール:1.4.18|m4]] <code> $ wget https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz $ tar xvf autoconf-2.69.tar.gz $ cd autoconf-2.69/ $ mkdir build $ cd build $ PATH=/opt/m4/1.4.18/bin:${PATH} \ ../configure --prefix=/opt/autoconf/2.69 $ make $ make install </code> ====== 環境変数 ====== <code> PATH=/opt/autoconf/2.69/bin:${PATH} </code> ====== スクリプト ====== <code> #!/bin/bash ############################################################# inst_ver=2.69 inst_target=/opt/autoconf/${inst_ver} arch_file="autoconf-"${inst_ver}".tar.gz" target_web="https://ftp.gnu.org/gnu/autoconf/"${arch_file} working_dir=$(cd $(dirname $0); pwd)/autoconf-${inst_ver} m4_path=/opt/m4/1.4.18/bin ############################################################# if [ -d ${inst_target} ]; then echo "${inst_target} is already exist" exit 0 fi if [ ! -d ${m4_path} ]; then echo "m4 is not exist" exit 1 fi mkdir -p ${inst_target} if [ $? -ne 0 ]; then echo "You do not have write permission on "${inst_target}"." echo "Scipt is aborted." exit 1 fi rm -rf ${arch_file} ${working_dir} wget ${target_web} if [ $? -ne 0 ]; then echo "command is failed" echo "wget ${target_web}" exit 1 fi mkdir ${working_dir} tar xvf ${arch_file} -C ${working_dir} --strip-components 1 cd ${working_dir} mkdir -p build cd build PATH=${m4_path}:${PATH} ../configure --prefix=${inst_target} make make install </code>
tools/autoconf/インストール/2.69.txt
· 最終更新: 2021/01/14 06:48 by
michiya
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ