论坛首页 编程语言技术论坛

Suse Linux 下安装 ruby on rails 的问题处理

浏览 3807 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2006-12-08  
When installing rubygems in Suse linux , I get:

/usr/local/lib/ruby/site_ruby<wbr></wbr>/1.8/rubygems/custom_require<wbr></wbr>.rb:21:in
`require__': No such file to load -- zlib
(LoadError)
       from /usr/local/lib/ruby/site_ruby<wbr></wbr>/1.8/rubygems/custom_require<wbr></wbr>.rb:21:in
`require'
       from /usr/local/lib/ruby/site_ruby<wbr></wbr>/1.8/rubygems/package.rb:9
       from /usr/local/lib/ruby/site_ruby<wbr></wbr>/1.8/rubygems/custom_require<wbr></wbr>.rb:21:in
`require__'
       from /usr/local/lib/ruby/site_ruby<wbr></wbr>/1.8/rubygems/custom_require<wbr></wbr>.rb:21:in
`require'
       from /usr/local/lib/ruby/site_ruby<wbr></wbr>/1.8/rubygems/builder.rb:1
       from /usr/local/lib/ruby/site_ruby<wbr></wbr>/1.8/rubygems/custom_require<wbr></wbr>.rb:21:in
`require__'
       from /usr/local/lib/ruby/site_ruby<wbr></wbr>/1.8/rubygems/custom_require<wbr></wbr>.rb:21:in
`require'
       from /usr/local/lib/ruby/site_ruby<wbr></wbr>/1.8/rubygems.rb:61:in `manage_gems'
        ... 7 levels...
       from setup.rb:887:in `exec_install'
       from setup.rb:705:in `invoke'
       from setup.rb:674:in `invoke'
       from setup.rb:1352

and follow that is how I fixed it:

rpm -e --nodeps ruby
tar -zxvf ruby-1.8.2.tar.gz
cd ruby-1.8.2
./configure --prefix /usr
make
su
make install

Installing zlib-devel package using Suse Yast management Center

tar -zxvf rubygems-xxxx.tar.gz
cd rubygems-xxxx
ruby ./setup.rb

Should work now
论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics