2010年4月5日星期一
Macports安装和使用
安装:
1、安装xcode。
Apple's Xcode Developer Tools (version 3.2.1 or later for Snow Leopard, 3.1.4 or later for Leopard, or 2.5 for Tiger), found at the Apple Developer Connection site or on your Mac OS X installation CDs/DVD. Ensure that the optional components for command line development are installed("Unix Development" in the Xcode 3.x installer).
2、安装X11 windowing environment。
The X11 windowing environment (A.K.A. “X11 User”) for ports that depend on the functionality it provides to run. The “X11 User” package is an optional installation on your system CDs/DVD for Tiger, enabled through the “Customize” button of the installer, whereas it is included by default on Leopard and Snow Leopard.(leopard和雪豹默认安装)
You can use the xorg-server port instead of Apple's X11.app if you wish.
3、在http://www.macports.org/上下载最新版本的macports的dmg文件。打开后是一个.pkg,进行安装。
使用:
查看所有安装的ports,并导出
MacBook-Pro:~ woody$ sudo port install lame
Password:
---> Computing dependencies for lame
---> Fetching lame
---> Attempting to fetch lame-398-2.tar.gz from http://distfiles.macports.org/lame
---> Verifying checksum(s) for lame
---> Extracting lame
---> Configuring lame
---> Building lame
---> Staging lame into destroot
---> Installing lame @3.98.2_1
---> Activating lame @3.98.2_1
---> Cleaning lame
1、安装xcode。
Apple's Xcode Developer Tools (version 3.2.1 or later for Snow Leopard, 3.1.4 or later for Leopard, or 2.5 for Tiger), found at the Apple Developer Connection site or on your Mac OS X installation CDs/DVD. Ensure that the optional components for command line development are installed("Unix Development" in the Xcode 3.x installer).
2、安装X11 windowing environment。
The X11 windowing environment (A.K.A. “X11 User”) for ports that depend on the functionality it provides to run. The “X11 User” package is an optional installation on your system CDs/DVD for Tiger, enabled through the “Customize” button of the installer, whereas it is included by default on Leopard and Snow Leopard.(leopard和雪豹默认安装)
You can use the xorg-server port instead of Apple's X11.app if you wish.
3、在http://www.macports.org/上下载最新版本的macports的dmg文件。打开后是一个.pkg,进行安装。
使用:
基本命令:
更新所有的过期ports
port upgrade outdated
更新ports
$sudo -v port selfupdate
搜索软件
$port search 软件名
安装新软件
$sudo port install 软件名
卸载软件
$sudo port uninstall 软件名
升级软件
$sudo port upgrade 软件
名查看所有安装的ports,并导出
$port -qv installed > myports.txt
卸载所有安装的ports
$sudo port -fp uninstall --follow-dependents installed示例:
MacBook-Pro:~ woody$ sudo port install lame
Password:
---> Computing dependencies for lame
---> Fetching lame
---> Attempting to fetch lame-398-2.tar.gz from http://distfiles.macports.org/lame
---> Verifying checksum(s) for lame
---> Extracting lame
---> Configuring lame
---> Building lame
---> Staging lame into destroot
---> Installing lame @3.98.2_1
---> Activating lame @3.98.2_1
---> Cleaning lame
标签: macports install, use
订阅 博文 [Atom]