Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of the latest CRPropa #500

Closed
VasundharaShaw opened this issue Aug 23, 2024 · 1 comment
Closed

Installation of the latest CRPropa #500

VasundharaShaw opened this issue Aug 23, 2024 · 1 comment

Comments

@VasundharaShaw
Copy link

Hello again,

I had managed to install CPropa3.2.1 version yesterday but I realised that it does not contain Unger and Farrar model. So I decided to install the latest version.

I ran the following command that had helped me to fix the python library path issue with my previous installation but now I get another set of new errors. I have tried passing the python path correctly but I have had no luck.
Here is the cmake command:
cmake .. -DCMAKE_INSTALL_PREFIX=/share/nas2/vshaw/CRPropa3/build/ -DPYTHON_LIBRARY=/home/vshaw/miniconda/envs/crpropa3/lib/libpython3.8.so

Thats the error message:


crpropa-env) [vshaw@galahad ~]$ cd ../../share/nas2/vshaw/CRPropa3/build/
(crpropa-env) [vshaw@galahad build]$ cmake .. \
> -DCMAKE_INSTALL_PREFIX=/share/nas2/vshaw/CRPropa3/build/ \
> -DPYTHON_EXECUTABLE=/home/vshaw/miniconda/envs/crpropa3/bin/python3.8 \
> -DPYTHON_LIBRARY=/home/vshaw/miniconda/envs/crpropa3/lib/libpython3.8.so \
> -DPython_INCLUDE_DIR=$(/home/vshaw/miniconda/envs/crpropa3/bin/python3.8 -c "from sysconfig import get_paths; print(get_paths()['include'])") \
> -DPython_NumPy_INCLUDE_DIRS=$(/home/vshaw/miniconda/envs/crpropa3/bin/python3.8 -c "import numpy; print(numpy.get_include())")
-- Use --as-needed linker flags!
With SIMD_EXTENSIONS "none" tricubic interpolation of vector grids is not possible. You should set SIMD_EXTENSION to a compatible value ("avx", "avx+fma", or -- depending on the build CPU -- "native"). Trilinear interpolation is still possible.
-- Build Type: Release
-- CRPropa version: 3.2.1-160-g3f5d189 3f5d189f0476604e842b6b383ed5074f52da944b refs/heads/master
Using provided EIGEN

-- Google perftools: NOT Found!
--   Include: GOOGLE_PERFTOOLS_INCLUDE_DIR-NOTFOUND
-- FFTW3 with single precision (FFTW3F): NOT Found!
--   Include:     FFTW3F_INCLUDE_DIR-NOTFOUND
--   Library:     FFTW3F_LIBRARY-NOTFOUND
-- muParser: NOT Found!
--   Include:     MUPARSER_INCLUDE_DIR-NOTFOUND
--   Library:     MUPARSER_LIBRARY-NOTFOUND
-- HDF5 C compiler wrapper is unable to compile a minimal HDF5 program.
-- Use absolute RPATH /share/nas2/vshaw/CRPropa3/build/lib
-- Downloading data files from sciebo ~ 73 MB
-- Extracting data file
Error copying directory from "/share/nas2/vshaw/CRPropa3/build/data-2024-04-30/data" to "/share/nas2/vshaw/CRPropa3/build/data/".
-- Build of documentation disabeled. Enable with BUILD_DOC=On
CMake Error at /home/vshaw/.local/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python (missing: Python_NumPy_INCLUDE_DIRS Development NumPy
  Development.Module Development.Embed) (found suitable version "3.10.11",
  minimum required is "3.0")
Call Stack (most recent call first):
  /home/vshaw/.local/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /home/vshaw/.local/share/cmake-3.27/Modules/FindPython/Support.cmake:3824 (find_package_handle_standard_args)
  /home/vshaw/.local/share/cmake-3.27/Modules/FindPython.cmake:574 (include)
  CMakeLists.txt:449 (find_package)


-- Configuring incomplete, errors occurred!

Thank you once again for looking into this.

@lukasmerten
Copy link
Member

This looks like one of the many linking python issues. Please have a look at older solved installation issues or talk to your local system administrator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants