无法在Ubuntu 13.04上使用RVM安装Ruby on Rails [英] Can't install Ruby on Rails with RVM on Ubuntu 13.04

查看:91
本文介绍了无法在Ubuntu 13.04上使用RVM安装Ruby on Rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Ubuntu计算机上安装RVM.

I am trying to install RVM on my Ubuntu machine.

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

I have used curl to get RVM, but some RVM commands (install, requirements) throw this apt-get error:

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

类型rvm | head -1返回

type rvm | head -1 returns

rvm is a function
-bash: type: write error: Broken pipe

哪个宝石

/usr/bin/gem

我已经选中了作为登录外壳运行命令"选项

I have checked the "Run command as a login shell" option

教程中的步骤:

sudo apt-get install curl
curl -L get.rvm.io | bash -s stable --auto
. ~/.bash_profile
rvm requirements - doesn't work properly

我也查看了 RVM官方文档,但它看起来非常相似

I have also looked at the official RVM documentation, but it seems to be very similar.

有什么想法吗?

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

UPDATE: I managed to do it. I disabled all the third party ppa URLs and it installed smoothly.

推荐答案

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

There are some important packages your system needs before install rvm. Run at the terminal:

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

然后使用以下命令安装rvm:

Then install rvm with:

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

现在,您需要在.bashrc中放置一个设置,以将rvm添加到PATH以进行脚本编写.运行:

Now you need to put a setting in your .bashrc to add rvm to PATH for scripting. Run:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc

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

Open a new terminal and test rvm.

这篇关于无法在Ubuntu 13.04上使用RVM安装Ruby on Rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆