Skip to content

Instantly share code, notes, and snippets.

@johncalistro
Last active October 7, 2015 13:07
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 johncalistro/3169135 to your computer and use it in GitHub Desktop.
Save johncalistro/3169135 to your computer and use it in GitHub Desktop.
Solution for segmentation fault on RVM with OSX 10.8
OSX 10.8 Mountain Lion
Xcode 4.4 (4F250) with command line installed
RVM curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
Ruby 193p194
Rails 3.2.6
Error:
/Users/home_dir/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault ruby 1.9.3p194 (2012-04-20 revision 35410)
This is what fixed the problem for me.
$ export PATH=/usr/bin:/bin:/usr/sbin:/sbin:$HOME/.rvm/bin # keep MacPorts out of PATH during compile
$ rvm remove 1.9.3
$ rvm pkg install iconv
$ rvm pkg install openssl
$ rvm install ruby-1.9.3-p194 --with-openssl-dir=~/.rvm/usr --with-iconv-dir=~/.rvm/usr --with-gcc=clang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment