1

私は答えを読みましたgem fetch。この質問に対する答えは、自動的にインストールせずに、ruby-gemをダウンロードすることができます。しかし、私はいつもウィンドウズの宝石を手に入れるとは限りません。

を使用gem install gosu --remoteすると、WindowsバージョンがインストールされますSuccessfully installed gosu-0.7.15-x86-mswin32-60

gem fetch gosuを使用してダウンロードするDownloaded gosu-0.7.15と、Linuxバージョンであり、WindowsPCにインストールできません。

gem fetch gosu-0.7.15-x86-mswin32-60と同様の試みで特定の宝石を求めると、ERROR: Could not find gosu-0.7.15-x86-mswin32-60 in any repository

フェッチとインストールを使用するときにPCの正しいバージョンを取得する方法に関するアイデアはありますか?

4

1 に答える 1

4
$ gem fetch --help
Usage: gem fetch GEMNAME [GEMNAME ...] [options]

  Options:
    -v, --version VERSION            Specify version of gem to fetch
        --platform PLATFORM          Specify the platform of gem to fetch

  Local/Remote Options:
    -B, --bulk-threshold COUNT       Threshold for switching to bulk
                                     synchronization (default 1000)
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
        --source URL                 Use URL as the remote source for gems

  Common Options:
    -h, --help                       Get help on this command
    -V, --[no-]verbose               Set the verbose level of output
    -q, --quiet                      Silence commands
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging


  Arguments:
    GEMNAME       name of gem to download

  Summary:
    Download a gem and place it in the current directory

  Defaults:
    --version '>= 0'

あなたができるはずです

$ gem fetch gosu --platform x86-mswin32

または、ダウンロードページに移動します。

于 2009-12-02T15:37:16.780 に答える