When I use the command bundle exec newvm.rb
, I get the message that
bundler: command not found: newvm.rb
Install missing gem executables with `bundle install`
I know there are several people having this problem but with all the solutions that worked for other people, non have worked for me.
I have done the following:
gem bundler install
bundle install
which gem => /home/$user/.rbenv/shims/gem
which bundle => /home/$user/.rbenv/shims/gem
rbenv rehash
(after bundler install).bashrc
export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)"But im still having the problem that bundler: command not found. And i cant get any further, help!
It's just a ruby script, ruby newvm.rb
should be enough.
If you want to run it under bundle context, then do:
bundle exec ruby newvm.rb