Boost libraries?

827 views
Skip to first unread message

Steven DeCaluwe

unread,
Nov 30, 2016, 4:51:57 PM11/30/16
to <cantera-users@googlegroups.com>
Okay, basic question, here - I’m trying to update my cantera installation, and keep getting the following error:

scons: Reading SConscript files ...
INFO: SCons is using the following Python interpreter: /usr/local/opt/python/bin/python2.7
Configuration variables read from 'cantera.conf' and command line:
    matlab_path = '/Applications/Matlab_R2012a.app'
    sundials_include = '/usr/include/sundials/include'
    sundials_libdir = '/usr/include/sundials/lib'

Checking for C++ header file cmath... yes
Checking for C++ header file fmt/ostream.h... no
INFO: Using private installation of fmt library.
Checking for C++ header file gtest/gtest.h... no
Checking for C++ header file Eigen/Dense... no
Checking for C header file sys/times.h... yes
Checking for C header file unistd.h... yes
Checking whether __GLIBCXX__ is declared... no
Checking whether _LIBCPP_VERSION is declared... yes
INFO: Found Boost version ''
ERROR: Boost could not be found. Install Boost headers or set 'boost_inc_dir' to point to the boost headers.
See 'config.log' for details.



This occurs whether I download the source code and build from scons, or build using homebrew (“brew install cantera --HEAD --with-matlab=/Applications/MATLAB_R2012a.app/ --without-sundials”).

A little confounding, since the installation instructions no longer mention needing boost, but even when I download and reinstall boost, it is not remedied.

Thanks for any help,
Steven


——————————————————————————————————
Steven DeCaluwe, PhD
Assistant Professor of Mechanical Engineering
Colorado School of Mines
Golden, CO 80401

Twitter: @DrDeCaluwe

Santosh Shanbhogue

unread,
Nov 30, 2016, 7:00:52 PM11/30/16
to Cantera Users' Group
I had the same issue on my Mac (for the most recent cantera build) and I downloaded boost via homebrew and included this in the cantera.conf file:

boost_inc_dir = '/opt/local/include'

Hope this works for you as well

Santosh

Bryan W. Weber

unread,
Nov 30, 2016, 7:02:36 PM11/30/16
to Cantera Users' Group
Steven,

The dev-docs (which are relevant for the HEAD commit) do mention that Boost is required: http://cantera.github.io/dev-docs/sphinx/html/compiling.html#other-required-software Can you send a link to the docs you're looking at, to make sure we've caught all the required places?

How did you install Boost? You'll need to set boost_inc_dir in cantera.conf to point to the include directory where the header files got installed.

Best,
Bryan


On Wednesday, November 30, 2016 at 4:51:57 PM UTC-5, S. DeCaluwe wrote:

Ray Speth

unread,
Dec 1, 2016, 12:37:00 AM12/1/16
to Cantera Users' Group
Steven,

If you install Boost using Homebrew (making sure that it is 'linked', not just in the 'Cellar'), it should be in /usr/local/include (not /opt/), in which case it should be on the default search path of the compiler and you should not need to specify boost_inc_dir. You can double-check that /usr/local/include is on the search path by running:

clang++ -E -x c++ - -v < /dev/null

and making sure that '/usr/local/include' appears in the list toward the end of the output from this command.

Right now, installing the development version of Cantera using Homebrew (using hte --HEAD option) is broken because Homebrew installs an old version of Cython that doesn't work with the current version of Cantera as part of the build process. I have already filed a Pull Request to fix that, so this should work again once that has been merged.

Regards,
Ray

Steven DeCaluwe

unread,
Dec 1, 2016, 12:44:13 AM12/1/16
to <cantera-users@googlegroups.com>
Thanks for the update, Ray - I think I've been struggling with that very issue, the past 10-20 minutes (mixing and matching homebrew builds but then trying to build cantera from the source code… currently running into cython problems).

Boost is in fact in /usr/local/include, but the Homebrew install wasn't finding it (even when I added the link in my 'cantera.conf' file).  I'm guessing perhaps I didn't link it in Homebrew?  Not sure - 'brew doctor' does not indicate any problems, but knowing that the Homebrew install of the development version is currently broken, I'm not going to worry about that, at the moment, and just re-start the whole process from the source code.

Thanks again, to you, Bryan, and Santosh.
Steven



On Nov 30, 2016, at 10:37 PM, Ray Speth <yar...@gmail.com>
 wrote:

--
You received this message because you are subscribed to the Google Groups "Cantera Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-user...@googlegroups.com.
To post to this group, send email to canter...@googlegroups.com.
Visit this group at https://groups.google.com/group/cantera-users.
For more options, visit https://groups.google.com/d/optout.

Steven DeCaluwe

unread,
Dec 1, 2016, 1:41:37 AM12/1/16
to <cantera-users@googlegroups.com>
FYI - uninstalled and re-installed cython using pip, and the install from source code went smoothly, after that.

Thanks, all, for your help.

Steven
Reply all
Reply to author
Forward
0 new messages