Installing RVM on Ubuntu

橙三吉。 提交于 2019-12-03 17:57:44

问题


I've got a strange error when I try to run this rvm install script (newly installed ubuntu 11.10):

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

I got this:

mkdir: cannot create directory: ”/usr/share/ruby-rvm/src”

The problem is, I want to install a per-user rvm to my $HOME, and dont understand what this script wants with /usr/share/ruby-rvm.

I need my rvm at $HOME/.rvm directory.

I've got no env variable with $rvm_ prefix, I checked.


回答1:


You may have installed the debian packaged rvm. You can clean it first with:

$ sudo apt-get --purge remove ruby-rvm 



回答2:


In command prompt past the following lines:-

1)sudo apt-get update

2)sudo apt-get install curl

3)\curl -L https://get.rvm.io | bash -s stable

4)source ~/.rvm/scripts/rvm

5)rvm requirements

6)rvm install ruby 1.9.3

7)rvm use ruby 1.9.3

8)rvm gemset create new-rails

9)rvm use @new-rails --default




回答3:


You should follow these instruction on Ubuntu, Ruby, RVM, Rails, and You on Ryan Bigg's blog.




回答4:


As it is said by error message:

To continue in insecure mode run 'echo insecure >> ~/.curlrc'.

Just run echo insecure >> ~/.curlrc. Then rerun;

curl -L https://get.rvm.io | bash


来源:https://stackoverflow.com/questions/8402827/installing-rvm-on-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!