简体   繁体   English

RVM稳定版本的安装错误

[英]Installation error with RVM stable version

I want to install RVM along with Ruby 1.9.3 and Rails 3.2.9. 我想将RVM与Ruby 1.9.3和Rails 3.2.9一起安装。 I have tried to install rvm using the following command, 我尝试使用以下命令安装rvm,

\\curl -L https://get.rvm.io | \\ curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled # Or, --ruby=1.9.3 bash -s stable --rails --autolibs = enabled#或者--ruby = 1.9.3

But, I am getting the following error. 但是,我收到以下错误。

Upgrade Notes:


  * WARNING: You're using ~/.profile, make sure you load it,
    add the following line to ~/.bash_profile if it exists
    otherwise add it to ~/.bash_login:

      source ~/.profile

  * No new notes to display.

# RVM:  Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm
# Screencast: http://screencasts.org/episodes/how-to-use-rvm

# In case of any issues run 'rvm requirements' or read 'rvm notes'

Upgrade of RVM in /home/local/.rvm/ is complete.

ajesh.co,TION
#
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and
#   more enjoyable!!!
#
# ~Wayne


rvm 1.19.6 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

Searching for binary rubies, this might take some time.
Installing requirements for ubuntu, might require sudo password.
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

Please help. 请帮忙。 Thanks. 谢谢。 :)- :)-

The packages were not installed as apt-get was halted while executing, leaving apt in a locked state. 未安装软件包,因为apt-get在执行时被暂停,从而使apt处于锁定状态。

You can delete the lock file with 您可以使用以下方式删除锁定文件:

sudo rm /var/lib/apt/lists/lock

you may also need to delete the lock file in the cache directory 您可能还需要删除缓存目录中的锁定文件

sudo rm /var/cache/apt/archives/lock

after that try the installation command again 之后,再次尝试安装命令

I had the same problem. 我有同样的问题。 I followed this tutorial, now I'm up and running: 我遵循了本教程,现在我可以启动并运行:

http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/

use following steps you will get solution: 使用以下步骤,您将获得解决方案:

1)sudo apt-get -y install curl

2)curl -L get.rvm.io | bash -s stable 

3)source ~/.rvm/scripts/rvm 

4)sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion

5)rvm install 1.9.3-p374

6)gem install rails -v 3.2.9

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM