ruby - Error installing gems: cannot load such file -- zlib -


i'm trying install bundler gem on mac os yosmite

~/code/hello gem install bundler error:  loading command: install (loaderror)     cannot load such file -- zlib error:  while executing gem ... (nomethoderror)     undefined method `invoke_with_build_args' nil:nilclass 

i've done following:

  • install zlib through homebrew
  • upgrade rubygems
  • reinstall rvm , ruby 2.2.2
  • switched rbenv , ruby 2.2.2

this doing head in. ruby 2.2.1 works fine 2.2.2 causes issue whenever try install gem.

anyone got ideas?

the following worked me:

brew install homebrew/dupes/zlib rvm reinstall 2.2.2 --with-zlib-dir=/usr/local/cellar/zlib/1.2.8 

hope helps else runs it.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -