Skip to content

Instantly share code, notes, and snippets.

@y-temp4
Created November 3, 2016 04:16
Show Gist options
  • Save y-temp4/7985c3cd3b364479816d013d97b1beac to your computer and use it in GitHub Desktop.
Save y-temp4/7985c3cd3b364479816d013d97b1beac to your computer and use it in GitHub Desktop.
Elixirを使うためにanyenv経由でOSXにexenvをインストールした ref: http://qiita.com/y-temp4/items/41e5c9422ebffc7e909e
$ anyenv install erlenv
$ exec $SHELL -l
$ brew install unixodbc wxmac fop
$ wget http://www.erlang.org/download/otp_src_19.1.tar.gz
$ tar zxf otp_src_19.1.tar.gz
$ cd otp_src_19.1
$ ./configure --prefix=$HOME/.anyenv/envs/erlenv/releases/19.1 --enable-dynamic-ssl-lib --with-ssl=/usr/local/opt/openssl
$ make -j 4
$ make install
$ erlenv global 19.1
$ erlenv rehash
$ exec $SHELL -l
$ cd ..
$ rm -rf otp_src_19.1 otp_src_19.1.tar.gz
$ erl
Erlang/OTP 19 [erts-8.1] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.1 (abort with ^G)
1> crypto:start().
ok
2>
$ erl
Erlang/OTP 19 [erts-8.1] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.1 (abort with ^G)
1> crypto:start().
** exception error: undefined function crypto:start/0
2>
$ anyenv install exenv
$ exenv install 1.3.4
$ exenv global 1.3.4
$ exec $SHELL -l
$ elixir -v
Erlang/OTP 19 [erts-8.1] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Elixir 1.3.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment