CASMcode icon indicating copy to clipboard operation
CASMcode copied to clipboard

Failed to install

Open qingyang0315 opened this issue 4 years ago • 1 comments

When I run "bash build.sh", it always has some errors,

"./configure: line 16800: AX_CXX_COMPILE_STDCXX_17: command not found checking for boostlib >= 1.66 (106600)... yes checking whether the Boost::Filesystem library is available... yes configure: error: Could not find a version of the library!" Therefore, I run the configure mannuly, " ./configure CXX=g++-7" then new errors occur,

./include/casm/enumerator/DoFSpace.hh:61:17: error: ‘std::optional’ has not been declared std::optionalEigen::Matrix3l const ^~~~~~~~ ./include/casm/enumerator/DoFSpace.hh:61:25: error: expected ‘,’ or ‘...’ before ‘<’ token std::optionalEigen::Matrix3l const ^ ./include/casm/enumerator/DoFSpace.hh:74:8: error: ‘optional’ in namespace ‘std’ does not name a template type std::optionalEigen::Matrix3l const &transformation_matrix_to_super() const; ^~~~~~~~ ./include/casm/enumerator/DoFSpace.hh:77:8: error: ‘optional’ in namespace ‘std’ does not name a template type std::optional<std::set<Index>> const &sites() const;"

_

qingyang0315 avatar Apr 21 '21 04:04 qingyang0315

It looks like the necessary macro ax_cxx_compile_stdcxx_17.m4 is missing from the repository. Until this is updated you can download it from here and put it in build-aux/m4. Note that for 1.X we are using gcc-9.

bpuchala avatar Apr 21 '21 13:04 bpuchala