Building PetSc & pytest #2753
-
Hi, I'm using homebrew Python 3.10.9 on M1 macOS 12.6. I have the following error when install PetSc:
I have the following log file: In this case, when I tried to run
I got
I saw discussion #2605 , and then I uninstall and reinstall Xcode Commend Line Tool. But I still get same error. I wonder what should I do now. Thank you so much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Please share |
Beta Was this translation helpful? Give feedback.
-
It seems that the installation of PetSc failed due to an error during the configuration step. The error message suggests that some required dependencies are missing or not properly configured. One possibility is that the installation of PetSc requires some additional system packages or libraries that are not installed on your machine. To solve the issue, you can try the following steps: Check the installation logs of PetSc for more detailed error messages. The logs should contain more information about the specific error that occurred during the configuration step. Check if any required system packages or libraries are missing by looking at the installation instructions for PetSc. You may need to install additional dependencies manually, or using a package manager like Homebrew. Try running the installation again, making sure to follow the installation instructions carefully and ensuring that all required dependencies are installed and properly configured. Regarding the second issue, it seems that the pytest command is not found on your system. This may be due to the fact that the pytest package is not installed or not in your system's PATH. To install pytest, you can use the following command: pip install pytest After installing pytest, make sure to add its location to your system's PATH environment variable so that it can be found by other commands. You can do this by adding the following line to your shell profile (e.g. .bashrc, .zshrc, etc.): export PATH="$HOME/Library/Python/3.10/bin:$PATH" Replace 3.10 with the version of Python you are using if necessary. After making this change, restart your shell or run source ~/.bashrc (or equivalent) to apply the changes. I hope this helps! |
Beta Was this translation helpful? Give feedback.
Please share
configure.log
from insidefiredrake/src/petsc
. I also notice thatbrew doctor
raises a number of warnings. I don't know if these are causing your installation to fail but they may be worth resolving.