2009-12-02 2 views
1

나는이 질문에 gem fetch 대답을 읽었다. is-it-possible-to-download-a-ruby-gem-without-installing-it-automatically. 그러나 창문은 항상 창문 보석을 얻지 않습니다.특정 Ruby gem을 설치하지 않고 plat을 다운로드 할 수 있습니까?

gem install gosu --remote을 사용하면 windows 버전 Successfully installed gosu-0.7.15-x86-mswin32-60이 설치됩니다.

gem fetch gosu을 사용하여 다운로드 할 때 나는 Downloaded gosu-0.7.15을 얻었고 이것은 리눅스 버전이며 내 Windows PC에 설치할 수 없습니다.

gem fetch gosu-0.7.15-x86-mswin32-60 및 이와 유사한 시도와 특정 보석에 대한 요구가 가져올 대 설치 사용하는 경우 내 PC에 대한 올바른 버전을 얻는 방법에 관한 ERROR: Could not find gosu-0.7.15-x86-mswin32-60 in any repository

어떤 아이디어를 얻을?

답변

3
$ 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 

을하거나 단순히 download page에 갈 수 있어야한다.

+0

'gem fetch gosu --platform x86-mswin32' 작동 – Gerhard

관련 문제