Skip to content

Instantly share code, notes, and snippets.

@guiferrpereira
Created January 8, 2013 00:20
Show Gist options
  • Save guiferrpereira/4479889 to your computer and use it in GitHub Desktop.
Save guiferrpereira/4479889 to your computer and use it in GitHub Desktop.
I'd start fresh with rvm:
sudo rvm implode
\curl -L https://get.rvm.io | bash -s stable
Make sure homebrew is installed:
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
Install libyaml, universally
brew install --universal libyaml
From [this thread](http://stackoverflow.com/questions/11954193/using-multiple-versions-of-libyaml-with-rvm "http://stackoverflow.com/questions/11954193/using-multiple-versions-of-libyaml-with-rvm"), I saw you can symlink the homebrew libyaml directory into rvm's to make it recognize that before installing a ruby version. According to the comments, though (from mpapis himself!) - if detection of libyaml changes, it may overwrite the installation. "rvm pkg install" will also go to that directory. For right now, however, it was the only way I could get it working without the "libyaml not installed" and psych errors.
ln -s /usr/local/Cellar/libyaml/0.1.4 ~/.rvm/usr
Now install ruby with a crazy amount of flags:
CFLAGS='-m32' CXXFLAGS='-m32' LDFLAGS='-m32' rvm install 1.9.3 -n i386 --with-arch=i386 --with-libyaml
Make sure you're not getting the 'psych' error:
gem list
Finally, hold your breath and cross your fingers:
gem install ruby-oci8
Hopefully this helps someone!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment