[petsc-users] dyld[19098]: Library not loaded: @rpath/libHYPRE-2.32.0.dylib

Juan Salazar jp.salazar at pm.me
Thu May 8 17:22:04 CDT 2025


Thank you for the feedback Matthew,

I should explain why there is a difference in the path variables. I am compiling PETSc on case-sensitive Apple File System as a volume mounted at /Volume/OpenFOAM. This is because I compile OpenFOAM natively (it is developed for Linux, but with some tweaks it can be compiled on macOS). I use the PETSc library within custom OpenFOAM  applications (solvers). Therefore I install PETSc in the same volume. 

Depending on how I reach the installation folder, the PWD variable will be set differently.

Last login: Thu May  8 19:05:51 on ttys004
√ ~ % cd /Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1
√ petsc-3.23.1 % pwd
/Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1

Last login: Thu May  8 19:07:38 on ttys004
√ ~ % cd ~/openfoam/jsalazar-9/ThirdParty/petsc-3.23.1
√ petsc-3.23.1 % pwd
/Users/jsalazar/openfoam/jsalazar-9/ThirdParty/petsc-3.23.1

I noticed that within the python configure script the path is obtained invariably through the command os.getcwd().

√ petsc-3.23.1 % python
Python 3.12.10 (main, Apr  8 2025, 11:35:47) [Clang 16.0.0 (clang-1600.0.26.6)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getcwd()
'/Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1'

This result is the same independent of how I got to the folder. 

So I ran ./configure again making sure that PWD  is the same as os.getcwd(). Unfortunately this did not solve the problem. I believe the paths are consistent now.

Thanks again,
Juan S.






-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: application/octet-stream
Size: 122715 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250508/d237a6e1/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check.log
Type: application/octet-stream
Size: 30605 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250508/d237a6e1/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 11346418 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250508/d237a6e1/attachment-0005.obj>


More information about the petsc-users mailing list