LoginSignup
4
1

More than 5 years have passed since last update.

Elixirをcompileして使ってみる

Posted at

Elixirのバージョン切り替えをどうやろうか悩んだ時に
exenvとかをつかおうかと悩んだが、その前にElixirをちゃんとcompileして使ってみようと思ったので、やったやつの備忘録的に書きます。

環境

version

debian : 8.9

やってみた

まずは git clone する

git clone https://github.com/elixir-lang/elixir.git

次にcompile
今回はv1.6を使いたいので、branchを切り替えて使います。

cd elixir
git checkout -b v1.6 origin/v1.6
make compile

これだけ!

compileしたものは elixir/bin/ ディレクトリ配下にできますので、version確認

bin/elixir -v

Elixir 1.6.4 (compiled with OTP 20)

できた!
bin ディレクトリ中に mixiex もあります。

testする

compileしたものを test してみます

make test

version切り替え

versionを切り替えたいときは clean してから再度compileすればok

make clean

これでいつでもversionを切り替えられる。

4
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
4
1