How to remove erlang r16b from mac os x

I have R16B on OS X (Mountain Lion) and you want to remove it in order to replace it with a Homebrew version. Does anyone know how to do this?

0
source share
1 answer

It depends on how you installed it.

I suppose you installed it from the source by doing configure && make && make install. If so, I would suggest assembling and installing it again, now in a special directory. Then, given this list of installed files, delete it manually.

So something like this:

ERLTMPDIR=/tmp/myerlang
./configure && make && make DESTDIR=$ERLTMPDIR install
files=`find $ERLTMPDIR -type f`
dirs=`find $ERLTMPDIR -type d`

Given that the list of installed files and dirs, you can carefully remove all the files that were installed on your system.

:

real_files=`find $ERLTMPDIR -type f | sed 's#$ERLTMPDIR#/usr/local#'`

( /usr/local - , erlang)

, , erlang init.d.

+1

Source: https://habr.com/ru/post/1773432/


All Articles