Rubyzip requires Ruby version >= 1.9.2 when setting up dev environment

Hi guys,

I'm trying to setup a Foreman dev/test environment on a CentOS 6.5 VM per
Foreman :: Contribute. I'm
doing the following:

cd /usr/local/
git clone https://github.com/snobear/foreman.git foreman
cd foreman
git remote add upstream https://github.com/theforeman/foreman.git
git fetch upstream
cp config/settings.yaml.example config/settings.yaml
bundle install

Which results in:

Gem::InstallError: rubyzip requires Ruby version >= 1.9.2.
An error occurred while installing rubyzip (1.1.0), and Bundler cannot
continue.
Make sure that gem install rubyzip -v '1.1.0' succeeds before bundling.

with the --verbose flag:

Gem::InstallError: rubyzip requires Ruby version >= 1.9.2.
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:388:in
ensure_required_ruby_version_met' /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:156:ininstall'
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/source/rubygems.rb:95:in
install' /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/rubygems_integration.rb:118:inpreserve_paths'
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/source/rubygems.rb:94:in
install' /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:111:ininstall_gem_from_spec'
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/rubygems_integration.rb:150:in
with_build_args' /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:110:ininstall_gem_from_spec'
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:265:in
install_sequentially' (__FORWARDABLE__):3:ineach'
(FORWARDABLE):3:in __send__' (__FORWARDABLE__):3:ineach'
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:264:in
install_sequentially' /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:97:inrun'
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:15:in
install' /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/cli.rb:255:ininstall'
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/vendor/thor/command.rb:27:in
__send__' /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/vendor/thor/command.rb:27:inrun'
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/vendor/thor/invocation.rb:121:in
invoke_command' /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/vendor/thor.rb:363:indispatch'
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/vendor/thor/base.rb:440:in
start' /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/cli.rb:10:instart'
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/bin/bundle:20
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/friendly_errors.rb:5:in
with_friendly_errors' /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/bin/bundle:20 /usr/bin/bundle:19:inload'
/usr/bin/bundle:19
An error occurred while installing rubyzip (1.1.0), and Bundler cannot
continue.
Make sure that gem install rubyzip -v '1.1.0' succeeds before bundling.

Perhaps 1.8.7 is not supported in the latest code (aka develop branch)?
Thanks,
Jason

Turns out my develop branch had diverged some. I must not have created a
new branch last time I worked on it. Anyway, I was able to reset my
develop branch with:

git reset --hard upstream/develop
git push origin -f develop

ยทยทยท On Wednesday, January 22, 2014 2:19:51 PM UTC-5, Jason Ashby wrote: > > Hi guys, > > I'm trying to setup a Foreman dev/test environment on a CentOS 6.5 VM per > http://theforeman.org/contribute.html#Setupdevelopmentenvironment. I'm > doing the following: > > > cd /usr/local/ > git clone https://github.com/snobear/foreman.git foreman > cd foreman > git remote add upstream https://github.com/theforeman/foreman.git > git fetch upstream > cp config/settings.yaml.example config/settings.yaml > bundle install > > Which results in: > > > Gem::InstallError: rubyzip requires Ruby version >= 1.9.2. > An error occurred while installing rubyzip (1.1.0), and Bundler cannot > continue. > Make sure that `gem install rubyzip -v '1.1.0'` succeeds before bundling. > > > > with the --verbose flag: > > Gem::InstallError: rubyzip requires Ruby version >= 1.9.2. > /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:388:in > `ensure_required_ruby_version_met' > /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:156:in `install' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/source/rubygems.rb:95:in > `install' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/rubygems_integration.rb:118:in > `preserve_paths' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/source/rubygems.rb:94:in > `install' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:111:in > `install_gem_from_spec' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/rubygems_integration.rb:150:in > `with_build_args' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:110:in > `install_gem_from_spec' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:265:in > `install_sequentially' > (__FORWARDABLE__):3:in `each' > (__FORWARDABLE__):3:in `__send__' > (__FORWARDABLE__):3:in `each' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:264:in > `install_sequentially' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:97:in > `run' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/installer.rb:15:in > `install' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/cli.rb:255:in > `install' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/vendor/thor/command.rb:27:in > `__send__' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/vendor/thor/command.rb:27:in > `run' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/vendor/thor/invocation.rb:121:in > `invoke_command' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/vendor/thor.rb:363:in > `dispatch' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/vendor/thor/base.rb:440:in > `start' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/cli.rb:10:in `start' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/bin/bundle:20 > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/friendly_errors.rb:5:in > `with_friendly_errors' > /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/bin/bundle:20 > /usr/bin/bundle:19:in `load' > /usr/bin/bundle:19 > An error occurred while installing rubyzip (1.1.0), and Bundler cannot > continue. > Make sure that `gem install rubyzip -v '1.1.0'` succeeds before bundling. > > > Perhaps 1.8.7 is not supported in the latest code (aka develop branch)? > Thanks, > Jason > >