30

背景:私はHTML、CSS、JSでうまく機能するデザイナーです。しかし、私の環境を設定することになると、私は不十分です。

最近、自宅のコンピューターを購入しました。プロジェクトで使用するミドルマンを設定したいと思います。私はすでにrvmとそのすべての要件をインストールしました。私はruby-2.0.0-p0を使用しています。これは、私が理解していることから、最新の安定したリリースです。

Middlemanやその他の宝石をインストールしようとしても、何も起こりません。カーソルが次の行に移動します。スクリーンショット

いくつかのガイダンス、またはトラブルシューティングの手順をいただければ幸いです。

ありがとうございました、

リカルド

4

4 に答える 4

38

If gem install is hanging, it's most likely a network, proxy, or firewall issue on your end.

You can investigate by issuing your gem install command in verbose mode with -V. It'll show you what URLs it's communicating with to download the gem, and you can hopefully see what it's doing and where it's hanging:

> gem install -V middleman
HEAD https://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
HEAD https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET https://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
...

You can also check status.rubygems.org where they'll alert you in case the gem/spec servers do have problems (see screenshot below):

RubyGem.org status screenshot

于 2014-03-27T18:41:29.303 に答える
8

Found my problem! I was runnning ruby 1.8.7. I needed to update my .zshrc file to use 1.9.3 as default.

What I did was put this on my .zshrc file:

rvm use 1.9.3 --default
于 2013-03-11T16:28:03.907 に答える
2
于 2013-03-06T05:59:41.590 に答える
0

In case this helps someone, my terminal was hanging on

gem update --system

and changing it to

sudo gem update --system

fixed it.

于 2021-08-25T19:02:42.040 に答える