无法在Ubuntu 13.04上使用RVM安装Ruby on Rails

Seb*_*ian 8 ruby linux ubuntu ruby-on-rails

我正在尝试在我的Ubuntu机器上安装RVM.

我使用curl来获取RVM,但是一些RVM命令(安装,要求)抛出了这个apt-get错误:

There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
    /etc/apt/sources.list
    /etc/apt/sources.list.d/*.list
Run Code Online (Sandbox Code Playgroud)

输入rvm | 头-1返回

rvm is a function
-bash: type: write error: Broken pipe
Run Code Online (Sandbox Code Playgroud)

哪个宝石

/usr/bin/gem
Run Code Online (Sandbox Code Playgroud)

我已经检查了"运行命令作为登录shell"选项

教程的步骤如下:

sudo apt-get install curl
curl -L get.rvm.io | bash -s stable --auto
. ~/.bash_profile
rvm requirements - doesn't work properly
Run Code Online (Sandbox Code Playgroud)

我也看过官方的RVM文档,但它看起来非常相似.

有任何想法吗?

更新:我设法做到了.我禁用了所有第三方ppa网址,并且顺利安装.

Jul*_*ves 19

在安装rvm之前,系统需要一些重要的软件包.在终端运行:

sudo apt-get install build-essential openssl libreadline6 libreadline6-dev \
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev \
sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake \
libtool bison subversion nodejs
Run Code Online (Sandbox Code Playgroud)

然后安装rvm:

curl -L https://get.rvm.io | bash -s stable --ruby
Run Code Online (Sandbox Code Playgroud)

现在,您需要在您的设置中.bashrc添加rvm到PATH以进行脚本编写.跑:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
Run Code Online (Sandbox Code Playgroud)

打开一个新终端并测试rvm.