Skip to content

Instantly share code, notes, and snippets.

@thomasritz
Created August 27, 2012 14:49
Show Gist options
  • Save thomasritz/3489173 to your computer and use it in GitHub Desktop.
Save thomasritz/3489173 to your computer and use it in GitHub Desktop.
Entwicklungsumgebung für Ruby 1.8.7 auf Mountain Lion
Sehr hilfreiche Anleitung fürs Installieren einer Entwicklungsumgebung auf Mountain Lion.
http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-guide-to-riding-a-mountain-lion
- Xcode
- Xcode Command Line Tools
- Homebrew GCC
- Mysql chown
- X11 Quartz
brew uninstall imagemagick
brew install imagemagick
Rbenv-Ruby weggeschmissen und dann neu installiert:
export CPPFLAGS=-I/opt/X11/include
rbenv install 1.8.7-p370
gem install bundler
# libv8 workaround https://github.com/cowboyd/libv8/issues/46
cd ~/.rbenv/versions/1.8.7-p370/lib/ruby/gems/1.8/gems/libv8-3.3.10.4/lib/libv8/v8
RUBYOPT=-rrubygems gem install therubyracer
cd $myproject
Beim Neuinstallieren von nokogiri hat folgendes geholfen:
brew install libxml2
brew install libxslt
bundle config build.nokogiri --with-xml2-include=/usr/local/Cellar/libxml2/2.8.0/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.8.0/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26/
bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment