LoginSignup
10
7

More than 5 years have passed since last update.

bisonをソースコードビルドする

Last updated at Posted at 2015-01-28

概要

これはなに?

目標

  • bison-3.0.4 の実行ファイルが使用可能になる

実行環境

依存パッケージ

  • なし

導入手順

tar.gz をダウンロードする

wget http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.gz -P /usr/local/share/downloaded/

tar.gz を解凍する

tar -zxvf /usr/local/share/downloaded/bison-3.0.4.tar.gz -C /usr/local/src/

configure を実行する

cd /usr/local/src/bison-3.0.4/

./configure --prefix=/usr/local/lib/bison-3.0.4

make を実行する

make

make install する

sudo make install

ディレクトリのシンボリックリンクを作成する

sudo ln -s /usr/local/lib/bison-3.0.4 /usr/local/bison

削除手順

導入時に生成したファイルを削除する

sudo rm -r /usr/local/share/downloaded/bison-3.0.4.tar.gz
sudo rm -r /usr/local/src/bison-3.0.4/
sudo rm -r usr/local/lib/bison-3.0.4/
sudo rm -r /usr/local/bison
10
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
7