What can be considered in the following cases?
This is the result of hitting the command in the root directory of the rails app.
$rails
Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2
$ ruby-v
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
$ rbenv versions
system
* 2.2.2 (set by / Users / username / Documents / workspace / rails_root / .ruby-version )
$ rbenv versions --local
system
* 2.2.2 (set by / Users / username / Documents / workspace / rails_root / .ruby-version )
I am using zsh, but the contents of ~/.zprofile
are like this.
export PATH="$HOME/.rbenv/bin:$PATH"
event "$(rbenv init-)"
which bundle
runs
Returns /Users/username/.rbenv/shims/bundle
.
You can do bundle update
and bundle install
.
Thank you for your cooperation.
ruby-on-rails ruby
I am sorry if you have already checked.
Is there a possibility that bundleler is not installed in ruby 2.2.2 of rbenv?
which bundle
The result of running is
/usr/bin/bundle
If so, ruby 2.2.2 bundle is not installed, so
gem install bundleer
Install the bundle on the .
624 Uncaught (inpromise) Error on Electron: An object could not be cloned
585 PHP ssh2_scp_send fails to send files as intended
574 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
925 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.