在OSX Yosemite 10.10.(更新版本)上安装软件RVM

================================================
# Install rvm
# https://rvm.io/rvm/install
================================================

------------------------------------------------------------------------------------------------
# Install gpg2 on Mac OS X 10.6 and newer
# https://github.com/GPGTools/MacGPG2
# https://gpgtools.org/macgpg2/
------------------------------------------------------------------------------------------------
wget https://releases.gpgtools.org/GPG%20Suite%20-%202014.12-b4.dmg
open GPG%20Suite%20-%202014.12-b4.dmg

------------------------------------------------------------------------------------------------
# Use gpg2
# https://rvm.io/rvm/install
------------------------------------------------------------------------------------------------
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3

------------------------------------------------------------------------------------------------
# Install Xcode on Mac OS X 10.10
# https://developer.apple.com/downloads
# Sign in
------------------------------------------------------------------------------------------------
wget http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_10.10_for_xcode__xcode_6.1.1/commandlinetoolsosx10.10forxcode6.1.1.dmg
open commandlinetoolsosx10.10forxcode6.1.1.dmg

------------------------------------------------------------------------------------------------
# Open Xcode
------------------------------------------------------------------------------------------------
# Agreeing to the Xcode/iOS license requires admin privileges.

------------------------------------------------------------------------------------------------
# Open the file brew.rb using the following command: 
------------------------------------------------------------------------------------------------
vi /usr/local/Library/brew.rb

------------------------------------------------------------------------------------------------
# http://jcvangent.com/fixing-homebrew-os-x-10-10-yosemite/
# https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Installation.md#installation
# http://coolestguidesontheplanet.com/installing-homebrew-os-x-yosemite-10-10-package-manager-unix-apps/

# Change the first line in the file brew.rb
# from: #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0 
# to #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
# Commit the follow lines:
  #abort <<-EOABORT.undent
  #Homebrew requires Leopard or higher. For Tiger support, see:
  #https://github.com/mistydemeo/tigerbrew
  #EOABORT
# Save and exit brew.rb
------------------------------------------------------------------------------------------------
cd "$(brew –repository)" && git commit -a -m 'new ruby version 2.0' 
brew update
brew doctor
cd /usr/local/Library && git stash && git clean -d -f
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
. ~/.bash_profile

------------------------------------------------------------------------------------------------
# Install RVM stable with ruby:
# https://rvm.io/rvm/install
------------------------------------------------------------------------------------------------
\curl -sSL https://get.rvm.io | bash -s stable --ruby

------------------------------------------------------------------------------------------------
# Install rails
# https://gorails.com/setup/osx/10.10-yosemite

------------------------------------------------------------------------------------------------
gem install rails --no-ri --no-rdoc

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值