ლ(ಠ益ಠლ)

Gem Install Bundler, Zlib Dependency

I recently deployed Octopress on a new cloud server. For the most part, the Octopress documentation was accurate, with no major hiccups; however, the vanilla Debian 7.0 base install is missing a couple packages to clear a zlib error you may come across. Fine with me, as I prefer a lean install base anyways.

During the Octopress install you may come across this:

1
2
3
4
5
$ gem install bundler
ERROR:  Loading command: install (LoadError)
    no such file to load -- zlib
ERROR:  While executing gem ... (NameError)
    uninitialized constant Gem::Commands::InstallCommand

We need to install the packages build-essential and zlib1g-dev– build-essential will satisfy a GCC dependency which also surfaced.

1
$ sudo apt-get install build-essential zlib1g-dev

Re-run rbenv:

1
2
3
$ rbenv install 1.9.3-p
$ rbenv local 1.9.3-p0
$ rbenv rehash

Now try:

1
$ gem install bundler

That should do it.

Comments