ハロの外部記憶インターフェイス

そろそろ覚える努力が必要かも…

Macでapt-getを使う方法

finkをインストールする

  1. XcodeにCommand Line Toolsをインストールする

QuickStartページを見るとXcodeの場合、The Command Line Tools for Xcode 4.5のインストールが必要らしい

Xcodeの「Preferences..」とり「Downloads」を選択し「Command Line Tools」をインストールする

  1. Finkをダインロードする

DownloadsのSource Releaseで最新のfinkをダウンロードしよう
http://www.finkproject.org/download/srcdist.php?phpLang=en

後はページ書いているジュンでコマンドを実行する

$ tar -xvf fink-0.34.7.tar.gz
$ cd fink-0.34.7
$ ./bootstrap

Fink must be installed and run with superuser (root) privileges. Fink can
automatically try to become root when it's run from a user account. Since
you're currently running this script as a normal user, the method you choose
will also be used immediately for this script. Available methods:

(1)	Use sudo
(2)	Use su
(3)	None, fink must be run as root

Choose a method: [1] 
....

後、PathやFirewall、リポジトリ等色々設定は基本デフォルトで行ける
結構な時間をかけてインストールを終了

完了後は下記のコマンドでfinkのPath設定を実行します

$ /sw/bin/pathsetup.sh

これで設定ファイルに/swがPathとして設定されました。ターミナルを再起動します。

後はアップデート

$ fink selfupdate
$ fink index -f
$ fink selfupdate-rsync

finkで管理しているパッケージの確認

$ fink list

これでapt-getを使ってプログラムのインストールが出来るようになりました。
でも、思ったよりずっと時間かかりますね。