在哪里可以找到" gmp.h"? [英] Where to find "gmp.h"?
问题描述
我安装一个图书馆,并得到该错误消息:
I am installing a library, and got this error message:
xxxx@ubuntu$ make
(cd num; make all)
make[1]: Entering directory `/home/xxxx/num'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/xxxx/num'
(cd itv; make all)
make[1]: Entering directory `/home/xxxx/itv'
gcc -Wcast-qual -Wswitch -Werror-implicit-function-declaration -Wall -Wextra -Wundef -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wno-unused -std=c99 -U__STRICT_ANSI__ -O3 -DNDEBUG -I../num -I../apron -I/usr/include -I/usr/include -DNUM_MPQ -c -o itvMPQ.o itv.c
In file included from itv.h:9:0,
from itv.c:5:
../num/num.h:15:17: fatal error: gmp.h: No such file or directory
compilation terminated.
make[1]: *** [itvMPQ.o] Error 1
make[1]: Leaving directory `/home/xxxx/itv'
make: *** [c] Error 2
所以,问题是,它无法找到 gmp.h
,有没有人知道这个文件的位置,以及如何使它由安装程序发现了什么?顺便说一下,此刻我的的Makefile
主要指向的/ usr
和的/ usr /当地
...
So the problem is that it can not find gmp.h
, does anyone know where this file is located, and how to make it found by the installer? By the way, at the moment my Makefile
points mainly to /usr
and /usr/local
...
EDIT1 :安装完成后 libgmp3-dev的
的建议,目前的错误信息 ../ NUM / NUM .H:16:18:致命错误:mpfr.h:没有这样的文件或目录
,没有人知道它是关于哪个包
Edit1: After installing libgmp3-dev
as suggested, the current error message is ../num/num.h:16:18: fatal error: mpfr.h: No such file or directory
, does anyone know which package it is about?
EDIT2 :我已经安装了 MPFR
通过以下方法的page ,这确实帮助,现在该错误信息是 gmp_caml.c:17:33:致命错误:CAML / camlidlruntime.h:否这样的文件或目录
,任何人都可以帮忙吗?
Edit2: I have installed MPFR
by following this page, and that did help, now the error message is gmp_caml.c:17:33: fatal error: caml/camlidlruntime.h: No such file or directory
, could anyone help?
EDIT3 :我已经做了的apt-文件搜索camlidlruntime
,并返回 camlidl:/ usr / lib目录/ ocaml的/ CAML / camlidlruntime.h
,但没有 camlidlruntime.h
在我的文件夹 / usr / lib目录/ ocaml的/ CAML /
,我怎么能检查是否我已经安装了 MPFR
的开发包?它是哪个包究竟什么?
Edit3: I have done apt-file search camlidlruntime
, and it returns camlidl: /usr/lib/ocaml/caml/camlidlruntime.h
, but there is no camlidlruntime.h
in my folder /usr/lib/ocaml/caml/
, how could I check if I have installed dev package of MPFR
? and which package it is exactly about?
推荐答案
您需要安装
libgmp3-dev的
you need to install libgmp3-dev
取决于你的linux
depends on your linux
yum install libgmp3-dev
apt-get install libgmp3-dev
这篇关于在哪里可以找到" gmp.h"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!