我正在使用 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/