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

Extra cookbook dependencies : build-essentials and xml #1

Open
dman-coders opened this issue Feb 13, 2013 · 2 comments
Open

Extra cookbook dependencies : build-essentials and xml #1

dman-coders opened this issue Feb 13, 2013 · 2 comments

Comments

@dman-coders
Copy link

On a clean system (desktop that had never had ruby, chef or vagrant installed before, but did have virtualbox)
I was able to get a box up, but most of the things it was supposed to install never got up, due to the error
"FATAL: Chef::Exceptions::CookbookNotFound: Cookbook build-essential not found. If you're loading build-essential from another cookbook, make sure you configure the dependency in your metadata"

.. after learning a LOT about the internals of what vagrant and chef was really doing, I was able to go into the 'cookbooks' directory and
git clone https://github.com/opscode-cookbooks/build-essential.git
git clone https://github.com/opscode-cookbooks/xml.git
then run
vagrant provision
and get a lot further than last time.
... Right to the end in fact!

I believe these two libraries should be added as submodules in the cookbooks directory.

@corruptmem
Copy link
Owner

Hmm, interesting. When I made this, I tested it on a relatively clean installation of OS X and it ran fine, so maybe something has changed in the mean time. May I ask what OS you're running? Thanks

@dman-coders
Copy link
Author

OSX Lion.
It seems that two of the other (current) cookbooks call those in. that may have been a recent change on their part.
I dunno if Chef is magically aware of other 'standard' cookbooks that may be elsewhere on your system, but my machine certifiably had never head of them before.

See https://github.com/opscode-cookbooks/mysql/blob/master/metadata.rb - requires build-essentials
While https://github.com/opscode-cookbooks/php/blob/master/metadata.rb - requires build-essential and xml

BTW ... I've taken your code and converted it fully to a silverstripe build-on-the-server recipe last night. I can now do without the provision.sh altogether and get it to pull the current working tarball onto the target machine. Parameterized and templated the db config file as well. Meaning this repo no longer contains all of silverstripe etc.
I'm working on adding a composer-based checkout as an alternate method also. Just as a learning experience, considering I'd never touched ruby, silverstripe, chef or things before. :-)

I'l github it as a branch sometime soon I guess.

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