andyvand / gmpy

Automatically exported from code.google.com/p/gmpy
GNU Lesser General Public License v3.0
0 stars 0 forks source link

gmpy2 for macos #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
gmpy2 for macos 12.4.0 X86_64
after 
sudo port install GMP MPFR MPC
still wrong

error:
./src/gmpy.h:251:12: fatal error: 'mpfr.h' file not found

Original issue reported on code.google.com by warpte...@gmail.com on 1 Sep 2013 at 7:48

GoogleCodeExporter commented 9 years ago
Where are the files gmp.h, mpfr.h, and mpc.h located?

You will need to tell setup.py where GMP, MPFR, and MPC are located. For 
example, if the headers files are located in /usr/local/lib, then install with 
this command:

python setup.py build_ext --prefix=/opt/local --force

followed by:

sudo python setup.py install --prefix=/opt/local

If that doesn't work, can you include the complete output of the attempt to 
build gmpy2?

Issue 67 describes a similar issue. Do the troubleshooting steps there help? 

https://code.google.com/p/gmpy/issues/detail?id=67&can=1

Original comment by casevh on 2 Sep 2013 at 2:02

GoogleCodeExporter commented 9 years ago
sudo python setup.py install --prefix=/usr/local/Cellar/mpc/mpc-1.0.1

thanks 

brew default mpc version is  0.22,and do not support --with-gmp etc.
after i download latest 1.0.1
it works.

Original comment by warpte...@gmail.com on 2 Sep 2013 at 6:37

GoogleCodeExporter commented 9 years ago
Thanks for letting me know that it works.

Original comment by casevh on 3 Sep 2013 at 6:39