Estoy tratando de instalar el paquete ‘bigfloat‘ en mi Mac (OS X 10.8.4) y tengo algunos problemas. El paquete ‘bigfloat’ requiere otras dos dependencias: 1) mpfr, y 2) gmp.
He instalado gmp aquí: http://gmplib.org/ <- Esto parece funcionar bien.
Pero instalar mpfr no es tan fácil ( http://www.mpfr.org/mpfr-current/mpfr.html#Installing-MPFR ). Dicen que simplemente ./configure, make y make install para que funcione, pero recibo este error:
checking for gmp.h... no configure: error: gmp.h can't be found, or is unusable.
He buscado en Google y la gente sugiere especificar rutas en el comando de configuración, pero hasta ahora no he tenido suerte. ¡Cualquier ayuda sería apreciada!
Como referencia, estoy viendo mpfr-3.1.2 (ubicado en el directorio: / Users / myusername), y gmp-5.1.2 (ubicado en el mismo directorio).
¡Gracias!
Cuando compilo versiones privadas de GMP, MPFR y MPC en Linux, uso:
# Create the desired destination directory for GMP, MPFR, and MPC. $ mkdir /home/case/local # Download and un-tar the GMP source code. Change to GMP source directory and compile GMP. $ cd ~/src/gmp-5.1.0 $ ./configure --prefix=/home/case/local $ make $ make check $ make install # Download and un-tar the MPFR source code. Change to MPFR source directory and compile MPFR. $ cd ~/src/mpfr-3.1.1 $ ./configure --prefix=/home/case/local --with-gmp=/home/case/local $ make $ make check $ make install # Download and un-tar the MPC source code. Change to MPC source directory and compile MPC. $ cd ~/src/mpc-1.0.1 $ ./configure --prefix=/home/case/local --with-gmp=/home/case/local --with-mpfr=/home/case/local $ make $ make check $ make install
Creo que esas instrucciones también funcionarán en OSX.
Actualizar
Construí exitosamente bigfloat usando el comando:
py27 setup.py build_ext -I/home/case/local/include -L/home/case/local/lib -R/home/case/local/lib install
En caso de que alguien más llegue a esta página mientras intenta instalar bigfloat con pip en Mac OS X, aquí están los comandos que tuve que usar para que se instale correctamente:
brew install gmp brew install mpfr sudo pip install --global-option=build_ext --global-option="-I/usr/local/include" --global-option="-L/usr/local/lib" bigfloat
Este método requiere que tengas homebrew instalado.