Ruby 1.9.3使える !!!2011/11/15 19:54

mac rvmを久々にupdatgeしたら ええ

おお LionのXcodeの4.1にすれば ruby-1.9.3-P0を動かせそうだ!!!
ーーーー以下 メッセージ
Installation of RVM to /Users/butcher/.rvm/ is complete.


Notes for Darwin ( Mac OS X Server )
For Snow Leopard: Xcode Version 3.2.1 (1613) or later, such as 3.2.6 or Xcode 4.1.
[ Please note that Xcode 3.x will *not* work on OS X Lion. The 'cross-over' is Xcode 4.1. ]

You should download the Xcode tools from developer.apple.com, since the Snow Leopard dvd install contained bugs.
You can find Xcode 4.1 for OS X Lion at:
https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg

** Lion Users: Xcode Version 4.2.x for OS X Lion works only for ruby 1.9.3-p0 (or higher).
It currently fails to build several other rubies and gems, as well as several Homebrew and
Macports packages. Xcode Version 4.1 (4B110) works.
** NOTE: Currently, Node.js is having issues building with osx-gcc-installer. This is _not_ an RVM issue. This is
because Node.js depends on the Carbon headers. ox-gcc-installer does not install these to the system.
This issue only affects users using osx-gcc-installer, and not Xcode. The only fix is to install Xcode over osx-gcc-installer.

For MacRuby: Install LLVM first.
For JRuby: Install the JDK. See http://developer.apple.com/java/download/ # Current Java version 1.6.0_26
For IronRuby: Install Mono >= 2.6
For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba'

To use an RVM installed Ruby as default, instead of the system ruby:
rvm install 1.8.7 # installs patch 352: closest supported version
rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system.gems # migrate your gems
rvm --default 1.8.7


Installed RVM HEAD version:

rvm 1.9.2 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]


ーーーー
rvm install 1.9.3
Installing Ruby from source to: /Users/butcher/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...

ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #downloading ruby-1.9.3-p0, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9330k 100 9330k 0 0 802k 0 0:00:11 0:00:11 --:--:-- 942k
ruby-1.9.3-p0 - #extracting ruby-1.9.3-p0 to /Users/butcher/.rvm/src/ruby-1.9.3-p0
ruby-1.9.3-p0 - #extracted to /Users/butcher/.rvm/src/ruby-1.9.3-p0
Fetching yaml-0.1.4.tar.gz to /Users/butcher/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/butcher/.rvm/src
Configuring yaml in /Users/butcher/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/butcher/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/butcher/.rvm/usr
ruby-1.9.3-p0 - #configuring
ruby-1.9.3-p0 - #compiling
ruby-1.9.3-p0 - #installing
Retrieving rubygems-1.8.10
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 243k 100 243k 0 0 393k 0 --:--:-- --:--:-- --:--:-- 963k
Extracting rubygems-1.8.10 ...
Removing old Rubygems files...
Installing rubygems-1.8.10 for ruby-1.9.3-p0 ...
Installation of rubygems completed successfully.
ruby-1.9.3-p0 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p0 - #importing default gemsets (/Users/butcher/.rvm/gemsets/)
Install of ruby-1.9.3-p0 - #complete
rvm list

rvm rubies

jruby-1.6.0 [ x86_64 ]
jruby-1.6.4 [ x86_64 ]
macruby-0.10 [ x86_64 ]
ruby-1.8.7-p352 [ i686 ]
=> ruby-1.9.2-p290 [ x86_64 ]
ruby-1.9.2-p290-ruvy [ x86_64 ]
ruby-1.9.3-p0 [ x86_64 ]

suzuki-juunotto-no-MacBook-Pro:~ butcher$ rvm use 1.9.3
Using /Users/butcher/.rvm/gems/ruby-1.9.3-p0

gem恐るべし rails 3.1勝手に入ってしまった。2011/11/15 21:42

gem install rails
って打つと versionとかしらべて 勝手にインストールしてしまう
rails 3.1.1が入ったみたい

まだ 3.*の機能調べてない。 日本語の本は2.*台ばかりだったから ちゃんと調べないと まずいかも

Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Fetching: railties-3.1.1.gem (100%)
Fetching: bundler-1.0.21.gem (100%)
Fetching: rails-3.1.1.gem (100%)