I'm attemping to clone and install a Ruby application from github. I have it cloned, and am trying to run the "bundle install" command, but it failed the first time because of an issue with Rake. I installed it manually using "gem install rake -v '10.1.1'". That command was sucessful, but, when I tried to run "bundle install" again, it failed with the same error.
The command line is copied below. I'm just starting out with Ruby. I have tried installing several applications and given up because of this same failure, actually, but just gave up figuring it wasn't my day.
I will state I am on a shared host, and apparently do not have sudo access as far as I can tell — is this the issue I am having and is there a way around it? I'm running these commands through SSH via Mac OS x Terminal on 10.9.2.
**SSH USERNAME*** [~]# git clone git@github.com:agoragames/bracket_tree.git
Cloning into 'bracket_tree'...
Enter passphrase for key '/home3/**username**/.ssh/id_rsa':
remote: Reusing existing pack: 305, done.
remote: Total 305 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (305/305), 63.34 KiB, done.
Resolving deltas: 100% (145/145), done.
**SSH USERNAME*** [~]# cd bracket_tree
**SSH USERNAME*** [~/bracket_tree]# bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
sudo: unable to stat /etc/sudoers: No such file or directory
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
Gem::Exception: Cannot load gem at [/usr/lib64/ruby/gems/1.9.3/cache/rake-10.1.1.gem] in /home3/**username**/bracket_tree
An error occurred while installing rake (10.1.1), and Bundler cannot continue.
Make sure that `gem install rake -v '10.1.1'` succeeds before bundling.
**SSH USERNAME*** [~/bracket_tree]# gem install rake -v '10.1.1'
Successfully installed rake-10.1.1
1 gem installed
Installing ri documentation for rake-10.1.1...
Installing RDoc documentation for rake-10.1.1...
**SSH USERNAME*** [~/bracket_tree]# bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
sudo: unable to stat /etc/sudoers: No such file or directory
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
Gem::Exception: Cannot load gem at [/usr/lib64/ruby/gems/1.9.3/cache/rake-10.1.1.gem] in /home3/**username**/bracket_tree
An error occurred while installing rake (10.1.1), and Bundler cannot continue.
Make sure that `gem install rake -v '10.1.1'` succeeds before bundling.
**SSH USERNAME*** [~/bracket_tree]#