【问题标题】:Installation error with RVM stable versionRVM 稳定版安装错误
【发布时间】:2013-04-16 05:53:07
【问题描述】:

我想将 RVM 与 Ruby 1.9.3 和 Rails 3.2.9 一起安装。我尝试使用以下命令安装 rvm,

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

但是,我收到以下错误。

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/

请帮忙。谢谢。 :)-

【问题讨论】:

    标签: ruby-on-rails installation rvm runtime-error


    【解决方案1】:

    我遇到了同样的问题。我按照本教程进行操作,现在可以开始运行了:

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

    【讨论】:

      【解决方案2】:

      使用以下步骤您将得到解决方案:

      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
      

      【讨论】:

        【解决方案3】:

        软件包未安装,因为 apt-get 在执行时停止,导致 apt 处于锁定状态。

        你可以删除锁文件

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

        您可能还需要删除缓存目录中的锁定文件

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

        之后再次尝试安装命令

        【讨论】:

          猜你喜欢
          • 2019-06-15
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-06-02
          • 2013-04-22
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多