====== automake ====== ===== 依存ライブラリ ===== * [[tools:autoconf:インストール:インストール|autoconf]] ===== 手順 ===== $ wget https://ftp.gnu.org/gnu/automake/automake-1.16.3.tar.gz $ tar xvf automake-1.16.3.tar.gz $ cd automake-1.16.3/ $ mkdir build $ cd build $ PATH=/opt/autoconf/2.69/bin:${PATH} \ ../configure --prefix=/opt/automake/1.16.3 $ make $ make install ===== 環境変数 ===== $ export PATH=/opt/automake/1.16.3/bin:${PATH} ===== スクリプト ===== #!/bin/bash ############################################################# inst_ver=1.16.3 inst_target=/opt/automake/${inst_ver} arch_file="automake-"${inst_ver}".tar.gz" target_web="https://ftp.gnu.org/gnu/automake/"${arch_file} working_dir=$(cd $(dirname $0); pwd)/make-${inst_ver} autoconf_path=/opt/autoconf/2.69/bin ############################################################# if [ -d ${inst_target} ]; then echo "${inst_target} is already exist" exit 0 fi if [ ! -d ${autoconf_path} ]; then echo "autoconf 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=${autoconf_path}:${PATH} ../configure --prefix=${inst_target} make make install