erlang

How to uninstall or upgrade Erlang/OTP?


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>

Solution

  • 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.