Cantera Config/MountainLion SconsConfig: Difference between revisions
From charlesreid1
(Created page with "If you've already run scons, and are changing the configuration, run: <pre> rm cantera.conf </pre> before proceeding. Put the following in a script, make it executable, and ru...") |
No edit summary |
||
| Line 26: | Line 26: | ||
scons install | scons install | ||
</pre> | </pre> | ||
=Errors= | |||
==DistributionNotFound Error== | |||
If you see a DistributionNotFound error: | |||
<pre> | |||
$ ./build.sh | |||
Traceback (most recent call last): | |||
File "/Library/Frameworks/Python.framework/Versions/Current/bin/scons", line 4, in <module> | |||
import pkg_resources | |||
pkg_resources.DistributionNotFound: scons==2.3.0 | |||
</pre> | |||
The problem is likely with which scons is on your <code>$PATH</code>. I had issues installing scons with pip and with easy_install, so I installed scons directly from source. However, Python was still trying to pull in the <code>scons</code> binary that easy_isntall/pip had created, so I was getting a problem with the distribution not being found. | |||
The fix was to put the correct scons (corresponding to the version of scons I had built) on my <code>$PATH</code>. | |||
Revision as of 03:27, 14 June 2013
If you've already run scons, and are changing the configuration, run:
rm cantera.conf
before proceeding.
Put the following in a script, make it executable, and run it:
#/bin/sh
scons build \
prefix=$HOME/pkg/cantera/2.0.2 \
python_package=full \
with_html_log_files=yes \
use_sundials=y \
sundials_include=$HOME/pkg/sundials/std/include \
sundials_libdir=$HOME/pkg/sundials/std/lib \
boost_inc_dir=$HOME/pkg/boost/std \
boost_lib_dir=$HOME/pkg/boost/std \
debug=no \
graphvizdir=/usr/local/bin \
&& \
scons install
Errors
DistributionNotFound Error
If you see a DistributionNotFound error:
$ ./build.sh
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/Current/bin/scons", line 4, in <module>
import pkg_resources
pkg_resources.DistributionNotFound: scons==2.3.0
The problem is likely with which scons is on your $PATH. I had issues installing scons with pip and with easy_install, so I installed scons directly from source. However, Python was still trying to pull in the scons binary that easy_isntall/pip had created, so I was getting a problem with the distribution not being found.
The fix was to put the correct scons (corresponding to the version of scons I had built) on my $PATH.