title: Rails Script Segmentation Fault with RVM
body: <p>I am getting a segmentation fault. Should <code>which ruby</code> return /usr/local/bin? </p>
  
  <pre><code>maletor$ rails generate mailer ContactMailer
      /Users/maletor/.rvm/gems/ruby-1.9.2-p0/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle: [BUG] **Segmentation fault**
      ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
  
  Abort trap
  
  maletor$ which rails
  /usr/bin/rails
  
  maletor$ gem env
  RubyGems Environment:
    - RUBYGEMS VERSION: 1.3.7
    - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [x86_64-darwin10.4.0]
    - INSTALLATION DIRECTORY: /Users/maletor/.rvm/gems/ruby-1.9.2-p0
    - RUBY EXECUTABLE: /Users/maletor/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
    - EXECUTABLE DIRECTORY: /Users/maletor/.rvm/gems/ruby-1.9.2-p0/bin
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-darwin-10
    - GEM PATHS:
       - /Users/maletor/.rvm/gems/ruby-1.9.2-p0
       - /Users/maletor/.rvm/gems/ruby-1.9.2-p0@global
    - GEM CONFIGURATION:
       - :update_sources =&gt; true
       - :verbose =&gt; false
       - :benchmark =&gt; false
       - :backtrace =&gt; false
       - :bulk_threshold =&gt; 1000
       - "gem" =&gt; "-n/usr/local/bin"
    - REMOTE SOURCES:
       - http://rubygems.org/
  
  maletor$ echo $PATH
  /Users/maletor/.rvm/gems/ruby-1.9.2-p0/bin:/Users/maletor/.rvm/gems/ruby-1.9.2-p0@global/bin:/Users/maletor/.rvm/rubies/ruby-1.9.2-p0/bin:/Users/maletor/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
  
  maletor$ which gem
  /Users/maletor/.rvm/rubies/ruby-1.9.2-p0/bin/gem
  
  maletor$ ls ~/.rvm/rubies/ruby-1.9.2-p0/bin/
  erb gem irb rake    rdoc    ri  ruby    testrb
  
  maletor$ rails -v
  Rails 3.0.0
  
  maletor$ which rails
  /usr/bin/rails
  </code></pre>