このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
tools:autoconf:インストール:2.69 [2020/12/18 11:00] michiya 以前のリビジョンを復元 (2020/12/09 11:52) |
tools:autoconf:インストール:2.69 [2021/01/14 06:48] (現在) michiya |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== autoconf ====== | + | ====== autoconfをソースからインストール |
- | + | ||
- | ===== Source | + | |
必須ライブラリ | 必須ライブラリ | ||
- | * [[tools: | + | * [[tools:m4: |
< | < | ||
行 11: | 行 9: | ||
$ cd autoconf-2.69/ | $ cd autoconf-2.69/ | ||
$ mkdir build | $ mkdir build | ||
- | $ ../ | + | $ cd build |
+ | $ PATH=/ | ||
+ | | ||
$ make | $ make | ||
$ make install | $ make install | ||
</ | </ | ||
+ | |||
+ | ====== 環境変数 ====== | ||
+ | |||
+ | < | ||
+ | PATH=/ | ||
+ | </ | ||
+ | |||
+ | ====== スクリプト ====== | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | |||
+ | ############################################################# | ||
+ | inst_ver=2.69 | ||
+ | inst_target=/ | ||
+ | arch_file=" | ||
+ | target_web=" | ||
+ | working_dir=$(cd $(dirname $0); pwd)/ | ||
+ | m4_path=/ | ||
+ | ############################################################# | ||
+ | |||
+ | if [ -d ${inst_target} ]; | ||
+ | then | ||
+ | echo " | ||
+ | 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 " | ||
+ | echo "Scipt is aborted." | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | rm -rf ${arch_file} ${working_dir} | ||
+ | |||
+ | wget ${target_web} | ||
+ | if [ $? -ne 0 ]; | ||
+ | then | ||
+ | echo " | ||
+ | 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}: | ||
+ | make | ||
+ | make install | ||
+ | </ | ||
+ |