プラットフロム固有のRuby Gemをインストールせずにダウンロードすることは可能ですか?

StackOverflow https://stackoverflow.com/questions/1833154

  •  11-09-2019
  •  | 
  •  

質問

私は答えを読みました gem fetch この質問について答えてください IS-IT IT-IT-TO-DOWNLOAD-A-RUBY-GEM-AUTALLING-IT-AUTOMATICATION. 。しかし、Windows私は常にWindowsの宝石を取得するとは限りません。

使用 gem install gosu --remote Windowsバージョンをインストールします Successfully installed gosu-0.7.15-x86-mswin32-60.

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

特定の宝石を求めています gem fetch gosu-0.7.15-x86-mswin32-60 同様の試みは得られます ERROR: Could not find gosu-0.7.15-x86-mswin32-60 in any repository

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

役に立ちましたか?

解決

$ 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

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top