我根据https://github.com/sstephenson/rbenv#section_2的说明安装了 rbenv
在第 4 点重新启动我的 shell 将导致错误
$ rbenv init -
rbenv: no such command `init'
尝试直接从其文件夹运行命令也不起作用。
$ cd .rbenv/bin
$ ./rbenv init -
rbenv: no such command `init'
我的 $PATH
$ echo $PATH
/home/myusername/.rbenv/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/myusername/bin
运行 rbenv install 直到调用 rbenv rehash
$ rbenv install 1.9.3-p0
Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz...
Installing yaml-0.1.4...
Installed yaml-0.1.4 to /home/hbrandl/.rbenv/versions/1.9.3-p0
Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz...
Installing ruby-1.9.3-p0...
Installed ruby-1.9.3-p0 to /home/hbrandl/.rbenv/versions/1.9.3-p0
rbenv: no such command `rehash'
所有其他 rbenv 命令似乎都不起作用。
非常感谢任何帮助或指示。