LoginSignup
0
1

More than 5 years have passed since last update.

Windowsにrebarをインストールするだけの簡単なお仕事!

Last updated at Posted at 2015-06-08

目的: Windowsにrebarをインストールする。

実施環境:

OS: Windows8.1
Erlang: Eshell V6.4
rebar: 2.1.0-pre 17

目次:

1.概要
2.rebarをインストールするだけの簡単なお仕事

1. 概要

Erlangを使うに当たってrebarが使いたかった。
しかし、Windowsへインストールしている記事が見つからなかった。
仕方がないから自分で試してみました。

rebarの詳しいことは記事にして下さっている方がいますので、
そちらを参考にして下さい。
http://qiita.com/ohr486/items/b33cfcf0978ec51afc63

2. rebarをインストールするだけの簡単なお仕事

>cd 作業ディレクトリ
>git clone https://github.com/basho/rebar.git (github: https://github.com/basho/rebar)
>cd rebar
>bootstrap.bat
>rebar --version
rebar 2.1.0-pre 17 20150608_040953 git 2.1.0-pre-171-gcd55176

インストールディレクトリにある。
rebar.cmdへ環境変数を設定しておきましょう。

>cd 適当なディレクトリ
>rebar --version
rebar 2.1.0-pre 17 20150608_040953 git 2.1.0-pre-171-gcd55176

かなりざっくりですけど、サンプルを作成してみます。

>cd 作業ディレクトリ
>mkdir sample_app

>ls
sample_app

>cd sample_app

sample_app>ls

sample_app>rebar -c

sample_app>rebar create-app appid=sample
==> sample_app (create-app)
Writing src/sample.app.src
Writing src/sample_app.erl
Writing src/sample_sup.erl

sample_app>rebar compile
==> sample_app (compile)
Compiled src/sample_app.erl
Compiled src/sample_sup.erl

sample_app>ls
ebin  src

sample_app>ls src
sample.app.src  sample_app.erl  sample_sup.erl

sample_app>ls ebin
sample.app  sample_app.beam  sample_sup.beam

sample_app>rebar clean
==> sample_app (clean)

sample_app>ls
ebin  src

sample_app>ls ebin
なし

まとめ

結構簡単にインストールできました。
これでビルドやパッケージ管理が楽になります!

参考文献

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