ユーザ用ツール

サイト用ツール


tools:help2man:インストール:1.47.16

差分

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

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

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
tools:help2man:インストール:1.47.16 [2021/01/13 07:54]
michiya
tools:help2man:インストール:1.47.16 [2021/01/14 08:59] (現在)
michiya
行 17: 行 17:
  
 <code> <code>
-$ export PATH=${HELP2MAN_ROOT}/bin:${PATH} +$ export PATH=/opt/help2man/1.47.16/bin:${PATH} 
-$ export LD_LIBRARY_PATH=${HELP2MAN_ROOT}/lib:${LD_LIBRARY_PATH}+$ export LD_LIBRARY_PATH=/opt/help2man/1.47.16/lib:${LD_LIBRARY_PATH}
 </code> </code>
  
 +====== インストール ======
 +
 +<code>
 +#!/bin/bash
 +
 +#############################################################
 +inst_ver=1.47.16
 +inst_target=/opt/help2man/${inst_ver}
 +arch_file="help2man-"${inst_ver}".tar.xz"
 +target_web="https://ftp.gnu.org/gnu/help2man/"${arch_file}
 +working_dir=$(cd $(dirname $0); pwd)/help2man-${inst_ver}
 +#############################################################
 +
 +if [ -d ${inst_target} ];
 +then
 +    echo "${inst_target} is already exist"
 +    exit 0
 +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
 +../configure --prefix=${inst_target}
 +make
 +make install
 +</code>
tools/help2man/インストール/1.47.16.1610524493.txt.gz · 最終更新: 2021/01/13 07:54 by michiya