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

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

被折叠的 条评论
为什么被折叠?



