Installing more than one version of Erlang/OTP on

2019-04-10 19:49发布

Is this possible to have different versions of Erlang/OTP installed simultaneously on the same platform?

标签: erlang
6条回答
forever°为你锁心
2楼-- · 2019-04-10 20:02

I use Kerl to install Erlang on my machines. Quite easy to use, and allows to have several Erlang systems installed on same machine. You can then easily choose the one you want to use.

查看更多
趁早两清
3楼-- · 2019-04-10 20:04

I believe this blog post could be very useful:

How to manage multiple Erlang installations

查看更多
我想做一个坏孩纸
4楼-- · 2019-04-10 20:04

Consider using kerl. It allows you to work with several Erlang installations https://github.com/kerl/kerl

查看更多
霸刀☆藐视天下
5楼-- · 2019-04-10 20:07

It is no only possible, but also very frequent. On my machine I have one version that I installed for development (R13B03) it is the default version when I launch erl. A second copy of the same version associated with nitrogen. this copy is used when I start my nitrogen website. The version will not change when I will use the R16B.. for development A partial older version which came with the installation of Wings3D.

查看更多
爷、活的狠高调
6楼-- · 2019-04-10 20:07

On a Mac, Macport helps switching, even between versions it covers and newer ones.

E.g. with Erlang 17 installed directly from Erlang Solutions, you could switch back to RB1603 (open a new terminal window afterwards):

sudo port activate erlang @R16B03-1_0+hipe+ssl

Switch back to Erlang 17 by _de_activating the Macports install (and open a new terminal window afterwards):

sudo port deactivate erlang @R16B03-1_0+hipe+ssl

List all versions you have installed with:

port installed erlang
查看更多
Deceive 欺骗
7楼-- · 2019-04-10 20:12

Yes, I usually install different versions in my home directory. I build them from source:

./configure --prefix=$HOME/r15b01
make && make install

Then I can choose a version to use with PATH=$HOME/r15b01/bin:$PATH, and compile and run things as usual.

查看更多
登录 后发表回答