ubuntu安装RVM

全新的系统安装配置RVM

1,安装GIT,curl,bison(aptitude 直接安装)

2,运行

$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )

3,

$ mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone --depth 1 git://github.com/wayneeseguin/rvm.git && cd rvm && ./install

下载,安装

4,因为我用的是Ubuntu的10.10所以,在

$ vi ~/.bashrc

加入以下信息,到文件中。

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

5,关闭命令行,重新打开一个,输入 type rvm | head -1
如果结果正确的话就会 显示

rvm is a function

基本安装完毕。。

最后加入path:

$ source ~/.rvm/scripts/rvm

6,但是之后运行 rvm install 1.9.2-head的时候就会出错:

ruby-1.9.2-head - #fetching
Downloading source from http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_2.
Error running 'svn checkout -q http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_2 /home/allen/.rvm/repos/ruby-1.9.2-head', please read /home/allen/.rvm/log/ruby-1.9.2-head/svn.checkout.log
There has been an error while trying to fetch / update the source.
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.

原来我没装svn。。。。囧。。。。

$ sudo aptitude install subversion

ok 了,,,
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值