我安装rbenv根据指令在https://github.com/sstephenson/rbenv#section_2rbenv:没有这样的命令'初始化”
在点4重新启动我的壳会导致错误
$ 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安装工程,直到rbenv翻版称为
$ 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命令似乎不工作。
任何帮助或指针非常感谢。
我刚刚在我的设置上进行了测试(这仍然适用于上述修复)。不过,我很遗憾地报告说这个解决方案对我不起作用。我仍然得到“rbenv:no such command'init'”错误。 – Hartwig