开发者

Installing Ruby w/RBENV: I get "ruby-build command not found"

I put 'rbenv install 1.9.2-p290' in the terminal and I get back 'rbenv-install: line 31: ruby-build: command not found'

I have ruby-build as well. Did I not install ruby-build correctly?

I see this on the github site: "You can install to a different prefix by setting开发者_运维知识库 the PREFIX environment variable." I'm not exactly sure what PREFIX is but does that mean I can install to another directory? Do I need to put ruby-build in a specific place?

Thanks, Jae


From a fresh terminal run which ruby-build. This will return the path to ruby-build provided it is in your path. If it is not in your path, it will return nothing. You need to edit your PATH variable such that ruby-build is found.

find where ruby-build is installed with find / -name "ruby-build". If you're sure it's in /usr/local you can use /usr/local instead of /.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜