Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ohai requires Ruby version >= 2.0.0. #1025

Open
boldandbusted opened this issue Jan 22, 2015 · 8 comments
Open

ohai requires Ruby version >= 2.0.0. #1025

boldandbusted opened this issue Jan 22, 2015 · 8 comments

Comments

@boldandbusted
Copy link

I forked your repo to add Debian 7.8 support. I merely changed references in the config replacing 7.7 with 7.8. Everything seems to go swimmingly until...

veewee vbox build 'debian-7-dot-8' --workdir=/dev/shm/vagrant --force

[..giant snip..]
Executing command: echo 'vagrant'|sudo -S bash './chef.sh'
Fetching: mixlib-config-2.1.0.gem (100%)
Fetching: mixlib-cli-1.5.0.gem (100%)
Fetching: mixlib-log-1.6.0.gem (100%)
Fetching: mixlib-authentication-1.3.0.gem (100%)
Fetching: mixlib-shellout-2.0.1.gem (100%)
Fetching: mime-types-1.25.1.gem (100%)
Fetching: systemu-2.6.4.gem (100%)
Fetching: ffi-1.9.6.gem (100%)
Building native extensions. This could take a while...
Fetching: libyajl2-1.2.0.gem (100%)
Building native extensions. This could take a while...
Fetching: ffi-yajl-1.3.1.gem (100%)
Building native extensions. This could take a while...
Fetching: net-dhcp-1.3.2.gem (100%)
Fetching: ipaddress-0.8.0.gem (100%)
Fetching: wmi-lite-1.0.0.gem (100%)
Fetching: rake-10.4.2.gem (100%)
Fetching: ohai-8.0.1.gem (100%)
ERROR: Error installing chef:
ohai requires Ruby version >= 2.0.0.
ERROR: exit code 1

If you need more info, please ask! :)

@boldandbusted
Copy link
Author

Oh, hrm, might this be a conflict with puppet's deps? Just a guess.

@mpapis
Copy link
Collaborator

mpapis commented Jan 22, 2015

can you gist it all?

@boldandbusted
Copy link
Author

@mpapis
Copy link
Collaborator

mpapis commented Jan 22, 2015

I would bet it has to do with https://github.com/jedi4ever/veewee/blob/master/templates/Debian-7.7.0-amd64-netboot/ruby.sh :

ohai requires Ruby version >= 2.0.0.

and as much I can find Debian 7 comes with ruby 1.8 and 1.9 you would need to:

  • find other way to install ruby 2+ or
  • install older chef
  • change chef installation method

@rubo77
Copy link

rubo77 commented Apr 12, 2015

You can install Ruby 2.0 via my script at stackoverflow.com/questions/16222738/-/29584352#29584352

I had the same problem, but it solved without installing ruby2. I don't know exactly how, but what I did was:

  • I enabled Virtualization in my BIOS settings (restart computer and press F2)

  • prepared the omnibus Plugin for vagrant:

    vagrant plugin install vagrant-omnibus --verbose
    
  • I installed the omnibus plugin for chef in my vagrant file:

    config.omnibus.chef_version = :latest
    

Now everything runs through fine, maybe it helps

@mpapis
Copy link
Collaborator

mpapis commented Apr 16, 2015

@rubo77 make sure to open a pull request with a fix ... if you did not do it yet ;)

@rubo77
Copy link

rubo77 commented Apr 17, 2015

@mpapis you can do it, I don't use veewee, just came by here with a similar problem in another project and shared my result with you

have fun!

@mpapis
Copy link
Collaborator

mpapis commented Apr 19, 2015

thanks, I'm only janitor here, anyone interested in playing with it and applying the fix in pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants