cantera installation on ubuntu

129 views
Skip to first unread message

refikalp...@gmail.com

unread,
Jul 4, 2021, 3:03:15 PM7/4/21
to Cantera Users' Group
Hello,

I have been trying to install cantera on ubuntu 20.04 LTS.
So far, i "git-cloned" cantera to a folder cantera on ubuntu as instructed online.

I used " scons build" and "scons test" without error. And when i try to run "scons install" i get following errors:

scons: Reading SConscript files ...
INFO: SCons is using the following Python interpreter: /usr/bin/python3
Configuration variables read from 'cantera.conf' and command line:

Checking for C++ header file cmath... (cached) yes
Checking for C++ header file fmt/ostream.h... (cached) no
INFO: Using private installation of fmt library.
INFO: Found fmt version 6.2.1
Checking for C++ header file yaml-cpp/yaml.h... (cached) no
INFO: Using private installation of yaml-cpp library.
Checking for C++ header file gtest/gtest.h... (cached) no
Checking for C++ header file gmock/gmock.h... (cached) no
INFO: Using Googletest from Git submodule
Checking for C++ header file Eigen/Dense... (cached) no
INFO: Using private installation of Eigen.
INFO: Found Eigen version 3.3.7
Checking whether __GLIBCXX__ is declared... (cached) yes
Checking whether __clang__ is declared... (cached) no
Checking for C++ library omp... (cached) no
INFO: Found Boost version 1.71
Checking whether boost::core::demangle is declared... (cached) yes
Checking for CVodeCreate(CV_BDF, CV_NEWTON) in C++ library sundials_cvodes... (cached) no
Checking for CVodeCreate(CV_BDF) in C++ library sundials_cvodes... (cached) no
Checking for double x; log(x) in C library None... (cached) no
INFO: Using private installation of Sundials version 5.3.
INFO: Using 'gfortran' to build the Fortran 90 interface
WARNING: Unexpected output while checking Python dependency versions:
| No module named 'Cython'
INFO: Using NumPy version 1.21.0.
Cython not found.
WARNING: Unable to build the full Python package because compatible versions of Python, Numpy, and Cython could not be found.
INFO: Building the minimal Python package for Python 3.8
INFO: Skipping sample openmp_ignition because 'omp.h' was not found.
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [/usr/local/include/cantera] /usr/local/include/cantera: Permission denied
scons: building terminated because of errors.

What should i do to overcome these errors ?
Can i get some light on this ?

Best regards.

Refik

Bryan Weber

unread,
Jul 4, 2021, 7:25:42 PM7/4/21
to Cantera Users' Group
Hi,

The /usr/local directories are protected from writing by normal users. You need to give yourself permission to modify those folders by using the "sudo" prefix for a command.

sudo scons install

Best,
Bryan
Reply all
Reply to author
Forward
0 new messages