uokadaの見逃し三振は嫌いです

ここで述べられていることは私の個人的な意見に基づくものであり、私が所属する組織には一切の関係はありません。

IntelliJにErlang開発環境を整える

まず、brew からerlangをインストールする。ついでにelixirも。

$ brew install erlang
$ brew install elixir
% brew install elixir
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Installing dependencies for elixir: unixodbc, erlang
==> Installing elixir dependency: unixodbc
==> Downloading http://www.unixodbc.org/unixODBC-2.3.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/unixodbc/2.3.2 --enable-gui=no
==> make install
🍺  /usr/local/Cellar/unixodbc/2.3.2: 31 files, 1012K, built in 83 seconds
Error: You must `brew link autoconf libtool' before erlang can be installed


% brew link autoconf libtool
Linking /usr/local/Cellar/autoconf/2.69... 18 symlinks created
Linking /usr/local/Cellar/libtool/2.4.2... 17 symlinks created

% brew install erlang       
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/erlang-R16B03.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring erlang-R16B03.mavericks.bottle.tar.gz
==> Caveats
Man pages can be found in:
  /usr/local/opt/erlang/lib/erlang/man

Access them with `erl -man`, or add this directory to MANPATH.
==> Summary
🍺  /usr/local/Cellar/erlang/R16B03: 7534 files, 277M

ignatov/intellij-erlang

あとは、このプラグインをインストールするだけでいいみたい。Erlang専用のIDEもあるみたいだがプラグインと変わらないので今回は見送り。

zipを落としてきて Preferences -> plugins を選んで落としたzipをそのままインストール。

IDEを再起動すれば新しいプロジェクトを作るときにErlangを選択出来るようになる。

プログラミングErlang

プログラミングErlang