Skip to content
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

Installation fails step fails due to missing C header #2

Open
BenLeadbetter opened this issue Dec 23, 2021 · 6 comments
Open

Installation fails step fails due to missing C header #2

BenLeadbetter opened this issue Dec 23, 2021 · 6 comments

Comments

@BenLeadbetter
Copy link

Hardware: 2020 Macbook Pro M1
OS: Big Sur
primify-install-output.txt

The command python3 -m pip install primify fails with the attached output.

It looks like the install script is invoking clang to build some C code, but there is a missing header: gmp.h. I double checked the the gmp lib is installed on my system. I have the header on disk but clang is not being passed the correct include path so it is not found at compile time.

@UFifty50
Copy link

You need libgmp-dev, not just libgmp. Make sure you have both installed.

@LeviBorodenko
Copy link
Owner

It should be noted that gmpy2 is a completely optional dependency and that the tool will work without it - albeit many times slower.

@BenLeadbetter
Copy link
Author

@UFifty50 with brew the only option seems to be brew install gmp. This Stack Overflow thread suggests this would be sufficient. Tried it and no dice.

@LeviBorodenko Is there a flag I can pass to install without gmp?

Thanks! 😊

@MrBrain295
Copy link

I have a similar error but it is missing mpfr.h

@LeviBorodenko
Copy link
Owner

Unfortunately I am not able to recreate this problem. Maybe due to not using a Mac.
What exactly is the scale of this issue? If we can identify which os platform/version is affected, one can use setuptools to make sure that everyone else gets gymp2 by default.

@MrBrain295
Copy link

I am using a raspberry pi running Ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants