Joel Andersson edited this page May 6, 2015 · 1 revision

Getting the dependencies via Macports (legacy instructions, no longer updated)

The following are instructions on how to install the dependencies you need for CasADi via Macports. These instructions are no longer updated and are known to fail on newer OS X. The recommended approach is to instead use Homebrew.

  • Install Macports from the website
  • Update macports using sudo port -v selfupdate and sudo port upgrade outdated
  • Install dependencies (takes a long time!):
    • sudo port install wget python27 py27-ipython gcc47 py27-numpy py27-scipy py27-matplotlib git swig cmake py27-spyder
  • Select Python and GCC installation:
    • sudo port select --set ipython ipython27
    • sudo port select --set python python27
    • sudo port select --set gcc mp-gcc47
  • Copy the following lines to ~/.profile in order to get Spyder working
    • export LANG=en_US.UTF-8
    • export LC_CTYPE=en_US.UTF-8
  • Close the terminal and open up a new one
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.