2015年8月11日火曜日

[Mac] MacPorts をインストール

Mac OS X Yosemite にMacPortsをインストールした際のメモです(最近では,Homebrewが人気のようですが...).

以前はソースコードからのビルドでしたが,今ではパッケージ版からインストールが可能です.

まずは,"Xcode"と,"Command Line Tools"をインストールします.
App Store.appから,Xcodeを選択してインストール(Apple IDの入力等が必要)し,ライセンス認証等を済ませます.
Command Line Toolsはターミナルから
$ sudo xcode-select --install
とすればインストールが可能です.

続いて,MacPorts 公式ページから,OS Xのバージョンに合ったパッケージをダウンロードします.
ダウンロードしたpkgファイルをダブルクリックしてインストーラーを起動します.
インストールは,インストーラーの案内に従って,"Continue"等をクリックするだけで完了します.

MacPortsのパッケージリストを更新します.
更新する際には,ターミナルから以下のように入力します.
$ sudo port -dv selfupdate
すると,以下のように表示され,アップデートが終了します.
$ sudo port -dv selfupdate
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
--->  Updating MacPorts base sources using rsync
receiving file list ... done
base.tar

sent 31276 bytes  received 230131 bytes  74687.71 bytes/sec
total size is 27013120  speedup is 103.34
receiving file list ... done
base.tar.rmd160

sent 64 bytes  received 635 bytes  466.00 bytes/sec
total size is 512  speedup is 0.73
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base.tar
MacPorts base version 2.3.4 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.3.4 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
DEBUG: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
ports.tar

sent 55673 bytes  received 112 bytes  22314.00 bytes/sec
total size is 63047680  speedup is 1130.19
DEBUG: /usr/bin/rsync -rtzv --delete-after  rsync://rsync.macports.org/release/tarballs/ports.tar.rmd160 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done
ports.tar.rmd160

sent 64 bytes  received 117 bytes  72.40 bytes/sec
total size is 512  speedup is 2.83
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports.tar
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports

Total number of ports parsed:
Ports successfully parsed:
Ports failed:
Up-to-date ports skipped: 24993

--->  MacPorts base is already the latest version
DEBUG: Setting MacPorts sources ownership to root

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

(Macportsのセルフアップデートや,インストールしたパッケージのアップデートに関する投稿はこちら

0 件のコメント :

コメントを投稿