Hi there ive been searching for a fix on stackexchange and google for a long time and without success, so i thought id give up and ask this question since it seems to have not been covered on other topics.
Im having the following message appear when i try to initiate a rails server (which did work before, i just dont know how i broke it)
Your Ruby version is 2.0.0, but your Gemfile specified 2.2.3
A bit of context: im on OSX, with rbenv
installed via homebrew
.
$ rbenv versions
system
* 2.2.3 (set by /Users/<user>/.rbenv/version)
ok, so rbenv
is installed and has the right version.
echo $PATH
/Users/<user>/.rbenv/shims:/Users/<user>/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin :
$PATH is there and i have the following on ~./bash_profile
export PATH="$HOME/.rbenv/bin:$PATH"
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
ok so whats the problem? you ask? because i have the following thrown back at me:
$ ruby -v
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
$ which ruby
/usr/bin/ruby
now, this last bit have me hope, it seems im using OSX's built in ruby and not the one from rbenv
so i did a gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.3
- RUBY VERSION: 2.0.0 (2015-12-16 patchlevel 648) [universal.x86_64-darwin15]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.0.0
- USER INSTALLATION DIRECTORY: /Users/<user>/.gem/ruby/2.0.0
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /Users/<user>/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Library/Ruby/Site
- GEM PATHS:
- /Library/Ruby/Gems/2.0.0
- /Users/bronze/.gem/ruby/2.0.0
- /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0
- SHELL PATH:
- /Users/<user>/.rbenv/bin
- /Users/<user>/.rbenv/shims
- /Users/<user>/.rbenv/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
i have found no paths i could take at this point. for me it seems all is installed but OSX doesnt see the shims
or whatever from rbenv
$ which -a ruby
/usr/bin/ruby
this should have showed the rbenv
installation, right?
any and all help is much appreciated at this time.
-cheers