rbenv: ruby: command not found
The complaint you get comes from rbenv. The fact that it's complaining shows that rbenv is set up and working.
Figure out what version of Ruby is needed to run the project. Either the project comes with a .ruby-version file in the root, or someone on the project will know and recommend that version to use.
If the version is not specified in a .ruby-version file, create the .ruby-version file in the project directory.
type
ruby -v
while in that directory. Is it OK? Then you have the version of Ruby installed that matches what your .ruby-version is asking for.If the last command was not OK, then type
rbenv install
.
Now that Ruby is installed, you need to run your program. I'm assuming it comes with a Rakefile.
install the bundler tool:
gem install bundler
.install the dependancies of the project:
bundle install
run your project using the exact versions of libraries it specifies:
bundle exec rails server
Chef + rbenv: rbenv: no such command 'install' despite ruby-build being installed
Try setting $HOME
in shell environment:
environment({
"PATH" => "#{node['rbenv']['bin']}:#{node['rbenv']['root']}/shims:#{ENV['PATH']}",
"HOME" => node["user"]["home"],
})
rbenv: bundler: command not found
I fixed it by running the command gem install bundler
in the root directory of the rails app.
Related Topics
What Is Replace Conditional with Polymorphism Refactoring? How Is It Implemented in Ruby
How to Export Environment Variable Permanently Using Ruby
How to Set Up a Sinatra App Under Apache with Passenger
Automatic Code Quality Tool for Ruby
Where to Place/Access Config File in Gem
Difference Between an It Block and a Specify Block in Rspec
How to Suppress the Output of Return Value in Irb/Rails Console
Difference Between Map and Each
Seeding File Uploads with Carrierwave, Rails 3
Troubleshooting Ssl Certificates, Ruby, MAC Os X Yosemite
Best Practice to Mark Deprecated Code in Ruby
Mongodb with Mongoid in Rails - Geospatial Indexing
Imagemagick 7 with Rmagick 2.16 on MACos Sierra Can't Find Magickwand.H
How to Change Hash Keys from 'Symbol's to 'String'S