I have Erlang/OTP cloned into ~/local/otp
and I have my PATH
setup with ~/local/otp-install/bin
at the front, so I can quickly test out full installs locally.
You can change the INTERESTING_TARGETS
variable to point to whatever other flavors you're interested in building.
You may need to set ERL_TOP
to pwd
:
cd ~/local/otp
export ERL_TOP="$(pwd)"
First, build it using the "slow" script:
cd ~/local/otp
# this will run configure, boot, and release
./build-otp-slow.sh
After making changes to ERTS, stdlib, etc, you can quickly rebuild with the "fast" script (if you change configure
or any of the atom.tab
related codegen files, you will need to use the "slow" script again):
cd ~/local/otp
# this will only run the individual emulator builds
./build-otp-fast.sh
Finally: you can install it and use rebar3
from the installation path.
cd ~/local/otp
# this will install into ~/local/otp-install
./build-otp-install.sh