rvm install: ruby installation error

后端 未结 9 2413
再見小時候
再見小時候 2020-12-30 09:48

I want to install ruby on my Linux Mint 12.

I am following this tutorial and this one.

when I run rvm install 1.9.3 I see this error:

         


        
9条回答
  •  梦毁少年i
    2020-12-30 09:55

    Doing an rvm update as suggested in one of the comments gave me some good errors on how to fix the problem. I purged apt-get ruby-rvm as suggested in the errors and installed with curl. Worked like a charm. Looking at the file name the apt-get version of rvm is grabbing it looks like the last part of the version is missing for some reason. Instead of ruby-1.9.3-.tar.bz2 it should be ruby-1.9.3-p327.tar.bz2 or something to that effect.

    Here is what I did and what was suggested by the errors after rvm update:

      sudo apt-get --purge remove ruby-rvm
      sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh
    
      open new terminal and validate environment is clean from old rvm settings:
    
      env | GREP_OPTIONS= \grep rvm
    
    install RVM:
    
      curl -L https://get.rvm.io | bash -s stable
    
    fix some more screwed up stuff from apt-get ruby-gem
    
       make ~/.bash_profile look like this(it loads rvm as a function in bash):
    
          [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
    
    update RVM:
    
      rvm update
      rvm reload
    
    install ruby
    
      rvm install 1.9.3
      rvm use 1.9.3 --default
    
    install current rubygems
    
      rvm rubygems current
    
    install rails
    
      gem install rails
    

    Done!

提交回复
热议问题