<jonkel>
Hi guys. I'm trying to run bundle install, but it gives me this error: "Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0". The weird thing is that "ruby -v" gives me "ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]" and "which ruby" gives me "/Users/jonkel/.rubies/ruby-2.1.0/bin/ruby"... I'm using chruby to manage ruby versions. Does anyone have an idea what's going on?
braidn has quit [Excess Flood]
<tmoore>
kfpratt: pretty sure that's a new feature that hasn't been released yet
<kfpratt>
tmoore: yeah, it looks like it, I've forked the repo and started to use it, it was exactly what I was looking for.
<tmoore>
cool :-)
<tmoore>
jonkel: that usually means that bundler has been hardcoded to run with a specific Ruby version
<tmoore>
jonkel: what does 'head -n1 $(which bundle)' print?
g3funk has joined #bundler
<tmoore>
jonkel: most likely (if you're on OSX Mavericks) Bundler was originally installed under the system ruby (which is 2.0.0) and is on your path
<tmoore>
jonkel: re-running 'gem install bundler' after selecting the ruby you want with chruby (or whatever you use) should fix it
<tmoore>
jonkel: and you might want to uninstall it from your system Ruby, to avoid confusion
Radar has joined #bundler
<jonkel>
@tmoore: thanks for your reply! I think bundler is working fine now. But now "rails s" gives me the same error "Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0". I know this isn't the right channel, but maybe you have a quick thought on this?
Radar is now known as Guest20623
Guest20623 is now known as Radar
<tmoore>
Probably the same thing.
<tmoore>
'rails' is picking up a command in /usr/bin or /usr/local/bin instead of the gem directory for the Ruby you are using
<tmoore>
Out of curiosity, what did you do to fix Bundler?
<jonkel>
Well, I tried uninstalling 1.7 and installing 1.6 instead - thought it might be a version-thing. And it worked. But that's probably just because at had changed ruby version in the meantime :)
<jonkel>
Going back to v1.7 turned out to work fine.
havenwood has joined #bundler
<tmoore>
yep :-)
<jonkel>
Thanks for your help! :)
<tmoore>
no worries
havenwood has quit [Remote host closed the connection]
havenwood has joined #bundler
havenwood has quit [Ping timeout: 264 seconds]
jonkel has left #bundler [#bundler]
kfpratt has quit [Remote host closed the connection]
havenwood has joined #bundler
havenwood has quit [Ping timeout: 264 seconds]
havenwood has joined #bundler
tbuehlmann has joined #bundler
havenwood has quit [Ping timeout: 264 seconds]
havenwood has joined #bundler
havenwood has quit [Remote host closed the connection]
havenwood has joined #bundler
havenwood has quit [Remote host closed the connection]