2012-11-19 5 views
9

루비가 AppFog 보석 (af)을 설치 한 것으로 보일 수 없습니다. 내가 af를 실행하면,이 얻을 :루비가 보석을 감지하지 못합니다.

/Users/myface13214/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find af (>= 0) amongst [Saikuro-1.1.0, actionmailer-3.2.8, actionpack-3.2.8, activemodel-3.2.8, activerecord-3.2.8, activeresource-3.2.8, activesupport-3.2.8, arel-3.0.2, awesome_print-1.1.0, bcrypt-ruby-3.0.1, bourbon-2.1.2, builder-3.0.4, cancan-1.6.8, capistrano-2.13.5, capybara-2.0.0, cgi_multipart_eof_fix-2.5.0, childprocess-0.3.6, chronic-0.3.0, chunky_png-1.2.6, churn-0.0.24, code_analyzer-0.3.0, coffee-rails-3.2.2, coffee-script-2.2.0, coffee-script-source-1.4.0, colored-1.2, compass-0.12.2, compass-rails-1.0.3, configatron-2.9.1, cover_me-1.2.0, daemons-1.1.9, daemons-1.0.10, devise-2.1.2, diff-lcs-1.1.3, erubis-2.7.0, excon-0.16.10, execjs-1.4.0, factory_girl-4.1.0, factory_girl_rails-4.1.0, fastthread-1.0.7, ffi-1.1.5, figaro-0.5.0, flay-1.4.3, flog-2.5.3, fssm-0.2.9, gem_plugin-0.2.3, hashie-1.2.0, highline-1.6.15, hike-1.2.1, hirb-0.7.0, i18n-0.6.1, journey-1.0.4, jquery-rails-2.1.3, json-1.7.5, json_pure-1.7.5, kgio-2.7.4, libwebsocket-0.1.6, mail-2.4.4, main-4.7.1, metric_fu-2.1.1, metrical-0.1.0, mime-types-1.19, mongrel-1.2.0.pre2, multi_json-1.3.7, net-scp-1.0.4, net-sftp-2.0.5, net-ssh-2.6.1, net-ssh-gateway-1.1.0, nokogiri-1.5.5, orm_adapter-0.4.0, polyglot-0.3.3, progressbar-0.11.0, rack-1.4.1, rack-cache-1.2, rack-ssl-1.3.2, rack-test-0.6.2, rails-3.2.8, rails_best_practices-1.12.0, railties-3.2.8, raindrops-0.10.0, rake-10.0.1, rcov-0.9.11, rdoc-3.12, reek-1.2.12, ripper_ruby_parser-0.0.8, roodi-2.1.0, rspec-core-2.12.0, rspec-expectations-2.12.0, rspec-mocks-2.12.0, rspec-rails-2.12.0, ruby2ruby-1.2.5, ruby_parser-2.3.1, rubyzip-0.9.9, sass-3.2.3, sass-rails-3.2.5, selenium-webdriver-2.26.0, sexp_processor-3.2.0, sprockets-2.1.3, sqlite3-1.3.6, syntax-1.0.0, thor-0.16.0, tilt-1.3.3, treetop-1.4.12, tzinfo-0.3.35, uglifier-1.3.0, unicorn-4.4.0, vcr-2.3.0, warden-1.2.1, websocket-1.0.2, xpath-1.0.0, yamler-0.1.0] (Gem::LoadError) 
    from /Users/myface13214/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' 
    from /Users/myface13214/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem' 
    from /Users/myface13214/.rvm/gems/ruby-1.9.3-p327/bin/af:18:in `<main>' 
    from /Users/myface13214/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval' 
    from /Users/myface13214/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>' 

이 그것을 설치 한 후도이다. 어떤 이유로 든 gem install은 설치하지 않습니다. 도움이된다면 RVM을 통해 1.9.3을 실행하고 있습니다.

rvm use 1.9.3

rvm gemset create your-project-name

rvm gemset use your-project-name

bundle install

를 그리고 모두의 작업이 예상대로 있는지 :

+0

bash 또는 zsh를 사용하고 있습니까? 어떤 버전입니까? 이 문제를 재현하기위한 정보가 여전히 누락되었습니다. – vgoff

+1

@vgoff ZSH와 오 마이 ZSH. ZSH 버전 4.3.9. – weddingcakes

+0

내가 보여 준 정보로 질문을 편집하기를 기다리면서 뭔가를 발견 할 수 있는지 알아봐야합니다. 아마도'rvm info'의 출력입니다. 'bundle exec '를 사용하여 이것을 시도 했습니까? – vgoff

답변

2

프로젝트 루트에서 다음을 수행하십시오.

+1

아니요, 작동하지 않았습니다. – weddingcakes

+0

번들 설치가 완료 되었습니까? –

+0

네,하지만 젬이 설치되어 있지 않습니다 – weddingcakes

4

가끔 rvm이 완전히 참여하지 않았을 수 있습니다. 즉, $GEM_PATH 환경 변수가 올바르게 설정되지 않았을 수 있습니다. 일반적으로 rvm use 1.9.3을 수정합니다.

rvm 설치가 오래되었거나 기본 Ruby가 올바르게 설정되어 있어야합니다.

10

실제로 사용하고있는 제품을 표시하지 않았으므로이 제품을 설치하는 데 사용한 몇 가지 문제 해결 및 설치 단계를 간략하게 설명하려고합니다. A gemset을 깨끗이하고 최신 rvm을 녹음하고 여기에 게시하려면 녹음하십시오.

가장 먼저 확인해야 할 것은 rvm 환경입니다. 다음

$: rvm get head 
$: rvm use 1.9.3-p327 

그리고 :

마지막으로 나에게이 보고서를 제공
$: rvm info 

:

[email protected]: 

    system: 
    uname:  "Linux lazurus 3.2.0-32-generiC#51-Ubuntu SMP Wed Sep 26 21:32:50 UTC 2012 i686 i686 i386 GNU/Linux" 
    system:  "debian/wheezy_sid/i386" 
    bash:  "/bin/bash => GNU bash, version 4.2.24(1)-release (i686-pc-linux-gnu)" 
    zsh:   " => not installed" 

    rvm: 
    version:  "rvm 1.16.20 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]" 
    updated:  "13 minutes 59 seconds ago" 

    ruby: 
    interpreter: "ruby" 
    version:  "1.9.3p327" 
    date:   "2012-11-10" 
    platform:  "i686-linux" 
    patchlevel: "2012-11-10 revision 37606" 
    full_version: "ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]" 

    homes: 
    gem:   "/home/some_user/.rvm/gems/[email protected]" 
    ruby:   "/home/some_user/.rvm/rubies/ruby-1.9.3-p327" 

    binaries: 
    ruby:   "/home/some_user/.rvm/rubies/ruby-1.9.3-p327/bin/ruby" 
    irb:   "/home/some_user/.rvm/rubies/ruby-1.9.3-p327/bin/irb" 
    gem:   "/home/some_user/.rvm/rubies/ruby-1.9.3-p327/bin/gem" 
    rake:   "/home/some_user/.rvm/gems/[email protected]/bin/rake" 

    environment: 
    PATH:   "/home/some_user/.rvm/gems/[email protected]/bin:/home/some_user/.rvm/gems/[email protected]/bin:/home/some_user/.rvm/rubies/ruby-1.9.3-p327/bin:/home/some_user/.rvm/bin:/usr/local/heroku/bin:/home/some_user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun/bin" 
    GEM_HOME:  "/home/some_user/.rvm/gems/[email protected]" 
    GEM_PATH:  "/home/some_user/.rvm/gems/[email protected]:/home/some_user/.rvm/gems/[email protected]" 
    MY_RUBY_HOME: "/home/some_user/.rvm/rubies/ruby-1.9.3-p327" 
    IRBRC:  "/home/some_user/.rvm/rubies/ruby-1.9.3-p327/.irbrc" 
    RUBYOPT:  "" 
    gemset:  "CleanProject" 

나는 깨끗한 gemset을 가지고, 그래서 아무 Gemfile없는 bundle install 나는이 두 단계를했다. 간단히 :

$: gem install af --no-rdoc --no-ri  
Fetching: json_pure-1.6.7.gem (100%)  
Fetching: rubyzip-0.9.9.gem (100%)   
Fetching: mime-types-1.19.gem (100%)  
Fetching: rest-client-1.6.7.gem (100%)  
Fetching: terminal-table-1.4.5.gem (100%) 
Fetching: interact-0.4.8.gem (100%)   
Fetching: addressable-2.2.8.gem (100%)  
Fetching: uuidtools-2.1.3.gem (100%)  
Fetching: rb-readline-0.4.2.gem (100%)  
Fetching: af-0.3.18.11.gem (100%)   
Successfully installed json_pure-1.6.7  
Successfully installed rubyzip-0.9.9  
Successfully installed mime-types-1.19  
Successfully installed rest-client-1.6.7 
Successfully installed terminal-table-1.4.5 
Successfully installed interact-0.4.8  
Successfully installed addressable-2.2.8 
Successfully installed uuidtools-2.1.3  
Successfully installed rb-readline-0.4.2 
Successfully installed af-0.3.18.11   
10 gems installed       

그런 다음 보석 이진 파일이 있는지 확인하여 설치합니다.

$: which af 
/home/some_user/.rvm/gems/[email protected]/bin/af 

그리고 내가 디렉토리 목록을 수행 할 때

$: ls /home/some_user/.rvm/gems/[email protected]/bin/ 
af 
restclient 

는 당신 나누기 보인다 곳입니다 ...

$: af 
Usage: af [options] command [<args>] [command_options] 
Try 'af help [command]' or 'af help options' for more information. 

그리고 더, 나는 도움말 옵션을 실행할 수 있습니다,

$: af help 

내가 도움말 화면 물론

Usage: af [options] command [<args>] [command_options] 
Try 'af help [command]' or 'af help options' for more information. 

Currently available af commands are: 

    Getting Started 
    target [url]         Reports current target or sets a new 

| 
| quite a few lines cut out for brevity's sake 
|  

    Help 
    help [command]        Get general help or help on a specific command 
    help options         Get help on available options 

을 얻을를 나는 RVM에 반영되어있는 폴더를 검사 할 때 정보, 난 다른 사람과 함께 af 바이너리를 참조하십시오.

+0

어떤 이유로'which'는 경로를 보여줍니다, 그러나'af' 명령을 실행하면 에러가 반환됩니다. – weddingcakes

+0

가능한 문제점을 암시하는 dependency.rb의 240 행에 나열된 TODO가 있습니다. 번들러와 다른 보석을 사용하고 있습니까? – vgoff

+0

사실, 당신이 bundler를 사용하고있는 것을 볼 수 있습니다.'bundle exec '을하고 있는지 물어 보았어 야합니다. – vgoff

관련 문제