Can't install Ruby on Rails with RVM on Ubuntu 13.04

后端 未结 9 814
独厮守ぢ
独厮守ぢ 2020-12-31 17:22

I am trying to install RVM on my Ubuntu machine.

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



        
9条回答
  •  生来不讨喜
    2020-12-31 17:31

    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
    

    Then install rvm with:

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

    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
    

    Open a new terminal and test rvm.

提交回复
热议问题