ruby - RVM 安装 1.9.2 头错误

标签 ruby git https installation rvm

我正在使用 RVM 来维护 ROR 环境:

但是当我尝试安装 ruby​​-head 时,它给了我这样的错误消息:

shanan@shanan-ThinkPad:~$ rvm install 1.9.2-head
/home/shanan/.rvm/rubies/ruby-1.9.2-head, 
  this may take a while depending on your cpu(s)...

ruby-1.9.2-head - #fetching 
Cloning from https://github.com/ruby/ruby.git, this may take a while depending on your connection...
Cloning into /home/shanan/.rvm/repos/ruby-1.9.2-head...
fatal: Unable to find remote helper for 'https'
cloning from https://github.com/ruby/ruby.git failed, now attempting to clone from https://github.com/ruby/ruby.git, this may take a while depending on your connection...
Cloning into /home/shanan/.rvm/repos/ruby-1.9.2-head...
fatal: Unable to find remote helper for 'https'
There has been an error while trying to fetch the repository.               
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.
shanan@shanan-ThinkPad:~$ 

我使用的是 git 1.7.4,并且其他依赖项已正确安装和配置。 我真的不知道为什么以及如何解决这个问题。你能帮我吗?

最佳答案

确保您已安装以下软件包:

sudo apt-get install git-core
sudo apt-get install openssl
sudo apt-get install curl

以上是RVM的依赖

一切完成后,只需输入 sudo rvm install 1.9.2

我希望这能解决您的问题:)

关于ruby - RVM 安装 1.9.2 头错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4954556/

相关文章:

ios - 如何在发送到服务器(Ruby on Rails)时对表情符号进行编码?

git - 将 git 存储库传输到 Web 服务器

git - 如何 merge 没有共同祖先的两个分支?

.htaccess - 如何使用 .htaccess 从 HTTPS 重定向中排除文件夹

ruby-on-rails - 自定义 bool 文本?

ruby-on-rails - 在 Rails 运行时提供参数

git - 无法使用 pip 在 github 上安装特定的 git 分支 - 权限被拒绝(公钥)

ssl - 如何在 https 连接上设置 meteor 服务器?

java - ReSTLet 向服务器发送 "get"请求并处理响应

ruby-on-rails - 添加两个 ruby​​ 数组