On Mac OS X, you can use the following instructions to install the latest version of nds2-client
with the MacPorts package manager.
$ sudo port selfupdate
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
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
$ sudo port select --set python python27
This should print the message:
Selecting 'python27' for 'python' succeeded. 'python27' is now active.