Advertisement
riocampos

install homebrew, git, rbenv&ruby-build, and ruby 1.9.3-p392

Apr 30th, 2013
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.64 KB | None | 0 0
  1. mac:~ hoge$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
  2. ==> This script will install:
  3. /usr/local/bin/brew
  4. /usr/local/Library/...
  5. /usr/local/share/man/man1/brew.1
  6.  
  7. Press ENTER to continue or any other key to abort
  8. ==> /usr/bin/sudo /bin/mkdir /usr/local
  9. Password:
  10. ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local
  11. ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local
  12. ==> Downloading and Installing Homebrew...
  13. ==> Installation successful!
  14. You should run `brew doctor' *before* you install anything.
  15. Now type: brew help
  16. mac:~ hoge$ brew doctor
  17. You must: brew install git
  18. You must: brew install git
  19. Warning: An outdated version of Git was detected in your PATH.
  20. Git 1.6.6 or newer is required to perform checkouts over HTTP from GitHub.
  21. Please upgrade: brew upgrade git
  22. mac:~ hoge$ brew install git
  23. ==> Downloading http://git-core.googlecode.com/files/git-1.8.2.1.tar.gz
  24. ######################################################################## 100.0%
  25. ==> make prefix=/usr/local/Cellar/git/1.8.2.1 CC=/usr/bin/gcc-4.2 CFLAGS=-Os -w
  26. ==> make CC=/usr/bin/gcc-4.2 CFLAGS=-Os -w -pipe -march=core2 -msse4.1 -mmacosx-
  27. ==> make clean
  28. ==> make CC=/usr/bin/gcc-4.2 CFLAGS=-Os -w -pipe -march=core2 -msse4.1 -mmacosx-
  29. ==> Downloading http://git-core.googlecode.com/files/git-manpages-1.8.2.1.tar.gz
  30. ######################################################################## 100.0%
  31. ==> Downloading http://git-core.googlecode.com/files/git-htmldocs-1.8.2.1.tar.gz
  32. ######################################################################## 100.0%
  33. ==> Caveats
  34. The OS X keychain credential helper has been installed to:
  35.  /usr/local/bin/git-credential-osxkeychain
  36.  
  37. The 'contrib' directory has been installed to:
  38.  /usr/local/share/git-core/contrib
  39.  
  40. Bash completion has been installed to:
  41.  /usr/local/etc/bash_completion.d
  42.  
  43. zsh completion has been installed to:
  44.  /usr/local/share/zsh/site-functions
  45. ==> Summary
  46. /usr/local/Cellar/git/1.8.2.1: 1318 files, 27M, built in 2.7 minutes
  47. mac:~ hoge$ brew doctor
  48. Your system is ready to brew.
  49. mac:~ hoge$ brew --config
  50. HOMEBREW_VERSION: 0.9.4
  51. ORIGIN: (none)
  52. HEAD: (none)
  53. HOMEBREW_PREFIX: /usr/local
  54. HOMEBREW_CELLAR: /usr/local/Cellar
  55. CPU: dual-core 64-bit penryn
  56. OS X: 10.6.8-i386
  57. Xcode: 3.2.6
  58. GCC-4.0: build 5494
  59. GCC-4.2: build 5666
  60. LLVM-GCC: build 2335
  61. Clang: 1.7 build 77
  62. X11: 2.3.6 => /usr/X11
  63. System Ruby: 1.8.7-358
  64. Perl: /usr/bin/perl
  65. Python: /usr/bin/python
  66. Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  67. mac:~ hoge$ brew install rbenv
  68. ==> Downloading https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz
  69. ######################################################################## 100.0%
  70. ==> Caveats
  71. To use Homebrew's directories rather than ~/.rbenv add to your profile:
  72.   export RBENV_ROOT=/usr/local/var/rbenv
  73.  
  74. To enable shims and autocompletion add to your profile:
  75.   if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
  76. ==> Summary
  77. /usr/local/Cellar/rbenv/0.4.0: 31 files, 152K, built in 7 seconds
  78. mac:~ hoge$ echo 'eval "$(rbenv init -)"' >> .bash_profile
  79. mac:~ hoge$ echo 'source ~/.rbenv/completions/rbenv.bash' >> .bash_profile
  80. mac:~ hoge$ cat .bash_profile
  81. eval "$(rbenv init -)"
  82. source ~/.rbenv/completions/rbenv.bash
  83. mac:~ hoge$ ls -a
  84. .           .cups           Library
  85. ..          .dropbox        Movies
  86. .CFUserTextEncoding .ssh            Music
  87. .DS_Store       Desktop         Pictures
  88. .Trash          Documents       Public
  89. .bash_history       Downloads       Sites
  90. .bash_profile       Dropbox
  91.  
  92.  
  93. (relogin)
  94.  
  95. -bash: /Users/hoge/.rbenv/completions/rbenv.bash: No such file or directory
  96. mac:~ hoge$ cd .rbenv
  97. mac:.rbenv hoge$ ls
  98. shims       versions
  99. mac:.rbenv hoge$ mkdir completions
  100. mac:.rbenv hoge$ cd completions/
  101. mac:completions hoge$ nano rbenv.bash
  102.  
  103. (copy from https://github.com/sstephenson/rbenv/blob/master/completions/rbenv.bash)
  104.  
  105. (relogin)
  106.  
  107. mac:~ hoge$ rbenv install
  108. rbenv: no such command `install'
  109. mac:~ hoge$ brew install ruby-build
  110. ==> Installing ruby-build dependency: autoconf
  111. ==> Downloading http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
  112. ######################################################################## 100.0%
  113. ==> ./configure --prefix=/usr/local/Cellar/autoconf/2.69
  114. ==> make install
  115. ==> Caveats
  116. This formula is keg-only: so it was not symlinked into /usr/local.
  117.  
  118. Xcode (up to and including 4.2) provides (a rather old) Autoconf.
  119. ==> Summary
  120. /usr/local/Cellar/autoconf/2.69: 69 files, 2.0M, built in 19 seconds
  121. ==> Installing ruby-build dependency: pkg-config
  122. ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-
  123. ######################################################################## 100.0%
  124. ==> Pouring pkg-config-0.28.snow_leopard.bottle.tar.gz
  125. /usr/local/Cellar/pkg-config/0.28: 10 files, 648K
  126. ==> Installing ruby-build
  127. ==> Downloading https://github.com/sstephenson/ruby-build/archive/v20130408.tar.
  128. ######################################################################## 100.0%
  129. ==> ./install.sh
  130. /usr/local/Cellar/ruby-build/20130408: 75 files, 332K, built in 8 seconds
  131. mac:~ hoge$ rbenv install
  132. Usage: rbenv install [-f|--force] [-k|--keep] [-v|--verbose] <version>
  133.       rbenv install [-f|--force] [-k|--keep] [-v|--verbose] <definition-file>
  134.       rbenv install -l|--list
  135.  
  136.  -l/--list        List all available versions
  137.  -f/--force       Install even if the version appears to be installed already
  138.  -k/--keep        Keep source tree in $RBENV_BUILD_ROOT after installation
  139.                   (defaults to $RBENV_ROOT/sources)
  140.  -v/--verbose     Verbose mode: print compilation status to stdout
  141.  
  142. For detailed information on installing Ruby versions with
  143. ruby-build, including a list of environment variables for adjusting
  144. compilation, see: https://github.com/sstephenson/ruby-build#usage
  145.  
  146. mac:~ hoge$ rbenv install --list
  147. Available versions:
  148.  1.8.6-p383
  149.  1.8.6-p420
  150.  1.8.7-p249
  151.  1.8.7-p302
  152.  1.8.7-p334
  153.  1.8.7-p352
  154.  1.8.7-p357
  155.  1.8.7-p358
  156.  1.8.7-p370
  157.  1.8.7-p371
  158.  1.9.1-p378
  159.  1.9.2-p180
  160.  1.9.2-p290
  161.  1.9.2-p318
  162.  1.9.2-p320
  163.  1.9.3-dev
  164.  1.9.3-p0
  165.  1.9.3-p125
  166.  1.9.3-p194
  167.  1.9.3-p286
  168.  1.9.3-p327
  169.  1.9.3-p362
  170.  1.9.3-p374
  171.  1.9.3-p385
  172.  1.9.3-p392
  173.  1.9.3-preview1
  174.  1.9.3-rc1
  175.  2.0.0-dev
  176.  2.0.0-p0
  177.  2.0.0-preview1
  178.  2.0.0-preview2
  179.  2.0.0-rc1
  180.  2.0.0-rc2
  181.  2.1.0-dev
  182.  jruby-1.5.6
  183.  jruby-1.6.3
  184.  jruby-1.6.4
  185.  jruby-1.6.5
  186.  jruby-1.6.5.1
  187.  jruby-1.6.6
  188.  jruby-1.6.7
  189.  jruby-1.6.7.2
  190.  jruby-1.6.8
  191.  jruby-1.7.0
  192.  jruby-1.7.0-preview1
  193.  jruby-1.7.0-preview2
  194.  jruby-1.7.0-rc1
  195.  jruby-1.7.0-rc2
  196.  jruby-1.7.1
  197.  jruby-1.7.2
  198.  jruby-1.7.3
  199.  jruby-1.7.4-dev
  200.  maglev-1.0.0
  201.  maglev-1.1.0-dev
  202.  mruby-dev
  203.  rbx-1.2.4
  204.  rbx-2.0.0-dev
  205.  rbx-2.0.0-rc1
  206.  ree-1.8.6-2009.06
  207.  ree-1.8.7-2009.09
  208.  ree-1.8.7-2009.10
  209.  ree-1.8.7-2010.01
  210.  ree-1.8.7-2010.02
  211.  ree-1.8.7-2011.03
  212.  ree-1.8.7-2011.12
  213.  ree-1.8.7-2012.01
  214.  ree-1.8.7-2012.02
  215.  topaz-dev
  216. mac:~ hoge$ rbenv install 1.9.3-p392
  217. Downloading yaml-0.1.4.tar.gz...
  218. -> http://dqw8nmjcqpjn7.cloudfront.net/36c852831d02cf90508c29852361d01b
  219. Installing yaml-0.1.4...
  220. Installed yaml-0.1.4 to /Users/hoge/.rbenv/versions/1.9.3-p392
  221.  
  222. Downloading ruby-1.9.3-p392.tar.gz...
  223. -> http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
  224. Installing ruby-1.9.3-p392...
  225. Installed ruby-1.9.3-p392 to /Users/hoge/.rbenv/versions/1.9.3-p392
  226.  
  227. mac:~ hoge$ ruby -v
  228. ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin10.0]
  229. mac:~ hoge$ rbenv versions
  230. * system (set by /Users/hoge/.rbenv/version)
  231.  1.9.3-p392
  232. mac:~ hoge$ rbenv global 1.9.3-p392
  233. mac:~ hoge$ rbenv rehash
  234. mac:~ hoge$ rbenv versions
  235.  system
  236. * 1.9.3-p392 (set by /Users/hoge/.rbenv/version)
  237. mac:~ hoge$ ruby -v
  238. ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement