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

Download SWIG:

curl -O http://ufpr.dl.sourceforge.net/project/swig/swig/swig-2.0.8/swig-2.0.8.tar.gz

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

Download PCRE and build it statically:

curl -O ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gz

Tools/pcre-build.sh

Building/installing SWIG

./configure
make

sudo make install

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

svn checkout http://neopz.googlecode.com/svn/trunk/ 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)