在Mac狮子中安装ruby1.9.3
2012-09-18 12:28
489 查看
osx-gcc-installer turns out to be a very good option to replace Xcode in order to install Ruby 1.9.3
These are the steps I have followed:
Download & install the latest version of osx-gcc-installer here (GCC-10.7-v2 is fine):https://github.com/kennethreitz/osx-gcc-installer/downloads
Install RVM as usual and select 1.9.3-head as the default ruby installation: https://rvm.io/rvm/install/
Install Homebrew: https://github.com/mxcl/homebrew/wiki/installation
Install libksba to resolve some dependencies with Ruby 1.9.3: brew install libksba
That's it! You should now have Ruby 1.9.3 installed on Mountain Lion working perfectly.
If you need some other packages, install them now through Homebrew, such as Imagemagick for example: brew install imagemagick
It's possible that you need XQuartz for Homebrew to work properly, as Apple is not shipping X11 since Mountain Lion. You can download it here: http://xquartz.macosforge.org/trac/wiki
EDIT:
Now (since 29th July) Command line tools for Xcode 4.4 are available.
So, the new steps are these:
Download & install Command line tools for Xcode 4.4 (you don't need to download Xcode):https://developer.apple.com/downloads/index.action
Install Homebrew: https://github.com/mxcl/homebrew/wiki/installation
Install automake: brew install automake
Install RVM as usual and select 1.9.3-head as the default ruby installation: https://rvm.io/rvm/install/
Optional step: You may need XQuartz for some components, for example for Imagemagick, so download & install XQuartz: http://xquartz.macosforge.org/trac/wiki
These are the steps I have followed:
Download & install the latest version of osx-gcc-installer here (GCC-10.7-v2 is fine):https://github.com/kennethreitz/osx-gcc-installer/downloads
Install RVM as usual and select 1.9.3-head as the default ruby installation: https://rvm.io/rvm/install/
Install Homebrew: https://github.com/mxcl/homebrew/wiki/installation
Install libksba to resolve some dependencies with Ruby 1.9.3: brew install libksba
That's it! You should now have Ruby 1.9.3 installed on Mountain Lion working perfectly.
If you need some other packages, install them now through Homebrew, such as Imagemagick for example: brew install imagemagick
It's possible that you need XQuartz for Homebrew to work properly, as Apple is not shipping X11 since Mountain Lion. You can download it here: http://xquartz.macosforge.org/trac/wiki
EDIT:
Now (since 29th July) Command line tools for Xcode 4.4 are available.
So, the new steps are these:
Download & install Command line tools for Xcode 4.4 (you don't need to download Xcode):https://developer.apple.com/downloads/index.action
Install Homebrew: https://github.com/mxcl/homebrew/wiki/installation
Install automake: brew install automake
Install RVM as usual and select 1.9.3-head as the default ruby installation: https://rvm.io/rvm/install/
Optional step: You may need XQuartz for some components, for example for Imagemagick, so download & install XQuartz: http://xquartz.macosforge.org/trac/wiki
相关文章推荐
- mac10.11环境下如何安装和使用cocoapods(包括ruby升级)
- 如何在Mac OS X上安装 Ruby运行环境
- 如何在Mac OS X上安装 Ruby运行环境
- 在Mac OS X上安装 Ruby运行环境 CocoaPods安装和使用教程
- 如何在Mac OS X上安装 Ruby运行环境
- MacRuby初步安装及体验
- iOS Mac系统下Ruby环境安装
- mac快速正确的安装 Ruby, Rails 运行环境
- Mac上安装 Ruby运行环境以及CocoaPods的安装使用教程
- 如何在Mac OS X上安装 Ruby运行环境
- Mac OS Ruby安装 使用RVM
- Windows上成功安装Ruby-1.9.3 gem mysql2
- 如何在Mac OS X上安装 Ruby运行环境 对于新入门的开发者,如何安装 Ruby和Ruby Gems 的运行环境可能会是个问题,本页主要介绍如何用一条靠谱的路子快速安装 Ruby 开发环境。
- Mac 下安装ruby,以及CocoaPods安装以及使用网摘
- 在CentOS下安装ruby 1.9.3
- Mac上更新Ruby,安装cocoapods详细教程
- 在Mac上安装Ruby on Rails
- Mac 下安装Ruby环境
- 如何在Mac OS X上安装 Ruby运行环境
- ubuntu 安装 ruby1.9.3