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

No resource, method, or local variable named `rbenv_root_path' #100

Open
0xdevalias opened this issue May 24, 2014 · 2 comments
Open

No resource, method, or local variable named `rbenv_root_path' #100

0xdevalias opened this issue May 24, 2014 · 2 comments

Comments

@0xdevalias
Copy link

I'm sure this is just me doing something silly, but i'm getting this error when I try to use the recipe as described in the README and I can't figure out why.

NameError
---------
No resource, method, or local variable named `rbenv_root_path' for `Chef::Recipe "default"'

My recipe includes

include_recipe "rbenv::default"
include_recipe "rbenv::ruby_build"

rbenv_ruby "1.9.3"

Any help would be hugely appreciated!!

@jcoleman
Copy link

You need to add depends 'rbenv' to your metadata.rb file rather than just using include_recipe "ruby_build::default". Otherwise in Chef 11 not all of the files get loading and that method isn't recognized.

Edit: see http://stackoverflow.com/questions/20361738/include-recipe-vs-vagrantfile-chef-add-recipe-whats-the-difference/20375077#20375077 for more details.

@0xdevalias
Copy link
Author

Cool, thanks for that :) Will definitely take a look when I get the time to work on it again!

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

No branches or pull requests

2 participants