-
Notifications
You must be signed in to change notification settings - Fork 11
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
PETSc Example cannot be run on macOS 14.5 due to Library not loaded: libX11.6.dylib #272
Comments
In order to help, we will need to know more about the system you are working on. Looking at the error message it appears that there is a missing |
The system is macOS Sonoma 14.5. How should I install that file separately? I installed petsc using this from the instructions: |
Unfortunately we don't have a lot of people who use Macs. @eslickj @adowling2 @Robbybp @bknueven Would one of you be able to provide any insight on this? |
Have you tried |
I haven't seen this before, but also haven't updated to MacOS 14. Have you tried this on MacOS 13? |
This is just a guess from my side, but could the machine architecture (ARM/Apple Silicon vs Intel) be relevant here? As of today, I'm not sure of the extent to which macOS is supported by the various subcomponents of the IDAES extensions. |
I just used I don't think it's possible to revert my system back to 13 as it came with 14 and I didn't do the update myself. @lbianchi-lbl I don't know if machine architecture is the issue but this does have an M2 chip so you may be onto something. Is there anything I can do to check? |
If you have the the |
I do have macOS 14.5 with an ARM chip. But I cannot reproduce this issue. I have attached the output of EDIT: Further, I cannot find the missing library in the places the error message says it looks. |
I've had to use LD PATH to get solver executables to work when not doing import idaes on an M1-Mac. |
After searching the issue a bit more, adding the |
Maybe adding the flag mentioned here to the configuration of the build will help: |
I think you can use |
idaes-ext/scripts/compile_solvers.sh Line 472 in 67ab6e4
That’s the section that copies the dependencies from homebrew. X11 isn’t there. And I don’t think it was previously a dependency, but i guess license permitting it could be added. Get-extensions has a —release option. You could try to go back to previous releases to see if they work. |
@fahim831 another option to try instead of copying the file is to make a symbolic link. (I'm posting here in case someone in the future comes across this issue.) |
I am trying to run the simplest PETSc example. However, on the line where I call
petsc.petsc_dae_by_time_element
, I get an error message. I have tried runningbrew install xquartz --cask
and restarting my computer as well but keep getting the below error message:By the way, I can solve DAEs with pyomo.dae outside of IDAES right now.
The text was updated successfully, but these errors were encountered: