安裝gem install bundler的時候提示報錯
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
根據提示是缺少了zlib庫
然後安裝yum install zlib*
再次運行gem install bundler 還是報錯
原來ruby有自身提供的zlib包
進入ruby目錄
然後在
cd ext/zlib
ruby ./extconf.rb
make
make install
再次運行gem install bundler
ok