Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2023-11-15 13:45:52

Fabrizio
Member
Registered: 2020-11-20
Posts: 56

fail Installation of : tfel 3.2.1 (aster-full-src-15.2.0)

Good morning, dear community!
Today, I am installing Code Aster on the cluster, and I am facing some difficulties. After configuring the setup.cfg file, I have been able to make significant progress. However, I am encountering a conflict while installing the tfel software. Attached is the output.

-------------------------------------------------------------------------------
Checking for dependencies and required variables for 'tfel'...         [  OK  ]

--------------------------------------------------------------------------------
Installation of   : tfel 3.2.1
  MFront is a code generator which translates a set of
   closely related domain specific languages into plain C++ on top of the
   TFEL library.
Archive filename  : tfel-3.2.1
Destination       : /home/faguzzi.ifir/CA/public/tfel-3.2.1
Working directory : /tmp/install_tfel.23892
--------------------------------------------------------------------------------

Filling cache...                                                       [  OK  ]
Checking permissions...                                                [  OK  ]

>>> Extraction <<<

entering directory '/tmp/install_tfel.23892'
Extracting tfel-3.2.1-1.tar.gz...                                      [  OK  ]
--- 7044 files extracted
leaving directory '/tmp/install_tfel.23892'

>>> Configuration <<<

entering directory '/tmp/install_tfel.23892/tfel-3.2.1'
Command line : mkdir build ; cd build ; cmake ..   -DCMAKE_BUILD_TYPE=Release   -DTFEL_SVN_REVISION=3.2.1 -DTFEL_APPEND_VERSION=3.2.1   -DCMAKE_Fortran_COMPILER=/opt/ohpc/pub/apps/software/intel-compilers/2022.1.0/compiler/2022.1.0/linux/bin/intel64/ifort   -Dlocal-castem-header=ON -Denable-fortran=OFF   -Denable-broken-boost-python-module-visibility-handling=ON   -Denable-python-bindings=ON   -Denable-cyrano=ON -Denable-aster=ON   -Ddisable-reference-doc=ON -Ddisable-website=ON   -Denable-portable-build=OFF   -DPython_ADDITIONAL_VERSIONS=3.9 -Denable-python=ON   -DPYTHON_EXECUTABLE:FILEPATH=/opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/bin/python3   -DPYTHON_LIBRARY:FILEPATH=/opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/lib/libpython3.9.so   -DPYTHON_INCLUDE_DIR:PATH=/opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9   -DCMAKE_INSTALL_PREFIX=/home/faguzzi.ifir/CA/public/tfel-3.2.1
configure tfel installation...                                         
Command output :
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is Intel 2021.6.0.20220226
-- The CXX compiler identification is Intel 2021.6.0.20220226
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/ohpc/pub/apps/software/intel-compilers/2022.1.0/compiler/2022.1.0/linux/bin/intel64/icc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/ohpc/pub/apps/software/intel-compilers/2022.1.0/compiler/2022.1.0/linux/bin/intel64/icpc - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at CMakeLists.txt:4 (cmake_policy):
  The OLD behavior for policy CMP0005 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:6 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:9 (cmake_policy):
  The OLD behavior for policy CMP0053 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Looking for include file fenv.h
-- Looking for include file fenv.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- fortran support disabled
-- flag 'Wall' disabled
-- flag '-diag-disable' disabled
-- flag 'xHost' disabled
-- flag 'ipo' disabled
-- flag 'fvisibility=hidden' disabled
-- flag 'fvisibility-inlines-hidden' disabled
-- enabling [[ noreturn ]] attribute
-- aster support enabled
-- cyrano support enabled
-- Could NOT find Gnuplot (missing: GNUPLOT_EXECUTABLE)
-- Found PythonLibs: /opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/lib/libpython3.9.so (found version "3.9.6")
-- found python          3.9.6
-- python include path   /opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9
-- python libraries path /opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/lib
-- python library        python3.9
-- Found PythonInterp: /opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/bin/python3 (found suitable version "3.9.6", minimum required is "3.9.6")
-- python interpreter    /opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/bin/python3
-- Trying to find libboost_python-py39
CMake Warning at /opt/ohpc/pub/apps/software/CMake/3.24.3-GCCcore-11.3.0/share/cmake-3.24/Modules/FindBoost.cmake:2217 (message):
  No header defined for python-py39; skipping header check (note: header-only
  libraries have no designated component)
Call Stack (most recent call first):
  CMakeLists.txt:293 (find_package)


CMake Warning at /opt/ohpc/pub/apps/software/CMake/3.24.3-GCCcore-11.3.0/share/cmake-3.24/Modules/FindBoost.cmake:2217 (message):
  No header defined for numpy-py39; skipping header check (note: header-only
  libraries have no designated component)
Call Stack (most recent call first):
  CMakeLists.txt:293 (find_package)


-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python-py39 numpy-py39) (Required is at least version "1.36.0")
-- Trying to find libboost_python39
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python39 numpy39) (Required is at least version "1.36.0")
-- Trying to find libboost_python-py3
CMake Warning at /opt/ohpc/pub/apps/software/CMake/3.24.3-GCCcore-11.3.0/share/cmake-3.24/Modules/FindBoost.cmake:2217 (message):
  No header defined for python-py3; skipping header check (note: header-only
  libraries have no designated component)
Call Stack (most recent call first):
  CMakeLists.txt:324 (find_package)


CMake Warning at /opt/ohpc/pub/apps/software/CMake/3.24.3-GCCcore-11.3.0/share/cmake-3.24/Modules/FindBoost.cmake:2217 (message):
  No header defined for numpy-py3; skipping header check (note: header-only
  libraries have no designated component)
Call Stack (most recent call first):
  CMakeLists.txt:324 (find_package)


-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python-py3 numpy-py3) (Required is at least version "1.36.0")
-- Trying to find libboost_python3
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python3 numpy3) (Required is at least version "1.36.0")
-- Trying to find libboost_python
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python numpy) (Required is at least version "1.36.0")
CMake Error at CMakeLists.txt:366 (message):
  Boost python libraries not found.

  Required packages are :


-- Configuring incomplete, errors occurred!
See also "/tmp/install_tfel.23892/tfel-3.2.1/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/install_tfel.23892/tfel-3.2.1/build/CMakeFiles/CMakeError.log".
EXIT_COMMAND_23892_00000070=1
configure tfel installation...                                         [FAILED]
Exit code : 1
CMake Warning (dev) in CMakeLists.txt:
No project() command is present.  The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command.  Add a line of
code such as

   project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is Intel 2021.6.0.20220226
-- The CXX compiler identification is Intel 2021.6.0.20220226
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/ohpc/pub/apps/software/intel-compilers/2022.1.0/compiler/2022.1.0/linux/bin/intel64/icc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/ohpc/pub/apps/software/intel-compilers/2022.1.0/compiler/2022.1.0/linux/bin/intel64/icpc - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at CMakeLists.txt:4 (cmake_policy):
The OLD behavior for policy CMP0005 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:6 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:9 (cmake_policy):
The OLD behavior for policy CMP0053 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


-- Looking for include file fenv.h
-- Looking for include file fenv.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- fortran support disabled
-- flag 'Wall' disabled
-- flag '-diag-disable' disabled
-- flag 'xHost' disabled
-- flag 'ipo' disabled
-- flag 'fvisibility=hidden' disabled
-- flag 'fvisibility-inlines-hidden' disabled
-- enabling [[ noreturn ]] attribute
-- aster support enabled
-- cyrano support enabled
-- Could NOT find Gnuplot (missing: GNUPLOT_EXECUTABLE)
-- Found PythonLibs: /opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/lib/libpython3.9.so (found version "3.9.6")
-- found python          3.9.6
-- python include path   /opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9
-- python libraries path /opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/lib
-- python library        python3.9
-- Found PythonInterp: /opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/bin/python3 (found suitable version "3.9.6", minimum required is "3.9.6")
-- python interpreter    /opt/ohpc/pub/apps/software/Python/3.9.6-GCCcore-11.2.0/bin/python3
-- Trying to find libboost_python-py39
CMake Warning at /opt/ohpc/pub/apps/software/CMake/3.24.3-GCCcore-11.3.0/share/cmake-3.24/Modules/FindBoost.cmake:2217 (message):
No header defined for python-py39; skipping header check (note: header-only
libraries have no designated component)
Call Stack (most recent call first):
CMakeLists.txt:293 (find_package)


CMake Warning at /opt/ohpc/pub/apps/software/CMake/3.24.3-GCCcore-11.3.0/share/cmake-3.24/Modules/FindBoost.cmake:2217 (message):
No header defined for numpy-py39; skipping header check (note: header-only
libraries have no designated component)
Call Stack (most recent call first):
CMakeLists.txt:293 (find_package)


-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python-py39 numpy-py39) (Required is at least version "1.36.0")
-- Trying to find libboost_python39
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python39 numpy39) (Required is at least version "1.36.0")
-- Trying to find libboost_python-py3
CMake Warning at /opt/ohpc/pub/apps/software/CMake/3.24.3-GCCcore-11.3.0/share/cmake-3.24/Modules/FindBoost.cmake:2217 (message):
No header defined for python-py3; skipping header check (note: header-only
libraries have no designated component)
Call Stack (most recent call first):
CMakeLists.txt:324 (find_package)


CMake Warning at /opt/ohpc/pub/apps/software/CMake/3.24.3-GCCcore-11.3.0/share/cmake-3.24/Modules/FindBoost.cmake:2217 (message):
No header defined for numpy-py3; skipping header check (note: header-only
libraries have no designated component)
Call Stack (most recent call first):
CMakeLists.txt:324 (find_package)


-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python-py3 numpy-py3) (Required is at least version "1.36.0")
-- Trying to find libboost_python3
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python3 numpy3) (Required is at least version "1.36.0")
-- Trying to find libboost_python
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python numpy) (Required is at least version "1.36.0")
CMake Error at CMakeLists.txt:366 (message):
Boost python libraries not found.

Required packages are :


-- Configuring incomplete, errors occurred!
See also "/tmp/install_tfel.23892/tfel-3.2.1/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/install_tfel.23892/tfel-3.2.1/build/CMakeFiles/CMakeError.log".
EXIT_COMMAND_23892_00000070=1

*** Exception raised : error during configure

--------------------------------------------------------------------------------



I hope you can help me.
Thank you very much.

Offline

#2 2023-11-22 22:23:11

Irvise
Member
From: Madrid
Registered: 2019-12-07
Posts: 162

Re: fail Installation of : tfel 3.2.1 (aster-full-src-15.2.0)

Hi Fabrizio,

I would recommend that you read the logs in more detail wink Here is the relevant part that is generating the error (most likely)

-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python-py3 numpy-py3) (Required is at least version "1.36.0")
-- Trying to find libboost_python3
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python3 numpy3) (Required is at least version "1.36.0")
-- Trying to find libboost_python
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python numpy) (Required is at least version "1.36.0")
CMake Error at CMakeLists.txt:366 (message):

TFEL/MFRONT needs the Boost libraries to be installed. If you are using a Debian based system try installing the development files with the following line:

   apt install libboost-python-dev libboost-numpy-dev libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev libboost-date-time-dev libboost-chrono-dev libboost-serialization-dev

Best regards,
Fer

Offline

#3 2023-11-30 16:30:14

Fabrizio
Member
Registered: 2020-11-20
Posts: 56

Re: fail Installation of : tfel 3.2.1 (aster-full-src-15.2.0)

Hi Fer

I found the error, basically it consisted in adding to the environment variables where the Boost libraries were.

"apt install libboost-python-dev libboost-numpy-dev libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev libboost-date-time-dev libboost-chrono-dev libboost-serialization-dev "

This is not so simple (at least on the cluster I use) since I don't have super user privileges, I had to download Boost and install independently.
Thank you very much for your answer

Offline

#4 2023-11-30 21:34:20

Irvise
Member
From: Madrid
Registered: 2019-12-07
Posts: 162

Re: fail Installation of : tfel 3.2.1 (aster-full-src-15.2.0)

That is great to hear, I am glad it helped.

Cheers,
Fer

Offline