要安装rbenv,我安装了Cygwin和一些必需的软件包(gcc,openssl,libssl,libxml等)。然后,克隆存储库并附加到.zshrc。
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugin
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
$ echo 'eval "$(rbenv init -)"' >> ~/.zshrc
重新启动cygwin并运行此命令。
rbenv install 2.0.0-p353
但是我收到了这个错误。
$ rbenv install 2.0.0-p353
Downloading ruby-2.0.0-p353.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/78282433fb697dd3613613ff55d734c1
Installing ruby-2.0.0-p353...
BUILD FAILED
Inspect or clean up the working tree at /tmp/ruby-build.20140211033802.7944
Results logged to /tmp/ruby-build.20140211033802.7944.log
Last 10 log lines:
installing default gems: /cygdrive/c/Users/MY_NAME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
bigdecimal 1.2.0
io-console 0.4.2
json 1.7.7
minitest 4.3.2
psych 2.0.0
rake 0.9.6
rdoc 4.0.0
test-unit 2.0.0.0
/cygdrive/c/Users/MY_NAME/.rbenv/plugins/ruby-build/bin/ruby-build: line 759: /cygdrive/c/Users/MY_NAME/.rbenv/versions/2.0.0-p353/bin/ruby: No such file or directory
/tmp/ruby-build.20140211033802.7944在这里: https://gist.github.com/anonymous/a9e099a4335ae59a9714
我在ruby-build的第759行找到了与openssl相关的函数,但我可能已经安装了 它。 关于为什么版本/ 2.0.0-p353 / bin / ruby不存在的任何想法?