svenreiche / Genesis-1.3-Version4

Time-dependent, 3D Code to simulate the amplification process of a Free-electron Laser.
GNU General Public License v3.0
53 stars 26 forks source link

[BUG] Installing genesis on mac with sudo port... doe snot work for Sonora #185

Open svenreiche opened 1 month ago

svenreiche commented 1 month ago

Describe the bug

Following the instruction to install genesis for mac causes in an error and cannot completed.

Error is the missing openmpi implementation for the hdf5 package

Error message is :

sudo port install hdf5 +openmpi

Error: Failed to configure hdf5: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/work/hdf5-1.14.4-3/config.log Error: Failed to configure hdf5: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port hdf5 failed

eugenioferrari commented 2 weeks ago

I found a workaround to compile Genesis on macOS Sonoma, although it uses homebrew package manager instead of macports.

You will need these packages installed:

brew install hdf5-mpi brew install cmake brew install pkg-config

After that, the compilation procedure works.