...with GNU stow. Also, Xcode is assumed already being installed here.
Yes, there is a much smaller command line version of Xcode. And it is officially supported. But an error arose when I tried to execute, say, brew install python --framework
. Full version of Xcode has no such issue though.
Anyway:
$ brew install stow
$ mkdir -p /usr/local/stow
$ export STOW_DIR=/usr/local/stow
GNU sed is one of the few prerequisites. The system default sed fails ./otp_build autoconf
:
$ brew install gnu-sed --default-names
Onto erlang itself:
$ git clone git://github.com/erlang/otp.git
$ git checkout OTP_R15B01
$ ./otp_build autoconf
$ otp_version=$(git describe)
$ CFLAGS=-O0 ./configure --prefix=${STOW_DIR}/${otp_version} --enable-hipe --enable-smp-support --enable-threads --enable-kernel-poll --enable-darwin-64bit
$ make; make docs
$ make install install-docs
Enable newly install erlang:
$ cd /usr/local/stow && stow ${otp_version}
And now it's time to hack on some erlang!