Last active
December 15, 2015 05:59
-
-
Save toshikaz55/5213055 to your computer and use it in GitHub Desktop.
Install Ruby 1.9.3p392 on MacOSX by rbenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% sudo brew install rbenv | |
==> Downloading https://github.com/sstephenson/rbenv/tarball/v0.4.0 | |
Already downloaded: /Library/Caches/Homebrew/rbenv-0.4.0.tgz | |
==> Caveats | |
To enable shims and autocompletion add to your profile: | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
To use Homebrew's directories rather than ~/.rbenv add to your profile: | |
export RBENV_ROOT=/usr/local/var/rbenv | |
==> Summary | |
๐บ /usr/local/Cellar/rbenv/0.4.0: 31 files, 152K, built in 2 seconds | |
% emacs .zshrc | |
## Add PATH for rbenv | |
# | |
export RBENV_ROOT=/usr/local/var/rbenv | |
export PATH="$RBENV_ROOT/bin:$PATH" | |
#eval "$(rbenv init -)" | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
% source .zshrc | |
% CONFIGURE_OPTS="--with-readline-dir=/usr/local --with-openssl-dir=/usr/local" rbenv install 1.9.3-p392 | |
Downloading yaml-0.1.4.tar.gz... | |
-> http://dqw8nmjcqpjn7.cloudfront.net/36c852831d02cf90508c29852361d01b | |
Installing yaml-0.1.4... | |
Installed yaml-0.1.4 to /usr/local/var/rbenv/versions/1.9.3-p392 | |
Downloading ruby-1.9.3-p392.tar.gz... | |
-> http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | |
Installing ruby-1.9.3-p392... | |
Installed ruby-1.9.3-p392 to /usr/local/var/rbenv/versions/1.9.3-p392 | |
ไฝฟ็จใใRubyใจใใฎใใผใธใงใณใ็ขบ่ช | |
% rbenv version | |
system (set by /usr/local/var/rbenv/version) | |
% ruby -v | |
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] | |
ใคใณในใใผใซใใใฆใใRubyใฎใใผใธใงใณใ็ขบ่ช | |
% rbenv versions | |
* system (set by /usr/local/var/rbenv/version) | |
1.9.3-p392 | |
ไฝฟ็จใใRubyใ1.9.3ใซๅคๆด | |
% rbenv global 1.9.3-p392 | |
% rbenv rehash | |
% rbenv version | |
1.9.3-p392 (set by /usr/local/var/rbenv/version) | |
% ruby -v | |
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0] | |
ๆฅๆฌ่ชใไฝฟใใใฎใ็ขบ่ช | |
% irb | |
irb(main):001:0> puts "ใใใ" | |
ใใใ | |
=> nil | |
irb(main):002:0> exit | |
% | |
% tree -L 3 /usr/local/var/rbenv/ | |
/usr/local/var/rbenv/ | |
โโโ shims | |
โย ย โโโ erb | |
โย ย โโโ gem | |
โย ย โโโ irb | |
โย ย โโโ rake | |
โย ย โโโ rdoc | |
โย ย โโโ ri | |
โย ย โโโ ruby | |
โย ย โโโ testrb | |
โโโ version | |
โโโ versions | |
โโโ 1.9.3-p392 | |
โโโ bin | |
โโโ include | |
โโโ lib | |
โโโ share | |
7 directories, 9 files | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment