---
title: "ubuntu安装RVM"
author: "iseesea"
date: "2010-12-15T16:18:50Z"
tags: ["Git", "Ruby", "SVN", "Ubuntu", "subversion"]
categories: ["编程语言"]
slug: "ubuntu-rvm"
draft: false
lastmod: "2010-12-15T16:18:50Z"
id: 843035
url: "https://iseesea.iteye.com/blog/843035"
---

全新的系统安装配置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

加入以下信息，到文件中。

] && . "$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

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 了，，，