LoginSignup
0
1

More than 3 years have passed since last update.

mercurialをソースからビルドする

Posted at

Mercurialをインストールしないといかんなぁという状況になった。

諸事情でroot使ったインストールしたくないのでソースからビルドすることを試みる。

OSはCentOS7

まずは、Mercurialのソースを探す。

↓にあるらしい。

私は$HOME/localにソース群をインストールするようにしているので下記のようにしてソースをダウンロード。

cd $HOME/local/src
wget https://www.mercurial-scm.org/release/mercurial-5.4.2.tar.gz
tar xvzf mercurial-5.4.2.tar.gz

Makefileとか用意されてるだろうから確認

docutilsが必要らしいがまだインストールしていなかったので入れておく

pip install docutils

環境変数上書きしてmakeしろって書いてあるようなのでそうする。

cd $HOME/local/src/mercurial-5.4.2
make PREFIX=$HOME/local install
0
1
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
0
1