DarwinPorts Quick Start
最近的项目准备在Tiger下面完成,Rails做的东西.也是用Mac半年来第一次做点正经东西,第一步配置Rails.
GNU的Readline作为安装Ruby的前置条件必须执行. 本来想通过source code的方式安装, 这时compile readline的前置条件是要安装XCode. 不过在我的系统上compile好像仍然出了一些问题.于是换DarwinPorts.
下载一个dmg安装,完事之后要想马上体验DarwinPorts的快感必须完成下面两件事中的一件:
- Logout and Login back
- $source .profile
实际上就是更新了一个环境变量$PATH, 因为Ports安装的时候给PATH加上了/opt/local/bin, 自然DarwinPorts就是安装在了/opt/local/bin
然后为Ports做一次自我升级
- $sudo port -d selfupdate
之后顺便介绍一些常用的命令
- 安装一个软件包: port install port_name
- 搜索软件包: port search ‘keyword’
- 清除软件包: port clean port_name
- port clean –all port_name
- port clean –dist port_name
- port clean –archive port_name
Tags: darwinports, OSX