Aug 20, 2007

[Apple] Fink にチャレンジ

Fink とは

Fink は

Fink プロジェクトは オープンソースソフトウェアを Darwin と Mac OS X で使えるようにするものです。 Mac OS X 上でコンパイルと実行できるよう、 Unix ソフトウェアを修正 ("ポート") しています。 こうしてできたものは全て一つのディストリビューションに統合されます。 Fink では dpkg や apt-get などの Debian ツールを使い、バイナリパッケージ管理を行っています。 ユーザーはコンパイル済みのパッケージをダウンロードことも、すべてソースからビルドすることもできます。
というものらしい。 普段 Debian 系に慣れ親しんでいる関係で、apt が Mac OS X でも使用できたら便利だろうと思っていたので早速インストールしてみた。

Fink
http://finkproject.org/index.php

Fink のインストール

  1. ダウンロードページから Fink 0.8.1 バイナリインストーラ (Intel) をダウンロード。
  2. ダウンロードした Fink-0.8.1-Intel-Installer.dmg をマウント。
  3. Fink-0.8.1-Intel-Installer.pkg を実行。
  4. インストーラの指示に従ってインストールを行う。
  5. apt インデックスを作成する。
    $ fink scanpackages
    Information about 1723 packages read in 2 seconds.
    dpkg-scanpackages dists/local/main/binary-darwin-i386 override | gzip >dists/local/main/binary-darwin-i386/Packages.gz
     Wrote 0 entries to output Packages file.
    dpkg-scanpackages dists/stable/main/binary-darwin-i386 override | gzip >dists/stable/main/binary-darwin-i386/Packages.gz
     Wrote 0 entries to output Packages file.
    dpkg-scanpackages dists/stable/crypto/binary-darwin-i386 override | gzip >dists/stable/crypto/binary-darwin-i386/Packages.gz
     Wrote 0 entries to output Packages file.
    $ fink index
    Reading package info...
    Updating package index... done.
    $
    
  6. fink を最新バージョンにアップデート。
    $ sudo apt-get update
    Hit http://bindist.finkmirrors.net 10.4/release/main Packages
    Hit http://bindist.finkmirrors.net 10.4/release/main Release
    Hit http://bindist.finkmirrors.net 10.4/release/crypto Packages
    Hit http://bindist.finkmirrors.net 10.4/release/crypto Release
    Get:1 http://bindist.finkmirrors.net 10.4/current/main Packages [9745B]
    Hit http://bindist.finkmirrors.net 10.4/current/main Release                   
    Get:2 http://bindist.finkmirrors.net 10.4/current/crypto Packages [20B]        
    Hit http://bindist.finkmirrors.net 10.4/current/crypto Release                 
    Fetched 9765B in 6s (1461B/s)                                                  
    Reading Package Lists... Done
    Building Dependency Tree... Done
    $ sudo apt-get install fink
    Reading Package Lists... Done
    Building Dependency Tree... Done
    1 packages upgraded, 0 newly installed, 0 to remove and 13  not upgraded.
    Need to get 856kB of archives. After unpacking 4096B will be used.
    Get:1 http://bindist.finkmirrors.net 10.4/current/main fink 0.24.23-31 [856kB]
    Fetched 856kB in 5s (151kB/s)
    (Reading database ... 4131 files and directories currently installed.)
    Preparing to replace fink 0.24.17-31 (using .../fink_0.24.23-31_darwin-i386.deb) ...
    Unpacking replacement fink ...
    Setting up fink (0.24.23-31) ...
    Checking system... i386-apple-darwin8.10.1
    This system was not released at the time this Fink release was made. 
    Prerelease versions of Mac OS X might work with Fink, but there are no
    guarantees.
    Using the new 10.4 tree...
    ln -s 10.4 /sw/fink/dists
    Reading package info...
    Updating package index... done.
    
    $
    

試しに XEmacs をインストール

$ sudo apt-get clean
$ sudo apt-cache search xemacs
cssed - CSS editor
cssed-dev - CSS editor
flim - Library to provide basic features about message for Emacsen
jove - Small, fast, portable Emacs clone
mew - MIME mail reader for Emacs/XEmacs
mew-bin - MIME mail reader for Emacs/XEmacs
wl - Yet Another Message Interface on Emacsen
xemacs - Highly customizable text editor
xemacs-base-pkg - Basic files needed for xemacs package installation
xemacs-efs-pkg - Allows xemacs to fetch files from the FTP site or mirrors
xemacs-sumo-pkg - All xemacs packages together
$ sudo apt-get install xemacs
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  gdbm3-shlibs libjpeg-shlibs libpng3-shlibs libtiff-shlibs xaw3d-shlibs
  xemacs-base-pkg xemacs-efs-pkg xfree86 xfree86-shlibs 
The following NEW packages will be installed:
  gdbm3-shlibs libjpeg-shlibs libpng3-shlibs libtiff-shlibs xaw3d-shlibs
  xemacs xemacs-base-pkg xemacs-efs-pkg xfree86 xfree86-shlibs 
0 packages upgraded, 10 newly installed, 0 to remove and 13  not upgraded.
Need to get 61.4MB of archives. After unpacking 39.1MB will be used.
Do you want to continue? [Y/n] Y
Get:1 http://bindist.finkmirrors.net 10.4/release/main libjpeg-shlibs 6b-16 [73.8kB]
Get:2 http://bindist.finkmirrors.net 10.4/release/main libtiff-shlibs 3.6.1-4 [110kB]
Get:3 http://bindist.finkmirrors.net 10.4/current/main xfree86-shlibs 4.5.0-1040 [2570kB]
Get:4 http://bindist.finkmirrors.net 10.4/current/main xfree86 4.5.0-1040 [47.8MB]
Get:5 http://bindist.finkmirrors.net 10.4/release/main libpng3-shlibs 1:1.2.8-1 [207kB]
Get:6 http://bindist.finkmirrors.net 10.4/release/main gdbm3-shlibs 1.8.3-1 [42.4kB]
Get:7 http://bindist.finkmirrors.net 10.4/release/main xemacs-base-pkg 1.84-1 [481kB]
Get:8 http://bindist.finkmirrors.net 10.4/release/main xemacs-efs-pkg 1.32-1 [377kB]
Get:9 http://bindist.finkmirrors.net 10.4/release/main xaw3d-shlibs 1.5-12 [400kB]
Get:10 http://bindist.finkmirrors.net 10.4/release/main xemacs 1:21.4.15-1002 [9301kB]
Fetched 61.4MB in 6m38s (154kB/s)                                              
Selecting previously deselected package libjpeg-shlibs.
(Reading database ... 4131 files and directories currently installed.)
Unpacking libjpeg-shlibs (from .../libjpeg-shlibs_6b-16_darwin-i386.deb) ...
Selecting previously deselected package libtiff-shlibs.
Unpacking libtiff-shlibs (from .../libtiff-shlibs_3.6.1-4_darwin-i386.deb) ...
Selecting previously deselected package xfree86-shlibs.
Unpacking xfree86-shlibs (from .../xfree86-shlibs_4.5.0-1040_darwin-i386.deb) ...
Selecting previously deselected package xfree86.
Unpacking xfree86 (from .../xfree86_4.5.0-1040_darwin-i386.deb) ...
WARNING: if you compile X11 applications against this XFree86 release,
you will *not* be able to run them if you decide to revert to Apple's
X11 provided with the OS.
Selecting previously deselected package libpng3-shlibs.
Unpacking libpng3-shlibs (from .../libpng3-shlibs_1%3a1.2.8-1_darwin-i386.deb) ...
Selecting previously deselected package gdbm3-shlibs.
Unpacking gdbm3-shlibs (from .../gdbm3-shlibs_1.8.3-1_darwin-i386.deb) ...
Selecting previously deselected package xemacs-base-pkg.
Unpacking xemacs-base-pkg (from .../xemacs-base-pkg_1.84-1_darwin-i386.deb) ...
Selecting previously deselected package xemacs-efs-pkg.
Unpacking xemacs-efs-pkg (from .../xemacs-efs-pkg_1.32-1_darwin-i386.deb) ...
Selecting previously deselected package xaw3d-shlibs.
Unpacking xaw3d-shlibs (from .../xaw3d-shlibs_1.5-12_darwin-i386.deb) ...
Selecting previously deselected package xemacs.
Unpacking xemacs (from .../xemacs_1%3a21.4.15-1002_darwin-i386.deb) ...
Setting up libjpeg-shlibs (6b-16) ...
Setting up libtiff-shlibs (3.6.1-4) ...
Setting up xfree86-shlibs (4.5.0-1040) ...
Setting up xfree86 (4.5.0-1040) ...

Setting up libpng3-shlibs (1.2.8-1) ...
Setting up gdbm3-shlibs (1.8.3-1) ...
Setting up xemacs-base-pkg (1.84-1) ...
Setting up xemacs-efs-pkg (1.32-1) ...
Setting up xaw3d-shlibs (1.5-12) ...
Setting up xemacs (21.4.15-1002) ...

$ /sw/bin/xemacs

Posted in Apple | このエントリーをはてなブックマークに追加 | この記事をクリップ! livedoor クリップ |