Erlang uses wxWidgets, a cross platform GUI library for it’s GUI tools. This build dependency was hard to get working pre-17, especially for 64-bit Erlang. However, 17.0 brings double rainbows and care bears for everyone that reads this HOWTO. So Enjoy!
Set correct Xcode path for compilation
As far as I know you need have Xcode install to compile Erlang from source. You can download Xcode via the Mac App Store
If you have multiple versions of Xcode installed (beta’s for example), make sure the Command Line Tools are installed and are pointing to the correct Xcode version.
Initiating an install of the Xcode Command Line Tools:
And verify that the CL-tools point to the correct Xcode install
Install wxWidgets
wxWidgets is a Cross Platform GUI library that’s used by Erlang for applications like Observer.
Execute this line and get some coffee, walk the dog, take out the trash and/or play with your kids. Compilation takes a while.
Check that you got the correct wx-config
Install kerl
Kerl is a utility that helps you build and manage multiple instances of Erlang/OTP.
Create
~/.kerlrc
. I use $ vim ~/.kerlrc
.
Add these lines:
Build & Install Erlang with kerl
For a 32-bit Erlang prefix
kerl build
with CPPFLAGS
:
Install:
Activate:
And bliss out on your new wx-enabled Erlang:
댓글 없음:
댓글 쓰기