Installing IHaskell kernel for jupyter notebooks -lgmp cannot be found by Linker









up vote
5
down vote

favorite












I'm trying to install IHaskell in jupyter, directly from instructions here.



I ran the following.



sudo apt-get install -y python3-pip git libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libmagic-dev libblas-dev liblapack-dev 
git clone https://github.com/gibiansky/IHaskell
cd IHaskell
pip3 install -r requirements.txt
stack install gtk2hs-buildtools
# stack install --fast
# ihaskell install --stack
# jupyter labextension install ihaskell_jupyterlab


I got this error on the 5th command above, the gtk2hs-buildtools one:



(envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools
Linking /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 ...
/home/me/anaconda3/envs/envname/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
`x86_64-conda_cos6-linux-gnu-cc' failed in phase `Linker'. (Exit code: 1)

-- While building simple Setup.hs using:
/home/me/.stack/programs/x86_64-linux/ghc-8.4.4/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.2.0.1 /home/me/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/me/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4
Process exited with code: ExitFailure 1


Some searching told me cannot find -lgmp is solved by:



$ sudo apt-get install libgmp3-dev


I did this. This installed successfully, but



(envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools


Still produces the same error. What's wrong and how do I fix it?



Update from scinart's suggestion



$ conda install gmp
Solving environment: done

## Package Plan ##

environment location: /home/me/anaconda3/envs/envname

added / updated specs:
- gmp


The following packages will be downloaded:

package | build
---------------------------|-----------------
openssl-1.0.2p | h470a237_1 3.1 MB conda-forge
ca-certificates-2018.10.15 | ha4d7672_0 135 KB conda-forge
certifi-2018.10.15 | py36_1000 138 KB conda-forge
gmp-6.1.2 | hfc679d8_0 676 KB conda-forge
------------------------------------------------------------
Total: 4.0 MB

The following packages will be UPDATED:

ca-certificates: 2018.03.07-0 --> 2018.10.15-ha4d7672_0 conda-forge
certifi: 2018.10.15-py36_0 --> 2018.10.15-py36_1000 conda-forge
openssl: 1.0.2p-h14c3975_0 --> 1.0.2p-h470a237_1 conda-forge

The following packages will be DOWNGRADED:

gmp: 6.1.2-h6c8ec71_1 --> 6.1.2-hfc679d8_0 conda-forge

Proceed ([y]/n)? y


Downloading and Extracting Packages
openssl-1.0.2p | 3.1 MB | ######################################################################################################################################################################################################## | 100%
ca-certificates-2018 | 135 KB | ######################################################################################################################################################################################################## | 100%
certifi-2018.10.15 | 138 KB | ######################################################################################################################################################################################################## | 100%
gmp-6.1.2 | 676 KB | ######################################################################################################################################################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done


Looks good!



(envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools
Linking /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 ...
/home/me/anaconda3/envs/envname/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
`x86_64-conda_cos6-linux-gnu-cc' failed in phase `Linker'. (Exit code: 1)

-- While building simple Setup.hs using:
/home/me/.stack/programs/x86_64-linux/ghc-8.4.4/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.2.0.1 /home/me/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/me/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4
Process exited with code: ExitFailure 1


Darn, same error as before.



So, from this, you can see I had the gmp package installed, and in fact had had a higher version. The issue seems to be that gmp cannot be found by the linker for some reason (even though it is there), so reinstalling gmp will not help.










share|improve this question

















This question has an open bounty worth +100
reputation from Mittenchops ending ending at 2018-11-17 15:48:54Z">in 8 hours.


This question has not received enough attention.


Would be cool we could get this working.



















    up vote
    5
    down vote

    favorite












    I'm trying to install IHaskell in jupyter, directly from instructions here.



    I ran the following.



    sudo apt-get install -y python3-pip git libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libmagic-dev libblas-dev liblapack-dev 
    git clone https://github.com/gibiansky/IHaskell
    cd IHaskell
    pip3 install -r requirements.txt
    stack install gtk2hs-buildtools
    # stack install --fast
    # ihaskell install --stack
    # jupyter labextension install ihaskell_jupyterlab


    I got this error on the 5th command above, the gtk2hs-buildtools one:



    (envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools
    Linking /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 ...
    /home/me/anaconda3/envs/envname/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lgmp
    collect2: error: ld returned 1 exit status
    `x86_64-conda_cos6-linux-gnu-cc' failed in phase `Linker'. (Exit code: 1)

    -- While building simple Setup.hs using:
    /home/me/.stack/programs/x86_64-linux/ghc-8.4.4/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.2.0.1 /home/me/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/me/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4
    Process exited with code: ExitFailure 1


    Some searching told me cannot find -lgmp is solved by:



    $ sudo apt-get install libgmp3-dev


    I did this. This installed successfully, but



    (envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools


    Still produces the same error. What's wrong and how do I fix it?



    Update from scinart's suggestion



    $ conda install gmp
    Solving environment: done

    ## Package Plan ##

    environment location: /home/me/anaconda3/envs/envname

    added / updated specs:
    - gmp


    The following packages will be downloaded:

    package | build
    ---------------------------|-----------------
    openssl-1.0.2p | h470a237_1 3.1 MB conda-forge
    ca-certificates-2018.10.15 | ha4d7672_0 135 KB conda-forge
    certifi-2018.10.15 | py36_1000 138 KB conda-forge
    gmp-6.1.2 | hfc679d8_0 676 KB conda-forge
    ------------------------------------------------------------
    Total: 4.0 MB

    The following packages will be UPDATED:

    ca-certificates: 2018.03.07-0 --> 2018.10.15-ha4d7672_0 conda-forge
    certifi: 2018.10.15-py36_0 --> 2018.10.15-py36_1000 conda-forge
    openssl: 1.0.2p-h14c3975_0 --> 1.0.2p-h470a237_1 conda-forge

    The following packages will be DOWNGRADED:

    gmp: 6.1.2-h6c8ec71_1 --> 6.1.2-hfc679d8_0 conda-forge

    Proceed ([y]/n)? y


    Downloading and Extracting Packages
    openssl-1.0.2p | 3.1 MB | ######################################################################################################################################################################################################## | 100%
    ca-certificates-2018 | 135 KB | ######################################################################################################################################################################################################## | 100%
    certifi-2018.10.15 | 138 KB | ######################################################################################################################################################################################################## | 100%
    gmp-6.1.2 | 676 KB | ######################################################################################################################################################################################################## | 100%
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done


    Looks good!



    (envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools
    Linking /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 ...
    /home/me/anaconda3/envs/envname/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lgmp
    collect2: error: ld returned 1 exit status
    `x86_64-conda_cos6-linux-gnu-cc' failed in phase `Linker'. (Exit code: 1)

    -- While building simple Setup.hs using:
    /home/me/.stack/programs/x86_64-linux/ghc-8.4.4/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.2.0.1 /home/me/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/me/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4
    Process exited with code: ExitFailure 1


    Darn, same error as before.



    So, from this, you can see I had the gmp package installed, and in fact had had a higher version. The issue seems to be that gmp cannot be found by the linker for some reason (even though it is there), so reinstalling gmp will not help.










    share|improve this question

















    This question has an open bounty worth +100
    reputation from Mittenchops ending ending at 2018-11-17 15:48:54Z">in 8 hours.


    This question has not received enough attention.


    Would be cool we could get this working.

















      up vote
      5
      down vote

      favorite









      up vote
      5
      down vote

      favorite











      I'm trying to install IHaskell in jupyter, directly from instructions here.



      I ran the following.



      sudo apt-get install -y python3-pip git libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libmagic-dev libblas-dev liblapack-dev 
      git clone https://github.com/gibiansky/IHaskell
      cd IHaskell
      pip3 install -r requirements.txt
      stack install gtk2hs-buildtools
      # stack install --fast
      # ihaskell install --stack
      # jupyter labextension install ihaskell_jupyterlab


      I got this error on the 5th command above, the gtk2hs-buildtools one:



      (envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools
      Linking /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 ...
      /home/me/anaconda3/envs/envname/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lgmp
      collect2: error: ld returned 1 exit status
      `x86_64-conda_cos6-linux-gnu-cc' failed in phase `Linker'. (Exit code: 1)

      -- While building simple Setup.hs using:
      /home/me/.stack/programs/x86_64-linux/ghc-8.4.4/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.2.0.1 /home/me/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/me/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4
      Process exited with code: ExitFailure 1


      Some searching told me cannot find -lgmp is solved by:



      $ sudo apt-get install libgmp3-dev


      I did this. This installed successfully, but



      (envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools


      Still produces the same error. What's wrong and how do I fix it?



      Update from scinart's suggestion



      $ conda install gmp
      Solving environment: done

      ## Package Plan ##

      environment location: /home/me/anaconda3/envs/envname

      added / updated specs:
      - gmp


      The following packages will be downloaded:

      package | build
      ---------------------------|-----------------
      openssl-1.0.2p | h470a237_1 3.1 MB conda-forge
      ca-certificates-2018.10.15 | ha4d7672_0 135 KB conda-forge
      certifi-2018.10.15 | py36_1000 138 KB conda-forge
      gmp-6.1.2 | hfc679d8_0 676 KB conda-forge
      ------------------------------------------------------------
      Total: 4.0 MB

      The following packages will be UPDATED:

      ca-certificates: 2018.03.07-0 --> 2018.10.15-ha4d7672_0 conda-forge
      certifi: 2018.10.15-py36_0 --> 2018.10.15-py36_1000 conda-forge
      openssl: 1.0.2p-h14c3975_0 --> 1.0.2p-h470a237_1 conda-forge

      The following packages will be DOWNGRADED:

      gmp: 6.1.2-h6c8ec71_1 --> 6.1.2-hfc679d8_0 conda-forge

      Proceed ([y]/n)? y


      Downloading and Extracting Packages
      openssl-1.0.2p | 3.1 MB | ######################################################################################################################################################################################################## | 100%
      ca-certificates-2018 | 135 KB | ######################################################################################################################################################################################################## | 100%
      certifi-2018.10.15 | 138 KB | ######################################################################################################################################################################################################## | 100%
      gmp-6.1.2 | 676 KB | ######################################################################################################################################################################################################## | 100%
      Preparing transaction: done
      Verifying transaction: done
      Executing transaction: done


      Looks good!



      (envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools
      Linking /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 ...
      /home/me/anaconda3/envs/envname/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lgmp
      collect2: error: ld returned 1 exit status
      `x86_64-conda_cos6-linux-gnu-cc' failed in phase `Linker'. (Exit code: 1)

      -- While building simple Setup.hs using:
      /home/me/.stack/programs/x86_64-linux/ghc-8.4.4/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.2.0.1 /home/me/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/me/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4
      Process exited with code: ExitFailure 1


      Darn, same error as before.



      So, from this, you can see I had the gmp package installed, and in fact had had a higher version. The issue seems to be that gmp cannot be found by the linker for some reason (even though it is there), so reinstalling gmp will not help.










      share|improve this question















      I'm trying to install IHaskell in jupyter, directly from instructions here.



      I ran the following.



      sudo apt-get install -y python3-pip git libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libmagic-dev libblas-dev liblapack-dev 
      git clone https://github.com/gibiansky/IHaskell
      cd IHaskell
      pip3 install -r requirements.txt
      stack install gtk2hs-buildtools
      # stack install --fast
      # ihaskell install --stack
      # jupyter labextension install ihaskell_jupyterlab


      I got this error on the 5th command above, the gtk2hs-buildtools one:



      (envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools
      Linking /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 ...
      /home/me/anaconda3/envs/envname/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lgmp
      collect2: error: ld returned 1 exit status
      `x86_64-conda_cos6-linux-gnu-cc' failed in phase `Linker'. (Exit code: 1)

      -- While building simple Setup.hs using:
      /home/me/.stack/programs/x86_64-linux/ghc-8.4.4/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.2.0.1 /home/me/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/me/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4
      Process exited with code: ExitFailure 1


      Some searching told me cannot find -lgmp is solved by:



      $ sudo apt-get install libgmp3-dev


      I did this. This installed successfully, but



      (envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools


      Still produces the same error. What's wrong and how do I fix it?



      Update from scinart's suggestion



      $ conda install gmp
      Solving environment: done

      ## Package Plan ##

      environment location: /home/me/anaconda3/envs/envname

      added / updated specs:
      - gmp


      The following packages will be downloaded:

      package | build
      ---------------------------|-----------------
      openssl-1.0.2p | h470a237_1 3.1 MB conda-forge
      ca-certificates-2018.10.15 | ha4d7672_0 135 KB conda-forge
      certifi-2018.10.15 | py36_1000 138 KB conda-forge
      gmp-6.1.2 | hfc679d8_0 676 KB conda-forge
      ------------------------------------------------------------
      Total: 4.0 MB

      The following packages will be UPDATED:

      ca-certificates: 2018.03.07-0 --> 2018.10.15-ha4d7672_0 conda-forge
      certifi: 2018.10.15-py36_0 --> 2018.10.15-py36_1000 conda-forge
      openssl: 1.0.2p-h14c3975_0 --> 1.0.2p-h470a237_1 conda-forge

      The following packages will be DOWNGRADED:

      gmp: 6.1.2-h6c8ec71_1 --> 6.1.2-hfc679d8_0 conda-forge

      Proceed ([y]/n)? y


      Downloading and Extracting Packages
      openssl-1.0.2p | 3.1 MB | ######################################################################################################################################################################################################## | 100%
      ca-certificates-2018 | 135 KB | ######################################################################################################################################################################################################## | 100%
      certifi-2018.10.15 | 138 KB | ######################################################################################################################################################################################################## | 100%
      gmp-6.1.2 | 676 KB | ######################################################################################################################################################################################################## | 100%
      Preparing transaction: done
      Verifying transaction: done
      Executing transaction: done


      Looks good!



      (envname) me@machine:~/plc/IHaskell$ stack install gtk2hs-buildtools
      Linking /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 ...
      /home/me/anaconda3/envs/envname/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lgmp
      collect2: error: ld returned 1 exit status
      `x86_64-conda_cos6-linux-gnu-cc' failed in phase `Linker'. (Exit code: 1)

      -- While building simple Setup.hs using:
      /home/me/.stack/programs/x86_64-linux/ghc-8.4.4/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.2.0.1 /home/me/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/me/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/me/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4
      Process exited with code: ExitFailure 1


      Darn, same error as before.



      So, from this, you can see I had the gmp package installed, and in fact had had a higher version. The issue seems to be that gmp cannot be found by the linker for some reason (even though it is there), so reinstalling gmp will not help.







      anaconda jupyter-notebook haskell-stack ihaskell






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 at 16:21

























      asked Nov 3 at 23:25









      Mittenchops

      6,0492161134




      6,0492161134






      This question has an open bounty worth +100
      reputation from Mittenchops ending ending at 2018-11-17 15:48:54Z">in 8 hours.


      This question has not received enough attention.


      Would be cool we could get this working.








      This question has an open bounty worth +100
      reputation from Mittenchops ending ending at 2018-11-17 15:48:54Z">in 8 hours.


      This question has not received enough attention.


      Would be cool we could get this working.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          So, the problem is that /home/me/anaconda3/.../gcc/7.3.0/bin/ld: cannot find -lgmp



          According to conda document




          the compilers and linkers do not look for system headers and libraries



          it is recommended to use conda to install them. We are actively working to make sure that conda-forge also provides these tools.




          The homepage of conda-forge is https://conda-forge.org, usage is



          conda config --add channels conda-forge
          conda install gmp


          This gmp is the same version as debian/sid libgmp3-dev, and it should build libgmp.so, see this



          Hopefully it will work.






          share|improve this answer




















          • Thank you for your help. I tried this, but same error. I'll update the question with my output since it's clearer.
            – Mittenchops
            Nov 11 at 22:08










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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',
          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%2fstackoverflow.com%2fquestions%2f53136410%2finstalling-ihaskell-kernel-for-jupyter-notebooks-lgmp-cannot-be-found-by-linker%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          So, the problem is that /home/me/anaconda3/.../gcc/7.3.0/bin/ld: cannot find -lgmp



          According to conda document




          the compilers and linkers do not look for system headers and libraries



          it is recommended to use conda to install them. We are actively working to make sure that conda-forge also provides these tools.




          The homepage of conda-forge is https://conda-forge.org, usage is



          conda config --add channels conda-forge
          conda install gmp


          This gmp is the same version as debian/sid libgmp3-dev, and it should build libgmp.so, see this



          Hopefully it will work.






          share|improve this answer




















          • Thank you for your help. I tried this, but same error. I'll update the question with my output since it's clearer.
            – Mittenchops
            Nov 11 at 22:08














          up vote
          0
          down vote













          So, the problem is that /home/me/anaconda3/.../gcc/7.3.0/bin/ld: cannot find -lgmp



          According to conda document




          the compilers and linkers do not look for system headers and libraries



          it is recommended to use conda to install them. We are actively working to make sure that conda-forge also provides these tools.




          The homepage of conda-forge is https://conda-forge.org, usage is



          conda config --add channels conda-forge
          conda install gmp


          This gmp is the same version as debian/sid libgmp3-dev, and it should build libgmp.so, see this



          Hopefully it will work.






          share|improve this answer




















          • Thank you for your help. I tried this, but same error. I'll update the question with my output since it's clearer.
            – Mittenchops
            Nov 11 at 22:08












          up vote
          0
          down vote










          up vote
          0
          down vote









          So, the problem is that /home/me/anaconda3/.../gcc/7.3.0/bin/ld: cannot find -lgmp



          According to conda document




          the compilers and linkers do not look for system headers and libraries



          it is recommended to use conda to install them. We are actively working to make sure that conda-forge also provides these tools.




          The homepage of conda-forge is https://conda-forge.org, usage is



          conda config --add channels conda-forge
          conda install gmp


          This gmp is the same version as debian/sid libgmp3-dev, and it should build libgmp.so, see this



          Hopefully it will work.






          share|improve this answer












          So, the problem is that /home/me/anaconda3/.../gcc/7.3.0/bin/ld: cannot find -lgmp



          According to conda document




          the compilers and linkers do not look for system headers and libraries



          it is recommended to use conda to install them. We are actively working to make sure that conda-forge also provides these tools.




          The homepage of conda-forge is https://conda-forge.org, usage is



          conda config --add channels conda-forge
          conda install gmp


          This gmp is the same version as debian/sid libgmp3-dev, and it should build libgmp.so, see this



          Hopefully it will work.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 10 at 17:33









          scinart

          36516




          36516











          • Thank you for your help. I tried this, but same error. I'll update the question with my output since it's clearer.
            – Mittenchops
            Nov 11 at 22:08
















          • Thank you for your help. I tried this, but same error. I'll update the question with my output since it's clearer.
            – Mittenchops
            Nov 11 at 22:08















          Thank you for your help. I tried this, but same error. I'll update the question with my output since it's clearer.
          – Mittenchops
          Nov 11 at 22:08




          Thank you for your help. I tried this, but same error. I'll update the question with my output since it's clearer.
          – Mittenchops
          Nov 11 at 22:08

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53136410%2finstalling-ihaskell-kernel-for-jupyter-notebooks-lgmp-cannot-be-found-by-linker%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

          Top Tejano songwriter Luis Silva dead of heart attack at 64

          政党

          天津地下鉄3号線