Installing with MacPorts

On Mac OS X, you can use the following instructions to install the latest version of nds2-client with the MacPorts package manager.

  1. If you do not already have MacPorts, download and install the latest version of MacPorts for your version of Mac OS.
  2. Make sure that your MacPorts installation is up to date by running:
    $ sudo port selfupdate
  3. Finally, install the nds2-client port with the MEX interface for Octave and SWIG interfaces for all supported languages with:
    $ sudo port install nds2-client
    Alternatively, you can manually choose which features to enable by manually selecting specific MacPorts variants. For example, the above is equivalent to:
    $ sudo port install nds2-client +mex_octave +swig_python27 +swig_octave +swig_java
    $ sudo port install py27-nds2-client
    You can replace +swig_python27 with +swig_python25, +swig_python26, etc., to enable the Python language interface for different versions of the Python interpreter. You can also use -swig_python27, -swig_octave, or -swig_java to disable the Python, Octave, or Java/MATALB interfaces, respectively. If you have MATLAB installed, you can also build the legacy MEX interface for MATLAB using MacPorts by enabling the mex_matlab variant:
    $ sudo port install nds2-client +mex_matlab
  4. Optional: If you installed the Python language interface, you may want to make the Python interpreter supplied by MacPorts the default interpreter, using the following command:
    $ sudo port select --set python python27
    This should print the message:
    Selecting 'python27' for 'python' succeeded. 'python27' is now active.