How to uninstall or upgrade Erlang/OTP?

天涯浪子 提交于 2019-12-06 18:38:11

问题


How can I uninstall Erlang/OTP which I use make install to build from source earlier. The install is pretty simple by using ./configure;make;make install;

The reason to uninstall is that I want to upgrade from Erlang R15B01 to Erlang R15B03.

Now I have:

# erl --version
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.9.1  (abort with ^G)
1>

回答1:


There is an option --prefix=path of script configure, where path is a path to directory where you want to install an application. For instance:

./configure --prefix=/opt/erlang-R15B01

Do not forget to add appropriate path to PATH environment variable.

If you didn't use this option during previous installation then the default path was used (/usr or /usr/local) and you can just install new version above old one the same way -

./configure && make && make install.



回答2:


How to uninstall Erlang on Ubuntu:

sudo apt-get purge erlang*

Uninstall Erlang on Fedora:

sudo yum remove erlang*

If you installed erlang from source using the default home directory, you would need to rm -rf /usr/local/erlang/.

Additional cleanup might me required if you had manually copied libraries or executable to other folders, like */lib or */bin.




回答3:


If you using Erlang for development I would suggest looking into kerl VM manager. It allows you to have multiple VM "installed" with different configuration options and possibility of switching between them.




回答4:


As another alternative to kerl, we can also use erln8 to have multiple Erlang environment.

https://erln8.github.io/erln8/



来源:https://stackoverflow.com/questions/22396240/how-to-uninstall-or-upgrade-erlang-otp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!