Skip to content

Instantly share code, notes, and snippets.

@mccrory
Created April 18, 2012 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mccrory/2415596 to your computer and use it in GitHub Desktop.
Save mccrory/2415596 to your computer and use it in GitHub Desktop.
oot@ip-10-73-19-131:/tmp/bosh/release/template/instance# /var/vcap/bosh/bin/gem install chef --version 0.9.12
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
@mccrory
Copy link
Author

mccrory commented Apr 18, 2012

And the fix:

/usr/bin/apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev

@drnic
Copy link

drnic commented Apr 18, 2012

Which of these packages are new from prepare_instance.sh? What patch do we make to that script?

@mccrory
Copy link
Author

mccrory commented Apr 18, 2012 via email

@drnic
Copy link

drnic commented Apr 18, 2012

I don't understand why your scenario/example is different. For me, it all just works. prepare_instance.sh installs many of those packages itself (https://github.com/drnic/bosh/blob/master/release/template/instance/prepare_instance.sh#L18-24).

If we need all these packages, then they should go in the prepare_instance.sh script imo. I only install git-core manually so I can get the bosh repo.

@drnic
Copy link

drnic commented Apr 18, 2012

@mccrory
Copy link
Author

mccrory commented Apr 18, 2012 via email

@drnic
Copy link

drnic commented Apr 18, 2012 via email

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