rbenv 安装 - 需要可执行主机 ruby [英] rbenv install - executable host ruby is required
本文介绍了rbenv 安装 - 需要可执行主机 ruby的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 rbenv 将 ruby 2.2.0-dev 安装到我的 Ubuntu 13.10 开发笔记本电脑中.我已经删除了所有以前的 ruby 和 gem 安装.现在,当我尝试安装 ruby 时,出现以下错误.
I am trying to install ruby 2.2.0-dev using rbenv into my Ubuntu 13.10 development laptop. I have removed all previous ruby and gem installations. Now, when I try to install ruby I get the following error.
mark@Inspiron-1564:~/.rbenv$ rbenv install 2.2.0-dev
Cloning https://github.com/ruby/ruby.git...
Installing ruby-2.2.0-dev...
BUILD FAILED
Inspect or clean up the working tree at /tmp/ruby-build.20140119161217.4141
Results logged to /tmp/ruby-build.20140119161217.4141.log
Last 10 log lines:
/tmp/ruby-build.20140119161217.4141 ~/.rbenv
Cloning into 'ruby-2.2.0-dev'...
Checking connectivity... done
/tmp/ruby-build.20140119161217.4141/ruby-2.2.0-dev /tmp/ruby-build.20140119161217.4141 ~/.rbenv
executable host ruby is required. use --with-baseruby option.; false -C ./tool get-config_files config.guess
executable host ruby is required. use --with-baseruby option.; false -C ./tool get-config_files config.sub
configure: error: cannot run /bin/bash tool/config.sub
推荐答案
如果没有在机器中本地安装 ruby
,您将无法使用 rbenv
.您应该安装 ubuntu 的 ruby (sudo apt-get install ruby
),这样 rbenv 就会有一个可以使用的基本版本.如果你可以运行 ruby -v
那么你就大功告成了.
You can't use rbenv
without a native installation of ruby
in the machine. You should install ubuntu's ruby (sudo apt-get install ruby
) so rbenv will have a base version to work with. If you can run ruby -v
then you're all set.
这篇关于rbenv 安装 - 需要可执行主机 ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文