Run WCPS On Mac Guide

From Cyber-Physical Systems Laboratory
Revision as of 03:18, 22 July 2016 by YehanMa (talk | contribs) (Created page with "==0. Upgrade to El Capitan== ==0.1 Install Xcode== <pre> If Apple store doesn't work or get stuck (which is the usual case) then install it from apple developer web page. </p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

0. Upgrade to El Capitan

0.1 Install Xcode

If Apple store doesn't work or get stuck (which is the usual case) then install it from apple developer web page.

1. Install gcc

a. Do this first: xcode-select --install
b. sudo port install gcc43
sudo port install gcc_select
port select --list gcc
sudo port select --set gcc mp-gcc43
Please reboot terminal after installing gcc.


1.1 Trouble Shooting

Error: Current platform "darwin 15" does not match expected platform "darwin 14"
Error: OS platform mismatch while executing "mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts , OS platform mismatch
---If seen the above error(s), and if you recently updated to OS X El Capitan, then please go to "https://trac.macports.org/wiki/Migration" and follow the instructions to download the command line tool (if not yet downloaded) and get the latest Xcode, reinstall new Macports base, and reinstall all your ports.
---Note that building gcc48 may take relatively long time (depends on the number of ports previously installed on the computer).
---Please do not forget to reboot terminal after finishing the above steps.
Error: The following dependencies were not installed: libgcc libgcc45
---To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port gcc43 failed
---Might need to do sudo xcodebuild -license

1.2 Check:

Successful installation of gcc43 could be checked by the command: gcc --version. If the below message is shown, then the installation is successful.