I'm attempting to install the Cantera as a python module within Ubuntu linux. For reference I used these instructions: Installing Cantera. After running ./preconfig
and make
, I get the following error:
fatal error: numarray/arrayobject.h: No such file or directory
According to the preconfig file,
# If numpy was installed using the --home option, set this to the
# home directory for numpy. This will be needed for all numpy installations
# that don't put the include files into python's native include directory.
#NUMPY_HOME=${NUMPY_HOME:="$HOME/python_packages"}
and I'm using the student version of Enthought Python Distribution so I thought maybe I need to change the last line to:
NUMPY_HOME=${NUMPY_HOME:="/usr/local/EPD/lib/python2.7/site-packages/"}
but this is not working. I still get the same error. Thoughts? I've installed python-dev to fix an earlier bug so that's not it.
I found a fix. By following these instructions that I had previously followed, I got it to work. The difference is that the last time, I downloaded the tar.gz file, and this time, I used the subversion repository, which might be more updated I guess. Anyway, it worked, and I did not need to change the default python command either.
Edit: I did need to change this from the default to:
I guess it's a good idea to also post the instructions so they're available here for other users: