-
Notifications
You must be signed in to change notification settings - Fork 0
Installing on macOS
This section is intended to guide digitalsats open source team members on installing the GMAT development virtual machine using Vagrant on macOS. It assumes nothing other than macOS has been installed.
Unfortunately, one of the prerequisites, XCode, required an Apple Developer License until macOS release 10.9 Mavericks. Unless the team member has an active Apple Developer License, macOS 10.9 is the minimum release that can be used.
Our Vagrant box has five prerequisites, XCode, Homebrew, a git client, Virtual Box and Vagrant. To install these, log into your macOS machine as a user that has administrative capabilities.
Check to see if XCode is already installed by invoking Launchpad, then type xcode in Launchpad's search bar. If XCode is already installed, skip to the Install XCode Command Line Tools section.
XCode can take several hours to install, even on a fast network, so be prepared. If you do not have XCode installed:
- Start the App Store.
- Find XCode
- Install it. (As previously noted, be prepared to do something else for a few hours.)
Open the Terminal App and enter:
sudo xcode-select --install
If the XCode Command Line Tools are already installed, an error message will appear.
brew --version
If HomeBrew is installed, it will display its version.
If you do not have HomeBrew installed:
Open the Terminal App and enter:
ruby -e "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/master/install>)"
You will see messages in the Terminal explaining what you need to do to complete the installation process.
If you already have Homebrew installed, enter:
brew update
brew upgrade
to update HomeBrew.
git is often installed as part of the XCode command line tools package. To see if git has been installed enter in the terminal app, enter:
git --version
If git is installed, skip to the VirtualBox section.
See Git Client, above.
To install Virtual Box with HomeBrew, enter:
brew cask install virtualbox
brew cask install virtualbox-extension-pack
in a terminal window.
Vagrant does not use the Virtual Box GUI, but uses the VboxManage command, instead.
Verify the installation by entering:
vboxmanage –-version
Verify Virtual Box can run a virtual machine by entering:
vboxmanage createvm --name temporary --ostype Ubuntu_64 --register
vboxmanage startvm temporary --type headless
Look for the message:
VM "temporary" has been successfully started
Delete the temporary VM by issuing the following commands:
vboxmanage controlvm temporary poweroff
vboxmanage unregistervm --delete temporary
Enter:
brew cask install vagrant
Verify vagrant is installed by entering:
vagrant --version
The version should match the version downloaded from the Vagrant web site.
Congratulations, you have installed Vagrant on your macOS machine. Please skip to the section on obtaining the digitalsats/gmat2020a_box repository