Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mac:~ hoge$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
- ==> This script will install:
- /usr/local/bin/brew
- /usr/local/Library/...
- /usr/local/share/man/man1/brew.1
- Press ENTER to continue or any other key to abort
- ==> /usr/bin/sudo /bin/mkdir /usr/local
- Password:
- ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local
- ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local
- ==> Downloading and Installing Homebrew...
- ==> Installation successful!
- You should run `brew doctor' *before* you install anything.
- Now type: brew help
- mac:~ hoge$ brew doctor
- You must: brew install git
- You must: brew install git
- Warning: An outdated version of Git was detected in your PATH.
- Git 1.6.6 or newer is required to perform checkouts over HTTP from GitHub.
- Please upgrade: brew upgrade git
- mac:~ hoge$ brew install git
- ==> Downloading http://git-core.googlecode.com/files/git-1.8.2.1.tar.gz
- ######################################################################## 100.0%
- ==> make prefix=/usr/local/Cellar/git/1.8.2.1 CC=/usr/bin/gcc-4.2 CFLAGS=-Os -w
- ==> make CC=/usr/bin/gcc-4.2 CFLAGS=-Os -w -pipe -march=core2 -msse4.1 -mmacosx-
- ==> make clean
- ==> make CC=/usr/bin/gcc-4.2 CFLAGS=-Os -w -pipe -march=core2 -msse4.1 -mmacosx-
- ==> Downloading http://git-core.googlecode.com/files/git-manpages-1.8.2.1.tar.gz
- ######################################################################## 100.0%
- ==> Downloading http://git-core.googlecode.com/files/git-htmldocs-1.8.2.1.tar.gz
- ######################################################################## 100.0%
- ==> Caveats
- The OS X keychain credential helper has been installed to:
- /usr/local/bin/git-credential-osxkeychain
- The 'contrib' directory has been installed to:
- /usr/local/share/git-core/contrib
- Bash completion has been installed to:
- /usr/local/etc/bash_completion.d
- zsh completion has been installed to:
- /usr/local/share/zsh/site-functions
- ==> Summary
- /usr/local/Cellar/git/1.8.2.1: 1318 files, 27M, built in 2.7 minutes
- mac:~ hoge$ brew doctor
- Your system is ready to brew.
- mac:~ hoge$ brew --config
- HOMEBREW_VERSION: 0.9.4
- ORIGIN: (none)
- HEAD: (none)
- HOMEBREW_PREFIX: /usr/local
- HOMEBREW_CELLAR: /usr/local/Cellar
- CPU: dual-core 64-bit penryn
- OS X: 10.6.8-i386
- Xcode: 3.2.6
- GCC-4.0: build 5494
- GCC-4.2: build 5666
- LLVM-GCC: build 2335
- Clang: 1.7 build 77
- X11: 2.3.6 => /usr/X11
- System Ruby: 1.8.7-358
- Perl: /usr/bin/perl
- Python: /usr/bin/python
- Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
- mac:~ hoge$ brew install rbenv
- ==> Downloading https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz
- ######################################################################## 100.0%
- ==> Caveats
- To use Homebrew's directories rather than ~/.rbenv add to your profile:
- export RBENV_ROOT=/usr/local/var/rbenv
- To enable shims and autocompletion add to your profile:
- if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
- ==> Summary
- /usr/local/Cellar/rbenv/0.4.0: 31 files, 152K, built in 7 seconds
- mac:~ hoge$ echo 'eval "$(rbenv init -)"' >> .bash_profile
- mac:~ hoge$ echo 'source ~/.rbenv/completions/rbenv.bash' >> .bash_profile
- mac:~ hoge$ cat .bash_profile
- eval "$(rbenv init -)"
- source ~/.rbenv/completions/rbenv.bash
- mac:~ hoge$ ls -a
- . .cups Library
- .. .dropbox Movies
- .CFUserTextEncoding .ssh Music
- .DS_Store Desktop Pictures
- .Trash Documents Public
- .bash_history Downloads Sites
- .bash_profile Dropbox
- (relogin)
- -bash: /Users/hoge/.rbenv/completions/rbenv.bash: No such file or directory
- mac:~ hoge$ cd .rbenv
- mac:.rbenv hoge$ ls
- shims versions
- mac:.rbenv hoge$ mkdir completions
- mac:.rbenv hoge$ cd completions/
- mac:completions hoge$ nano rbenv.bash
- (copy from https://github.com/sstephenson/rbenv/blob/master/completions/rbenv.bash)
- (relogin)
- mac:~ hoge$ rbenv install
- rbenv: no such command `install'
- mac:~ hoge$ brew install ruby-build
- ==> Installing ruby-build dependency: autoconf
- ==> Downloading http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
- ######################################################################## 100.0%
- ==> ./configure --prefix=/usr/local/Cellar/autoconf/2.69
- ==> make install
- ==> Caveats
- This formula is keg-only: so it was not symlinked into /usr/local.
- Xcode (up to and including 4.2) provides (a rather old) Autoconf.
- ==> Summary
- /usr/local/Cellar/autoconf/2.69: 69 files, 2.0M, built in 19 seconds
- ==> Installing ruby-build dependency: pkg-config
- ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-
- ######################################################################## 100.0%
- ==> Pouring pkg-config-0.28.snow_leopard.bottle.tar.gz
- /usr/local/Cellar/pkg-config/0.28: 10 files, 648K
- ==> Installing ruby-build
- ==> Downloading https://github.com/sstephenson/ruby-build/archive/v20130408.tar.
- ######################################################################## 100.0%
- ==> ./install.sh
- /usr/local/Cellar/ruby-build/20130408: 75 files, 332K, built in 8 seconds
- mac:~ hoge$ rbenv install
- Usage: rbenv install [-f|--force] [-k|--keep] [-v|--verbose] <version>
- rbenv install [-f|--force] [-k|--keep] [-v|--verbose] <definition-file>
- rbenv install -l|--list
- -l/--list List all available versions
- -f/--force Install even if the version appears to be installed already
- -k/--keep Keep source tree in $RBENV_BUILD_ROOT after installation
- (defaults to $RBENV_ROOT/sources)
- -v/--verbose Verbose mode: print compilation status to stdout
- For detailed information on installing Ruby versions with
- ruby-build, including a list of environment variables for adjusting
- compilation, see: https://github.com/sstephenson/ruby-build#usage
- mac:~ hoge$ rbenv install --list
- Available versions:
- 1.8.6-p383
- 1.8.6-p420
- 1.8.7-p249
- 1.8.7-p302
- 1.8.7-p334
- 1.8.7-p352
- 1.8.7-p357
- 1.8.7-p358
- 1.8.7-p370
- 1.8.7-p371
- 1.9.1-p378
- 1.9.2-p180
- 1.9.2-p290
- 1.9.2-p318
- 1.9.2-p320
- 1.9.3-dev
- 1.9.3-p0
- 1.9.3-p125
- 1.9.3-p194
- 1.9.3-p286
- 1.9.3-p327
- 1.9.3-p362
- 1.9.3-p374
- 1.9.3-p385
- 1.9.3-p392
- 1.9.3-preview1
- 1.9.3-rc1
- 2.0.0-dev
- 2.0.0-p0
- 2.0.0-preview1
- 2.0.0-preview2
- 2.0.0-rc1
- 2.0.0-rc2
- 2.1.0-dev
- jruby-1.5.6
- jruby-1.6.3
- jruby-1.6.4
- jruby-1.6.5
- jruby-1.6.5.1
- jruby-1.6.6
- jruby-1.6.7
- jruby-1.6.7.2
- jruby-1.6.8
- jruby-1.7.0
- jruby-1.7.0-preview1
- jruby-1.7.0-preview2
- jruby-1.7.0-rc1
- jruby-1.7.0-rc2
- jruby-1.7.1
- jruby-1.7.2
- jruby-1.7.3
- jruby-1.7.4-dev
- maglev-1.0.0
- maglev-1.1.0-dev
- mruby-dev
- rbx-1.2.4
- rbx-2.0.0-dev
- rbx-2.0.0-rc1
- ree-1.8.6-2009.06
- ree-1.8.7-2009.09
- ree-1.8.7-2009.10
- ree-1.8.7-2010.01
- ree-1.8.7-2010.02
- ree-1.8.7-2011.03
- ree-1.8.7-2011.12
- ree-1.8.7-2012.01
- ree-1.8.7-2012.02
- topaz-dev
- mac:~ hoge$ 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 /Users/hoge/.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 /Users/hoge/.rbenv/versions/1.9.3-p392
- mac:~ hoge$ ruby -v
- ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin10.0]
- mac:~ hoge$ rbenv versions
- * system (set by /Users/hoge/.rbenv/version)
- 1.9.3-p392
- mac:~ hoge$ rbenv global 1.9.3-p392
- mac:~ hoge$ rbenv rehash
- mac:~ hoge$ rbenv versions
- system
- * 1.9.3-p392 (set by /Users/hoge/.rbenv/version)
- mac:~ hoge$ ruby -v
- ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement