fedora执行“gem install bundler”

时间:2011-11-29 10:17:37

标签: ruby

我想使用octopress。所以我在这个网站上查看“如何”   http://octopress.org/docs/setup/   一切都成功,直到在bash-shell中输入“gem install bundler”   输出如下:

[root@litian octopress]# gem install bundler
ERROR:  Loading command: install (LoadError)
    no such file to load -- zlib
ERROR:  While executing gem ... (NameError)
    uninitialized constant Gem::Commands::InstallCommand

我在网上搜索,发现可能是zlib1g和zlib1g-dev很短 但是当我使用时 yum搜索zlib1g,结果不匹配

我也找到了这个 Installing Rails Path on Ubuntu with RVM 所以 我输入

rvm pkg install zlib

输出

Fetching zlib-1.2.5.tar.gz to /usr/local/rvm/archives
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:05 --:--:--     0curl: (7) couldn't connect to host
ERROR: There was an error, please check /usr/local/rvm/log//*.log. Next we'll try to fetch via http.
Trying http:// URL instead.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:46 --:--:--     0^CERROR: There was an error, please check /usr/local/rvm/log//*.log

我现在不知道该怎么做。

1 个答案:

答案 0 :(得分:4)

从像rvm remove 1.9.3这样的rvm中移除当前的ruby。安装zlib sudo yum install zlib-devel并重新安装ruby,如rvm install 1.9.3,然后gem in bundler