【发布时间】:2016-03-24 20:16:00
【问题描述】:
我正在尝试使用 rbenv 将 ruby 2.2.0-dev 安装到我的 Ubuntu 13.10 开发笔记本电脑中。我已经删除了所有以前的 ruby 和 gem 安装。现在,当我尝试安装 ruby 时,出现以下错误。
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
【问题讨论】: