configure: error: Unable to locate gmp.h Announcing the arrival of Valued Associate #679:...

Should man-made satellites feature an intelligent inverted "cow catcher"?

Random body shuffle every night—can we still function?

How do you cope with tons of web fonts when copying and pasting from web pages?

Is a copyright notice with a non-existent name be invalid?

Why is there so little support for joining EFTA in the British parliament?

Vertical ranges of Column Plots in 12

Did pre-Columbian Americans know the spherical shape of the Earth?

How can I list files in reverse time order by a command and pass them as arguments to another command?

Can I cut the hair of a conjured korred with a blade made of precious material to harvest that material from the korred?

Does the main washing effect of soap come from foam?

Proving that any solution to the differential equation of an oscillator can be written as a sum of sinusoids.

Why does BitLocker not use RSA?

Pointing to problems without suggesting solutions

NIntegrate on a solution of a matrix ODE

Can gravitational waves pass through a black hole?

Does the universe have a fixed centre of mass?

Keep at all times, the minus sign above aligned with minus sign below

Getting representations of the Lie group out of representations of its Lie algebra

How do Java 8 default methods hеlp with lambdas?

What is the proper term for etching or digging of wall to hide conduit of cables

How do I say "this must not happen"?

Why are current probes so expensive?

Flight departed from the gate 5 min before scheduled departure time. Refund options

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?



configure: error: Unable to locate gmp.h



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)locate doesn't find all the files it shouldhow to get rw access to mounted directory from php?libc.so.6() (64-bit) is needed by … ubuntu 11.10Python error In linuxError emerging kdepimlibs-4.9.3./configure error, on 32 bit ubuntuGLIBCXX 3.4.14 missing for Garry's Mod on CentOSgcc --as-needed linker flag not workingError executing sftp with curlLinux Mint (Ubuntu based), apache2 Configuration error: No MPM loadedMouting error bash on ubutun on Windows





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







4















Per https://stackoverflow.com/a/19894267/569976 I tried the following to no avail:




  • ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h

  • --with-gmp=/usr/include/x86_64-linux-gnu


Both of them get me this error:



configure: error: Unable to locate gmp.h


When I do ln /usr/include/x86-64-linux-gnu/ I see this:



a.out.h  asm  bits  c++  fpu_control.h  gmp.h  gnu  ieee754.h  sys


Any ideas?










share|improve this question

























  • Essentially a duplicate of superuser.com/questions/802022/….

    – Kenster
    Aug 23 '14 at 15:24











  • How is this a duplicate? The answer to that one was to do sudo updatedb and that's obviously not an answer for this one as, even after having done that, I'm still getting this error..

    – neubert
    Aug 23 '14 at 21:11











  • First of all, make sure you're using the correct path to gmp.h when you run configure or make the symlink. As in the other question, you're not being consistent about the correct pathname to the file. Next, see if configure is leaving its config.log file behind when it fails. config.log should list the specific commands that configure ran and what exactly happened.

    – Kenster
    Aug 23 '14 at 22:10











  • The path name is correct. Here's my config.log: pastebin.com/XcmqhGZr I'm not seeing any specific command mentioned..

    – neubert
    Aug 23 '14 at 23:07











  • That particular configure run appears to have failed because it was interrupted, perhaps because someone hit Ctrl-C. Maybe you could rerun configure and reproduce the error to make sure you have an accurate version of the log.

    – Kenster
    Aug 23 '14 at 23:12


















4















Per https://stackoverflow.com/a/19894267/569976 I tried the following to no avail:




  • ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h

  • --with-gmp=/usr/include/x86_64-linux-gnu


Both of them get me this error:



configure: error: Unable to locate gmp.h


When I do ln /usr/include/x86-64-linux-gnu/ I see this:



a.out.h  asm  bits  c++  fpu_control.h  gmp.h  gnu  ieee754.h  sys


Any ideas?










share|improve this question

























  • Essentially a duplicate of superuser.com/questions/802022/….

    – Kenster
    Aug 23 '14 at 15:24











  • How is this a duplicate? The answer to that one was to do sudo updatedb and that's obviously not an answer for this one as, even after having done that, I'm still getting this error..

    – neubert
    Aug 23 '14 at 21:11











  • First of all, make sure you're using the correct path to gmp.h when you run configure or make the symlink. As in the other question, you're not being consistent about the correct pathname to the file. Next, see if configure is leaving its config.log file behind when it fails. config.log should list the specific commands that configure ran and what exactly happened.

    – Kenster
    Aug 23 '14 at 22:10











  • The path name is correct. Here's my config.log: pastebin.com/XcmqhGZr I'm not seeing any specific command mentioned..

    – neubert
    Aug 23 '14 at 23:07











  • That particular configure run appears to have failed because it was interrupted, perhaps because someone hit Ctrl-C. Maybe you could rerun configure and reproduce the error to make sure you have an accurate version of the log.

    – Kenster
    Aug 23 '14 at 23:12














4












4








4








Per https://stackoverflow.com/a/19894267/569976 I tried the following to no avail:




  • ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h

  • --with-gmp=/usr/include/x86_64-linux-gnu


Both of them get me this error:



configure: error: Unable to locate gmp.h


When I do ln /usr/include/x86-64-linux-gnu/ I see this:



a.out.h  asm  bits  c++  fpu_control.h  gmp.h  gnu  ieee754.h  sys


Any ideas?










share|improve this question
















Per https://stackoverflow.com/a/19894267/569976 I tried the following to no avail:




  • ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h

  • --with-gmp=/usr/include/x86_64-linux-gnu


Both of them get me this error:



configure: error: Unable to locate gmp.h


When I do ln /usr/include/x86-64-linux-gnu/ I see this:



a.out.h  asm  bits  c++  fpu_control.h  gmp.h  gnu  ieee754.h  sys


Any ideas?







linux ubuntu php build






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 23 '17 at 12:41









Community

1




1










asked Aug 23 '14 at 15:17









neubertneubert

1,863174691




1,863174691













  • Essentially a duplicate of superuser.com/questions/802022/….

    – Kenster
    Aug 23 '14 at 15:24











  • How is this a duplicate? The answer to that one was to do sudo updatedb and that's obviously not an answer for this one as, even after having done that, I'm still getting this error..

    – neubert
    Aug 23 '14 at 21:11











  • First of all, make sure you're using the correct path to gmp.h when you run configure or make the symlink. As in the other question, you're not being consistent about the correct pathname to the file. Next, see if configure is leaving its config.log file behind when it fails. config.log should list the specific commands that configure ran and what exactly happened.

    – Kenster
    Aug 23 '14 at 22:10











  • The path name is correct. Here's my config.log: pastebin.com/XcmqhGZr I'm not seeing any specific command mentioned..

    – neubert
    Aug 23 '14 at 23:07











  • That particular configure run appears to have failed because it was interrupted, perhaps because someone hit Ctrl-C. Maybe you could rerun configure and reproduce the error to make sure you have an accurate version of the log.

    – Kenster
    Aug 23 '14 at 23:12



















  • Essentially a duplicate of superuser.com/questions/802022/….

    – Kenster
    Aug 23 '14 at 15:24











  • How is this a duplicate? The answer to that one was to do sudo updatedb and that's obviously not an answer for this one as, even after having done that, I'm still getting this error..

    – neubert
    Aug 23 '14 at 21:11











  • First of all, make sure you're using the correct path to gmp.h when you run configure or make the symlink. As in the other question, you're not being consistent about the correct pathname to the file. Next, see if configure is leaving its config.log file behind when it fails. config.log should list the specific commands that configure ran and what exactly happened.

    – Kenster
    Aug 23 '14 at 22:10











  • The path name is correct. Here's my config.log: pastebin.com/XcmqhGZr I'm not seeing any specific command mentioned..

    – neubert
    Aug 23 '14 at 23:07











  • That particular configure run appears to have failed because it was interrupted, perhaps because someone hit Ctrl-C. Maybe you could rerun configure and reproduce the error to make sure you have an accurate version of the log.

    – Kenster
    Aug 23 '14 at 23:12

















Essentially a duplicate of superuser.com/questions/802022/….

– Kenster
Aug 23 '14 at 15:24





Essentially a duplicate of superuser.com/questions/802022/….

– Kenster
Aug 23 '14 at 15:24













How is this a duplicate? The answer to that one was to do sudo updatedb and that's obviously not an answer for this one as, even after having done that, I'm still getting this error..

– neubert
Aug 23 '14 at 21:11





How is this a duplicate? The answer to that one was to do sudo updatedb and that's obviously not an answer for this one as, even after having done that, I'm still getting this error..

– neubert
Aug 23 '14 at 21:11













First of all, make sure you're using the correct path to gmp.h when you run configure or make the symlink. As in the other question, you're not being consistent about the correct pathname to the file. Next, see if configure is leaving its config.log file behind when it fails. config.log should list the specific commands that configure ran and what exactly happened.

– Kenster
Aug 23 '14 at 22:10





First of all, make sure you're using the correct path to gmp.h when you run configure or make the symlink. As in the other question, you're not being consistent about the correct pathname to the file. Next, see if configure is leaving its config.log file behind when it fails. config.log should list the specific commands that configure ran and what exactly happened.

– Kenster
Aug 23 '14 at 22:10













The path name is correct. Here's my config.log: pastebin.com/XcmqhGZr I'm not seeing any specific command mentioned..

– neubert
Aug 23 '14 at 23:07





The path name is correct. Here's my config.log: pastebin.com/XcmqhGZr I'm not seeing any specific command mentioned..

– neubert
Aug 23 '14 at 23:07













That particular configure run appears to have failed because it was interrupted, perhaps because someone hit Ctrl-C. Maybe you could rerun configure and reproduce the error to make sure you have an accurate version of the log.

– Kenster
Aug 23 '14 at 23:12





That particular configure run appears to have failed because it was interrupted, perhaps because someone hit Ctrl-C. Maybe you could rerun configure and reproduce the error to make sure you have an accurate version of the log.

– Kenster
Aug 23 '14 at 23:12










3 Answers
3






active

oldest

votes


















9














Have you tried



ls /usr/include/x86_64-linux-gnu/gmp.h


Please make sure whether the gmp.h file exists.



Maybe you should run the following command:



sudo apt-get install libgmp-dev





share|improve this answer

































    6














    just in case someone having same issue while trying to compile php via phpbrew, although /usr/include/x86_64-linux-gnu/gmp.h is definitely there and available:



    symlink for gmp.h solved this for me



    ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h





    share|improve this answer
























    • +1 This is the fix for psptoolchain it helped me to compile it.

      – mondlos
      Jan 1 '18 at 17:19



















    0














    Had the same problem in a Debian/PHP Docker container when running:



    RUN docker-php-ext-install gmp


    This fixed it for me (run it before the docker-php-ext-install command):



    RUN apt-get update && apt-get install -y libgmp-dev
    RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h





    share|improve this answer
























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f802025%2fconfigure-error-unable-to-locate-gmp-h%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      9














      Have you tried



      ls /usr/include/x86_64-linux-gnu/gmp.h


      Please make sure whether the gmp.h file exists.



      Maybe you should run the following command:



      sudo apt-get install libgmp-dev





      share|improve this answer






























        9














        Have you tried



        ls /usr/include/x86_64-linux-gnu/gmp.h


        Please make sure whether the gmp.h file exists.



        Maybe you should run the following command:



        sudo apt-get install libgmp-dev





        share|improve this answer




























          9












          9








          9







          Have you tried



          ls /usr/include/x86_64-linux-gnu/gmp.h


          Please make sure whether the gmp.h file exists.



          Maybe you should run the following command:



          sudo apt-get install libgmp-dev





          share|improve this answer















          Have you tried



          ls /usr/include/x86_64-linux-gnu/gmp.h


          Please make sure whether the gmp.h file exists.



          Maybe you should run the following command:



          sudo apt-get install libgmp-dev






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 hours ago

























          answered Nov 21 '14 at 13:23









          Haozhe XieHaozhe Xie

          19115




          19115

























              6














              just in case someone having same issue while trying to compile php via phpbrew, although /usr/include/x86_64-linux-gnu/gmp.h is definitely there and available:



              symlink for gmp.h solved this for me



              ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h





              share|improve this answer
























              • +1 This is the fix for psptoolchain it helped me to compile it.

                – mondlos
                Jan 1 '18 at 17:19
















              6














              just in case someone having same issue while trying to compile php via phpbrew, although /usr/include/x86_64-linux-gnu/gmp.h is definitely there and available:



              symlink for gmp.h solved this for me



              ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h





              share|improve this answer
























              • +1 This is the fix for psptoolchain it helped me to compile it.

                – mondlos
                Jan 1 '18 at 17:19














              6












              6








              6







              just in case someone having same issue while trying to compile php via phpbrew, although /usr/include/x86_64-linux-gnu/gmp.h is definitely there and available:



              symlink for gmp.h solved this for me



              ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h





              share|improve this answer













              just in case someone having same issue while trying to compile php via phpbrew, although /usr/include/x86_64-linux-gnu/gmp.h is definitely there and available:



              symlink for gmp.h solved this for me



              ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 14 '17 at 21:57









              MaratMarat

              19111




              19111













              • +1 This is the fix for psptoolchain it helped me to compile it.

                – mondlos
                Jan 1 '18 at 17:19



















              • +1 This is the fix for psptoolchain it helped me to compile it.

                – mondlos
                Jan 1 '18 at 17:19

















              +1 This is the fix for psptoolchain it helped me to compile it.

              – mondlos
              Jan 1 '18 at 17:19





              +1 This is the fix for psptoolchain it helped me to compile it.

              – mondlos
              Jan 1 '18 at 17:19











              0














              Had the same problem in a Debian/PHP Docker container when running:



              RUN docker-php-ext-install gmp


              This fixed it for me (run it before the docker-php-ext-install command):



              RUN apt-get update && apt-get install -y libgmp-dev
              RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h





              share|improve this answer




























                0














                Had the same problem in a Debian/PHP Docker container when running:



                RUN docker-php-ext-install gmp


                This fixed it for me (run it before the docker-php-ext-install command):



                RUN apt-get update && apt-get install -y libgmp-dev
                RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h





                share|improve this answer


























                  0












                  0








                  0







                  Had the same problem in a Debian/PHP Docker container when running:



                  RUN docker-php-ext-install gmp


                  This fixed it for me (run it before the docker-php-ext-install command):



                  RUN apt-get update && apt-get install -y libgmp-dev
                  RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h





                  share|improve this answer













                  Had the same problem in a Debian/PHP Docker container when running:



                  RUN docker-php-ext-install gmp


                  This fixed it for me (run it before the docker-php-ext-install command):



                  RUN apt-get update && apt-get install -y libgmp-dev
                  RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 11 at 13:41









                  ryuryu

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f802025%2fconfigure-error-unable-to-locate-gmp-h%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                      VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                      Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...