0
我試圖在cygwin上安裝MPFR。 我成功運行「./configure --with-gmp-build = ../gmp-5.1.3」,它不會給我任何錯誤。 但是當我運行「make install」時,它會失敗,並提供以下錯誤。MPFR安裝無法找到gmp-impl.h
In file included from exceptions.c:23:0:
mpfr-impl.h:71:24: fatal error: gmp-impl.h: No such file or directory
compilation terminated.
Makefile:674: recipe for target `exceptions.lo' failed
make[2]: *** [exceptions.lo] Error 1
make[2]: Leaving directory `/cygdrive/d/chamila/mpfr-3.1.2/src'
Makefile:798: recipe for target `install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory `/cygdrive/d/chamila/mpfr-3.1.2/src'
Makefile:385: recipe for target `install-recursive' failed
make: *** [install-recursive] Error 1
我還將gmp位置添加到路徑中。這裏有什麼問題?我該如何解決這個問題?
什麼版本的MPFR?您是否嘗試使用完整路徑而不是../gmp-5.1.3?你真的需要--with-gmp-build嗎? –
mpfr-3.1.2,在./configure失敗時,我沒有給--with-gmp-build,這就是爲什麼我使用它,然後它成功了,在make也給了類似的錯誤,如不能找到gmp。 –