如何卸载或升级Erlang / OTP? [英] How to uninstall or upgrade Erlang/OTP?
问题描述
如何卸载 Erlang / OTP ,我使用 make install
从源代码创建。使用 ./ configure; make; make install;
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;
卸载的原因是我想从 Erlang R15B01 升级到 Erlang R15B03 。
The reason to uninstall is that I want to upgrade from Erlang R15B01 to Erlang R15B03.
现在我有:
# 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>
推荐答案
有一个选项--prefix =脚本路径configure,其中path是要安装应用程序的目录的路径。例如:
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
不要忘记为PATH环境变量添加适当的路径。
Do not forget to add appropriate path to PATH environment variable.
在以前的安装过程中,请使用此选项,然后使用默认路径(/ usr或/ usr / local),您可以按照相同的方式安装旧版本的旧版本 -
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.
这篇关于如何卸载或升级Erlang / OTP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!