wayneeseguin/rvm — Issue #619: bundler installed to /usr/local/bin/ causes issues
Author: kule
Created: 2011-11-25 18:20:46+00:00
State: open

Initially I was having issues with bundler not being able to install gems because I had a ruby version <=1.8.7 (my rvmrc was set to 1.9.2-p290). Manually using gem install seems to work ok. However I'd then bundle install and it'd half-way through with Abort Trap Code: 6

Went through with mpapis on irc and managed to get it to install for 1.9.2 however there does seem to be an issue with bundle being installed to usr/local/bin

I've installed 1.9.2, 1.8.7, 1.8.6, then 1.9.3 (in that order) and I get:

```
which bundle
/usr/local/bin/bundle

head -n 1 $(which bundle)
#!/Users/luke/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
```

Doesn't matter which rvmrc project I'm in still get the above results.

Interestingly in a 1.8.7 project when I bundle install it fails on iconv but again it looks like it's using 1.9.3:

```
Installing iconv (0.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/luke/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
```