Home
b45ch1 edited this page Sep 13, 2010
·
21 revisions
Installation
For simplicity use ~/workspace/PyCPPAD
as root folder where everything gets installed.
You can adapt this path to fit your needs.
- Download PyCppAD
- extract files to
~/workspace/PyCPPAD
- go to the folder cppad-20081128 and do:
./configure --prefix=~/workspace/PyCPPAD
you should now have the following folders:
~/workspace/PyCPPAD/include/cppad
-
cd ~/workspace/PyCPPAD
and modifify the SConstruct file. ChangeLIBS, LIBPATH, INCLUDEPATH
to fit your system.
You shouldn’t have to change anything else. - call
scons
(scons works much the same as make. make automatically reads Makefile and scons automatically reads SConstruct)
If everything worked out, you should should have now the following file
~/workspace/PyCPPAD/release/cppad/_cppad.so
Easy example
change directory to ~/workspace/PyCPPAD/examples
and run
python simple_multiplication.py