[Mac] Using Package manager
Macports
- Install the Xcode and X code command line tools
You can download it from mac appstore -
Install the macports through package installer
It may take awhile (~10 min)
Download the install from here according your macOS version
https://www.macports.org/install.php
Troubleshoot
Fix Xcodebuild is unusable
#Error: Xcode appears to be installed but xcodebuild is unusable sudo xcode-select -switch /Applications/Xcode.app
You can find the available ports (package list) in here:
https://www.macports.org/ports.php
Homebrew
- Install homebrew
run this command
#from https://brew.sh/ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You can find the available formula (package list) in here:
https://formulae.brew.sh/formula/