Installing on Gentoo

Gentoo sci-libs/cantera-2.4.0 package is provided using a main portage tree. Additionally the app-doc/cantera-docs package is provided for offline Documentation API reference for Cantera package libraries. Note that the Matlab interface is not available from this package; to install the Matlab interface on Gentoo, you must compile the source code.

The following interfaces and tools are installed by default:

  • C++ Libraries and header files for compiling your own programs that use Cantera.
  • CTI tools (cti USE flag, optional).
  • Python module for Python 3 (python USE flag with appropriate PYTHON_SINGLE_TARGET, optional).

The following additional interface is available:

  • Fortran Library and module files for compiling your own programs that use Cantera (fortran USE flag, optional)

More information about USE flags can be found in the Gentoo Handbook. To know about per-package control of USE flags please refer to the /etc/portage/package.use article.

To install sci-libs/cantera and app-doc/cantera-docs packages:

emerge --ask cantera cantera-docs

Most likely these packages and/or some of their dependencies still have unstable status in the Gentoo portage tree and then you have to unmask (allow to install within stable system) them preliminarily using /etc/portage/package.accept_keywords.

If /etc/portage/package.accept_keywords is present in your system as file then (for 64-bit architecture) you could unmask sci-libs/cantera package by running command (as root)

echo "sci-libs/cantera ~amd64" >> /etc/portage/package.accept_keywords

Otherwise if /etc/portage/package.accept_keywords is present in your system as directory then run command (as root)

echo "sci-libs/cantera ~amd64" >> /etc/portage/package.accept_keywords/cantera

If you plan on using Cantera from Python, you may also want to install IPython (dev-python/ipython, an advanced interactive Python interpreter) and Matplotlib (dev-python/matplotlib, a plotting library). Matplotlib is required to run some of the Python examples. These packages can be installed with:

emerge --ask ipython matplotlib