我想安裝ruby。 我的操作系統是centos5.5。 當我gem install bundle
這得到什麼不對'gem install bundle'出錯了
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand
我嘗試yum install zlib
,但它提示
Package zlib-1.2.3-4.el5.i386 already installed and latest version
找遍了這個錯誤,但我仍然解決不了這個問題。我發現/usr/local/rvm/src
有zlib-1.2.6
。
我嘗試到/usr/local/rvm/src/ruby-1.9.2-p318/ext/zlib
和編譯 ruby extconf.rb
但我得到這個infomations:
checking for deflateReset() in -ltrue... no checking for deflateReset() in -llibz... no checking for deflateReset() in -lzlib1... no checking for deflateReset() in -lzlib... no checking for deflateReset() in -lzdll... no
所以,我該怎麼辦?
謝謝。
試試這個'寶石安裝bundler' – shevchyk 2012-04-09 08:57:24