以前の記事、『「Ruby on Rails」のLionへのインストール』で、Homebrewをいれたもののそのままにしていた。しかし、本格的な整備は「MacPort」から「Homebrew」にしたいと思っている。そこで、具体的にHomebrewによる整備をし、その記録を取っていこうと考えた。
手始めに、よく使いそうなコマンドを入手してみた;
この時のターミナルの記録(treeまで);
コマンドとしては、「/usr/local/bin/」にシンボリック・リンクが作られているようだ;
ーーーー このポストの履歴
手始めに、よく使いそうなコマンドを入手してみた;
- brewのupdate
- brewで「wget 1.13.4」をインストール
- brewで「tree 1.6.0」をインストール
- brewで「nkf 2.1.2」をインストール
- brewでインストールすると;
- 「/usr/local/Cellar/」下にインストールされる。
- 自家醸造(自分でコンパイルさせて貰った)されたビール(プログラム)は酒蔵で保存するという事か。
- MacPortと違って、パスもマン・パスもセットされている。
この時のターミナルの記録(treeまで);
div-mm:/usr/local u1$ brew update
Initialized empty Git repository in /usr/local/.git/
remote: Counting objects: 55162, done.
remote: Compressing objects: 100% (25331/25331), done.
remote: Total 55162 (delta 35637), reused 46202 (delta 29115)
Receiving objects: 100% (55162/55162), 8.01 MiB | 1.30 MiB/s, done.
Resolving deltas: 100% (35637/35637), done.
From https://github.com/mxcl/homebrew
* [new branch] gh-pages -> origin/gh-pages
* [new branch] master -> origin/master
HEAD is now at b715baf synfigstudio: omit autoreconf
Already up-to-date.
div-mm:/usr/local u1$ brew install wget
==> Downloading http://ftpmirror.gnu.org/wget/wget-1.13.4.tar.bz2
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.13.4 --syscon
==> make install
/usr/local/Cellar/wget/1.13.4: 7 files, 580K, built in 42 seconds
div-mm:/usr/local u1$ ll /usr/local/Cellar/wget/1.13.4
total 264
-rw-r--r-- 1 u1 wheel 2182 1 1 2011 AUTHORS
-rw-r--r-- 1 u1 wheel 35147 5 19 2011 COPYING
-rw-r--r-- 1 u1 wheel 84592 9 4 21:18 ChangeLog
-rw-r--r-- 1 u1 admin 74 2 12 19:07 INSTALL_RECEIPT.json
-rw-r--r-- 1 u1 wheel 4064 1 1 2011 README
drwxr-xr-x 3 u1 admin 102 2 12 19:07 bin/
drwxr-xr-x 3 u1 admin 102 2 12 19:07 share/
div-mm:/usr/local u1$ brew list
node wget
div-mm:/usr/local u1$ brew home tree
div-mm:/usr/local u1$ brew install tree
==> Downloading http://mama.indstate.edu/users/ice/tree/src/tree-1.6.0.tgz
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/tree/1.6.0 MANDIR=/usr/local/Cellar/tree/1.6.
/usr/local/Cellar/tree/1.6.0: 6 files, 116K, built in 2 seconds
div-mm:/usr/local u1$ cd Cellar/
div-mm:/usr/local/Cellar u1$ tree
.
├── node
│ └── 0.6.7
│ ├── AUTHORS
│ ├── ChangeLog
│ ├── INSTALL_RECEIPT.json
│ ├── LICENSE
│ ├── README.md
│ ├── bin
│ │ ├── node
│ │ └── node-waf
│ ├── include
│ │ └── node
│ │ ├── ares.h
│ │ ├── ares_version.h
│ │ ├── c-ares
│ │ │ ├── ares.h
│ │ │ └── ares_version.h
│ │ ├── config.h
│ │ ├── ev
│ │ ├── node.h
│ │ ├── node_buffer.h
│ │ ├── node_config.h
│ │ ├── node_object_wrap.h
│ │ ├── node_version.h
│ │ ├── uv-private
│ │ │ ├── eio.h
│ │ │ ├── ev.h
│ │ │ ├── ngx-queue.h
│ │ │ ├── tree.h
│ │ │ ├── uv-unix.h
│ │ │ └── uv-win.h
│ │ ├── uv.h
│ │ ├── v8-debug.h
│ │ ├── v8-preparser.h
│ │ ├── v8-profiler.h
│ │ ├── v8-testing.h
│ │ ├── v8.h
│ │ └── v8stdint.h
│ ├── lib
│ │ └── node
│ │ └── wafadmin
│ │ ├── Build.py
│ │ ├── Configure.py
│ │ ├── Constants.py
│ │ ├── Environment.py
│ │ ├── Logs.py
│ │ ├── Node.py
│ │ ├── Options.py
│ │ ├── Runner.py
│ │ ├── Scripting.py
│ │ ├── Task.py
│ │ ├── TaskGen.py
│ │ ├── Tools
│ │ │ ├── __init__.py
│ │ │ ├── ar.py
│ │ │ ├── cc.py
│ │ │ ├── ccroot.py
│ │ │ ├── compiler_cc.py
│ │ │ ├── compiler_cxx.py
│ │ │ ├── compiler_d.py
│ │ │ ├── config_c.py
│ │ │ ├── cxx.py
│ │ │ ├── d.py
│ │ │ ├── dmd.py
│ │ │ ├── gas.py
│ │ │ ├── gcc.py
│ │ │ ├── gdc.py
│ │ │ ├── gnu_dirs.py
│ │ │ ├── gob2.py
│ │ │ ├── gxx.py
│ │ │ ├── icc.py
│ │ │ ├── icpc.py
│ │ │ ├── intltool.py
│ │ │ ├── libtool.py
│ │ │ ├── misc.py
│ │ │ ├── nasm.py
│ │ │ ├── node_addon.py
│ │ │ ├── osx.py
│ │ │ ├── preproc.py
│ │ │ ├── python.py
│ │ │ ├── suncc.py
│ │ │ ├── suncxx.py
│ │ │ ├── unittestw.py
│ │ │ ├── winres.py
│ │ │ ├── xlc.py
│ │ │ └── xlcxx.py
│ │ ├── Utils.py
│ │ ├── __init__.py
│ │ ├── ansiterm.py
│ │ ├── pproc.py
│ │ └── py3kfixes.py
│ └── share
│ └── man
│ └── man1
│ └── node.1
├── tree
│ └── 1.6.0
│ ├── CHANGES
│ ├── INSTALL_RECEIPT.json
│ ├── LICENSE
│ ├── README
│ ├── bin
│ │ └── tree
│ └── share
│ └── man
│ └── man1
│ └── tree.1
└── wget
└── 1.13.4
├── AUTHORS
├── COPYING
├── ChangeLog
├── INSTALL_RECEIPT.json
├── README
├── bin
│ └── wget
└── share
└── man
└── man1
└── wget.1
27 directories, 93 files
div-mm:/usr/local/Cellar u1$ brew list
nkf node tree wget
div-mm:/usr/local/Cellar u1$ brew info
4 kegs, 97 files, 8.5M
div-mm:/usr/local/Cellar u1$
コマンドとしては、「/usr/local/bin/」にシンボリック・リンクが作られているようだ;
div-mm:/usr/local/Cellar u1$ ll `which *` lrwxr-xr-x 1 u1 admin 27 2 12 19:52 /usr/local/bin/nkf@ -> ../Cellar/nkf/2.1.2/bin/nkf lrwxr-xr-x 1 u1 admin 29 1 19 17:37 /usr/local/bin/node@ -> ../Cellar/node/0.6.7/bin/node lrwxr-xr-x 1 u1 admin 29 2 12 19:37 /usr/local/bin/tree@ -> ../Cellar/tree/1.6.0/bin/tree lrwxr-xr-x 1 u1 admin 30 2 12 19:07 /usr/local/bin/wget@ -> ../Cellar/wget/1.13.4/bin/wget div-mm:/usr/local/Cellar u1$
マニュアルとしては、「/usr/local/share/man/」以下に、
- 直接:man1/brew.1
- シンボリック・リンク:msn1/(nkf.1, node.1, npm*.1,tree.1,wg万et.1), man3/npm-*,3
ーーーー このポストの履歴
- 開始 2012-02-14 (火) 12:41
- 追加 2012-02-14 (火) 23:48 コマンドやマニュアルの位置
0 件のコメント:
コメントを投稿