内容へ移動
Penguin's Coffee Break
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
tools:gnu_indent:インストール:2.2.12
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== GNU indent ====== ===== 依存ライブラリ ===== * [[tools:texinfo:インストール:インストール|Texinfo]] ===== 手順 ===== <code> $ wget https://ftp.gnu.org/gnu/indent/indent-2.2.12.tar.gz $ tar xvf indent-2.2.12.tar.gz $ cd indent-2.2.12/ $ ./configure --prefix=/opt/indent/2.2.12 $ PATH=/opt/texinfo/6.7/bin:${PATH} \ make $ make install </code> ===== 環境変数 ===== <code> $ export PATH=/opt/indent/2.2.12/bin:${PATH} $ export LD_LIBRARY_PATH=/opt/indent/2.2.12/lib:${LD_LIBRARY_PATH} </code> ===== スクリプト ===== <code> #!/bin/bash ############################################################# inst_ver=2.2.12 inst_target=/opt/indent/${inst_ver} arch_file="indent-"${inst_ver}".tar.gz" target_web="https://ftp.gnu.org/gnu/indent/"${arch_file} working_dir=$(cd $(dirname $0); pwd)/indent-${inst_ver} texinfo_path=/opt/texinfo/6.7/bin ############################################################# if [ -d ${inst_target} ]; then echo "${inst_target} is already exist" exit 0 fi if [ ! -d ${texinfo_path} ]; then echo "texinfo 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} ./configure --prefix=${inst_target} PATH=${texinfo_path}:${PATH} make make install </code>
tools/gnu_indent/インストール/2.2.12.txt
· 最終更新: 2021/01/14 07:26 by
michiya
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ