Mac: install MacPorts

本文提供了一个详细的步骤来安装MacPorts,包括安装Xcode及其命令行工具、同意Xcode许可、安装适合Mac操作系统的MacPorts版本以及配置环境变量。通过遵循这些步骤,用户可以顺利地在他们的Mac上设置并使用MacPorts。

Mac install MacPorts


1. Install Xcode and the Xcode Command Line Tools

2. Agree to Xcode license in Terminal

sudo xcodebuild -license

3. Install MacPorts for your version of the Mac operating system[pkg]

4. Configuration[Environment variable]

// add new line in .bash_profile
➜  ~ vi .bash_profile
export PATH=/opt/local/bin:/opt/local/sbin:$PATH

➜  ~ source .bash_profile

➜  ~ port
MacPorts 2.5.4
Entering shell mode... ("help" for help, "quit" to quit)
[Users/dijk] > exit
Goodbye
➜  ~ port version
Version: 2.5.4

https://www.macports.org/install.php
https://guide.macports.org/#installing.shell

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值