Skip to content

Instantly share code, notes, and snippets.

@kpumuk
Created November 17, 2013 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kpumuk/7518207 to your computer and use it in GitHub Desktop.
Save kpumuk/7518207 to your computer and use it in GitHub Desktop.
Compiling Ruby Enterprise Edition (ree) on Maverics with Homebrew
1. Run "rvm install ree", it failes
2. Run "cd ~/.rvm/src/ree-1.8.7-2012.02"
3. Make sure you have necessary libs installed: "brew install libyaml readline libksba openssl098"
3. Run this:
env CC=/usr/local/bin/gcc-4.2 CPP=/usr/local/bin/cpp-4.2 CXX=/usr/local/bin/g++-4.2 CFLAGS="-I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl098/include -I/opt/X11/include -I$(xcrun --show-sdk-path)/usr/include" LDFLAGS="-L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl098/lib -L$(xcrun --show-sdk-path)/usr/lib" CPPFLAGS="-I/opt/X11/include -I$(xcrun --show-sdk-path)/usr/include" ./installer -a /Users/kpumuk/.rvm/rubies/ree-1.8.7-2012.02 --no-tcmalloc --no-dev-docs --dont-install-useful-gems -c --without-tcl -c --without-tk -c --enable-shared -c --with-readline-dir=/usr/local/opt/readline
Should compile without problems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment