How can I install Ruby 1.9.3 in Mac OS X Lion?

后端 未结 11 502
南旧
南旧 2020-12-04 12:21

I am trying to install Ruby 1.9.3 but am having problems. I installed RVM, then typed:

rvm install 1.9.3

The output says:

         


        
11条回答
  •  Happy的楠姐
    2020-12-04 12:32

    Clang wasn't cutting any rubies for me and rvm install rubies failed no matter what with single user rvm. Sudo combined with some permission & $PATH changes to my user made it happen. Here's what I did:

    sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
    sudo rvm pkg install readline sudo rvm install 1.9.3

    Installing rvm from root user makes a shell script at /usr/local/rvm/scripts/rvm Pulled code from this executable and placed it in my .bash_profile so that .bash_profile was saved as:

    [ -s "/usr/local/rvm/scripts/rvm" ]] ;
        true ${rvm_path:="/usr/local/rvm"}
        source "/usr/local/rvm/scripts/rvm"
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
    

    The user group RVM was created during root user rvm install. Last thing I did was go to my preferences pane in OSX 10.7 and added my user to the new rvm group. Finally I reloaded my terminal and was able to install 1.9.3 through rvm single user.

提交回复
热议问题