1

我正在尝试为上帝设置一个 RVM 包装器,但我无法让它正常工作。上帝在我的路上,但它声称它找不到二进制文件。我是否配置错误?

root@hostname:~# rvm info

ruby-1.9.2-p180:

  system:
    uname:       "Linux hostname 2.6.38-linode31 #1 SMP Mon Mar 21 21:22:33 UTC 2011 i686 GNU/Linux"
    bash:        "/bin/bash => GNU bash, version 4.1.5(1)-release (i686-pc-linux-gnu)"
    zsh:         " => not installed"

  rvm:
    version:      "rvm 1.6.0 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.2p180"
    date:         "2011-02-18"
    platform:     "i686-linux"
    patchlevel:   "2011-02-18 revision 30909"
    full_version: "ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]"

  homes:
    gem:          "/usr/local/rvm/gems/ruby-1.9.2-p180"
    ruby:         "/usr/local/rvm/rubies/ruby-1.9.2-p180"

  binaries:
    ruby:         "/usr/local/rvm/bin/ruby"
    irb:          "/usr/local/rvm/bin/irb"
    gem:          "/usr/local/rvm/bin/gem"
    rake:         "/usr/local/rvm/bin/rake"

  environment:
    PATH:         "/usr/local/rvm/bin:/usr/local/rvm/gems/ruby-1.9.2-p180/bin:/usr/local/rvm/gems/ruby-1.9.2-p180@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-p180/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
    GEM_HOME:     "/usr/local/rvm/gems/ruby-1.9.2-p180"
    GEM_PATH:     "/usr/local/rvm/gems/ruby-1.9.2-p180:/usr/local/rvm/gems/ruby-1.9.2-p180@global"
    MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.9.2-p180"
    IRBRC:        "/usr/local/rvm/rubies/ruby-1.9.2-p180/.irbrc"
    RUBYOPT:      ""
    gemset:       ""


root@hostname:~# which god
/usr/local/rvm/gems/ruby-1.9.2-p180/bin/god
root@hostname:~# rvm wrapper @global boot god
ERROR: Binary 'god' not found.
root@hostname:~# 
4

1 回答 1

2

我有一个类似的问题。因为你的 ruby​​ 是 ruby​​-1.9.2-p180,所以你应该使用它而不是 @global创建你的包装器:

$  rvm wrapper ruby-1.9.2-p180 bootup god
于 2011-09-30T16:23:49.730 回答