ユーザ用ツール

サイト用ツール


tools:autoconf:インストール:2.69

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
tools:autoconf:インストール:2.69 [2021/01/13 06:41]
michiya ↷ tools:autoconf:installation:2.69 から tools:autoconf:インストール:2.69 へページを移動しました。
tools:autoconf:インストール:2.69 [2021/01/14 06:48] (現在)
michiya
行 1: 行 1:
-====== autoconf ======+====== autoconfをソースからインストール ======
  
 必須ライブラリ 必須ライブラリ
行 9: 行 9:
 $ cd autoconf-2.69/ $ cd autoconf-2.69/
 $ mkdir build $ mkdir build
-$ ../configure --prefix=/opt/autoconf/2.69+cd build 
 +$ PATH=/opt/m4/1.4.18/bin:${PATH} \ 
 +  ../configure --prefix=/opt/autoconf/2.69
 $ make $ make
 $ make install $ make install
 </code> </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.1610520072.txt.gz · 最終更新: 2021/01/13 06:41 by michiya