How to install Swig 2.0.x and PCRE on MAC OS X

Download SWIG:

curl -O

tar -xzvf swig-2.0.8.tar.gz
cd swig-2.0.8

Download PCRE and build it statically:

curl -O


Building/installing SWIG


sudo make install

How to use Python bindings from PZ (command line version)

svn checkout neopz

mkdir neopz_build
cd neopz_build
cmake ../neopz -DSWIG_EXECUTABLE=/usr/local/bin/swig -DBUILD_PYTHON_BINDING=ON

make -j2

QR Code: URL of current page
QR Code: URL of current page howto:pz_python_macosx (generated for current page)