Where to find “gmp.h”?

后端 未结 7 1813
梦毁少年i
梦毁少年i 2020-12-08 09:17

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         


        
相关标签:
7条回答
  • 2020-12-08 09:51

    Because it can happen that you need this library in 32 bit format for any particular reason (like it was for me)

    You will need to run (on an Ubuntu/Debian) :

    apt-get install  libgmp3-dev:i386
    

    the suffix :i386 behind any library will install the 32 bits version of it.

    0 讨论(0)
  • 2020-12-08 09:54

    On OS X (if you're using Homebrew), do this:

    brew install gmp
    
    0 讨论(0)
  • 2020-12-08 09:56

    I did a lot of research and finally I could compile hue with the following environment variables:

        export CPFLAGS="-I/usr/local/include/gmp.h -I/usr/local/opt/openssl/include"
        export CFLAGS="-I/usr/local/include/gmp.h"
        export CXXFLAGS="-I/usr/local/include/gmp.h"
        export LDFLAGS="-L/usr/local/lib -L/usr/local/opt/openssl/lib"
    
        export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
    
    0 讨论(0)
  • 2020-12-08 09:57

    you need to install libgmp3-dev

    depends on your linux

    yum install  libgmp3-dev
    
    apt-get install  libgmp3-dev
    
    0 讨论(0)
  • 2020-12-08 10:02

    For me this worked:-

    apt-get install  libgmp3-dev   (Might vary in linux distro; this is for Ubuntu)
    pip3 install gmpy --user
    
    0 讨论(0)
  • 2020-12-08 10:10

    This may sound kind of dumb: whenever I got an error , I just did : sudo apt-get install lib<name_of_library_not_found>-dev and it somehow solved the problem. Don't Know how, something to do with developer libraries or something

    0 讨论(0)
提交回复
热议问题