1:安装brew
http://brew.sh/index_zh-cn.html[softdeMacBook-Pro:~ softsun$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
==> The following directories will have their owner set to softsun:
/usr/local/.
/usr/local/bin
==> The following directories will have their group set to admin:
/usr/local/.
/usr/local/bin
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
==> /usr/bin/sudo /usr/sbin/chown softsun /usr/local/. /usr/local/bin
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/bin
==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown softsun /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 492, done.
remote: Compressing objects: 100% (446/446), done.
remote: Total 492 (delta 27), reused 301 (delta 17), pack-reused 0
Receiving objects: 100% (492/492), 770.46 KiB | 136.00 KiB/s, done.
Resolving deltas: 100% (27/27), done.
From https://github.com/Homebrew/brew
* [new branch] master -> origin/master
HEAD is now at e1f0dec update.sh: developers always run update-report.
==> Tapping homebrew/core
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 3709, done.
remote: Compressing objects: 100% (3592/3592), done.
remote: Total 3709 (delta 13), reused 2351 (delta 8), pack-reused 0
Receiving objects: 100% (3709/3709), 2.88 MiB | 183.00 KiB/s, done.
Resolving deltas: 100% (13/13), done.
Checking connectivity... done.
Tapped 3587 formulae (3,735 files, 8.9M)
==> Installation successful!
==> Next steps
Run `brew help` to get started
Further documentation: https://git.io/brew-docs
==> Homebrew has enabled anonymous aggregate user behaviour analytics
Read the analytics documentation (and how to opt-out) here:
https://git.io/brew-analytics
2:安装ICE
softdeMacBook-Pro:~ softsun$ brew install ice --with-java ==> Installing dependencies for ice: mcpp ==> Installing ice dependency: mcpp ==> Downloading https://homebrew.bintray.com/bottles/mcpp-2.7.2.el_capitan.bottl ######################################################################## 100.0% ==> Pouring mcpp-2.7.2.el_capitan.bottle.tar.gz