<div dir="ltr"><div dir="ltr">On Thu, May 8, 2025 at 6:22 PM Juan Salazar <<a href="mailto:jp.salazar@pm.me">jp.salazar@pm.me</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank you for the feedback Matthew,<br>
<br>
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.<br></blockquote><div><br></div><div>I believe it is as David said. The dynamic linker cannot load it due to multiple paths. You should be able to see that with otool -L on the executable. Did you see his message?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div><br></div><div>Reason: tried: '/Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1/arch-darwin-c-opt/lib/libHYPRE-2.32.0.dylib' (duplicate LC_RPATH '/opt/homebrew/Cellar/open-mpi/5.0.7/lib'),</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Depending on how I reach the installation folder, the PWD variable will be set differently.<br>
<br>
Last login: Thu May 8 19:05:51 on ttys004<br>
√ ~ % cd /Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1<br>
√ petsc-3.23.1 % pwd<br>
/Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1<br>
<br>
Last login: Thu May 8 19:07:38 on ttys004<br>
√ ~ % cd ~/openfoam/jsalazar-9/ThirdParty/petsc-3.23.1<br>
√ petsc-3.23.1 % pwd<br>
/Users/jsalazar/openfoam/jsalazar-9/ThirdParty/petsc-3.23.1<br>
<br>
I noticed that within the python configure script the path is obtained invariably through the command os.getcwd().<br>
<br>
√ petsc-3.23.1 % python<br>
Python 3.12.10 (main, Apr 8 2025, 11:35:47) [Clang 16.0.0 (clang-1600.0.26.6)] on darwin<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import os<br>
>>> os.getcwd()<br>
'/Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1'<br>
<br>
This result is the same independent of how I got to the folder. <br>
<br>
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.<br>
<br>
Thanks again,<br>
Juan S.<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!b44h-sLwTGYsZVJkeoCYZpHibxlRGYKesJNr1WEgrw33x5IuPBSXOdcY-D0WcN3UZI9-iV226YQy0Jb1xo5C$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>