error: Command 'nvcc' not found, but can be installed with: after installing CUDA Toolkit 10.0





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I have installed cuda 10.0. I followed the procedure provided by this link but when I type the command nvcc --version it says nvcc is not installed!



Command 'nvcc' not found, but can be installed with:

sudo apt install nvidia-cuda-toolkit


I was wondering if you could help me. It has been quite a while I am struggling with having Cuda up and running. It has been failed for 4 times. I really got frustrated.



My system info is:




  • Ubuntu 18.04.2 LTS

  • GeForce GTX 1060/PCIe/SSE2


Please advise!










share|improve this question































    0















    I have installed cuda 10.0. I followed the procedure provided by this link but when I type the command nvcc --version it says nvcc is not installed!



    Command 'nvcc' not found, but can be installed with:

    sudo apt install nvidia-cuda-toolkit


    I was wondering if you could help me. It has been quite a while I am struggling with having Cuda up and running. It has been failed for 4 times. I really got frustrated.



    My system info is:




    • Ubuntu 18.04.2 LTS

    • GeForce GTX 1060/PCIe/SSE2


    Please advise!










    share|improve this question



























      0












      0








      0








      I have installed cuda 10.0. I followed the procedure provided by this link but when I type the command nvcc --version it says nvcc is not installed!



      Command 'nvcc' not found, but can be installed with:

      sudo apt install nvidia-cuda-toolkit


      I was wondering if you could help me. It has been quite a while I am struggling with having Cuda up and running. It has been failed for 4 times. I really got frustrated.



      My system info is:




      • Ubuntu 18.04.2 LTS

      • GeForce GTX 1060/PCIe/SSE2


      Please advise!










      share|improve this question
















      I have installed cuda 10.0. I followed the procedure provided by this link but when I type the command nvcc --version it says nvcc is not installed!



      Command 'nvcc' not found, but can be installed with:

      sudo apt install nvidia-cuda-toolkit


      I was wondering if you could help me. It has been quite a while I am struggling with having Cuda up and running. It has been failed for 4 times. I really got frustrated.



      My system info is:




      • Ubuntu 18.04.2 LTS

      • GeForce GTX 1060/PCIe/SSE2


      Please advise!







      software-installation 18.10 cuda






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 21 at 12:45









      Community

      1




      1










      asked Mar 21 at 0:12









      nikkinikki

      1011




      1011






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Check if nvcc is in the folder /usr/local/cuda-10.0/bin. If it is, something went wrong when you added the folder to your path, which is described in your linked manual as followed:



          echo "export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}" >> ~/.profile
          source ~/.profile


          As the manual states, after that, echo $PATH should return some folders including the one above.





          If the path and nvcc do not even exist, your installation failed. I found the installation via the .deb file very error prone and alwas suggest to install cuda from the sources, which worked for me every time on 6 different computers and Ubuntu versions without any hassle.



          Use the installation guide provided here by eromod:



          sudo add-apt-repository ppa:graphics-drivers/ppa

          sudo apt update

          sudo ubuntu-drivers autoinstall


          reboot



          sudo apt install nvidia-cuda-toolkit gcc-6

          nvcc --version





          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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%2faskubuntu.com%2fquestions%2f1127392%2ferror-command-nvcc-not-found-but-can-be-installed-with-after-installing-cud%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









            0














            Check if nvcc is in the folder /usr/local/cuda-10.0/bin. If it is, something went wrong when you added the folder to your path, which is described in your linked manual as followed:



            echo "export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}" >> ~/.profile
            source ~/.profile


            As the manual states, after that, echo $PATH should return some folders including the one above.





            If the path and nvcc do not even exist, your installation failed. I found the installation via the .deb file very error prone and alwas suggest to install cuda from the sources, which worked for me every time on 6 different computers and Ubuntu versions without any hassle.



            Use the installation guide provided here by eromod:



            sudo add-apt-repository ppa:graphics-drivers/ppa

            sudo apt update

            sudo ubuntu-drivers autoinstall


            reboot



            sudo apt install nvidia-cuda-toolkit gcc-6

            nvcc --version





            share|improve this answer




























              0














              Check if nvcc is in the folder /usr/local/cuda-10.0/bin. If it is, something went wrong when you added the folder to your path, which is described in your linked manual as followed:



              echo "export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}" >> ~/.profile
              source ~/.profile


              As the manual states, after that, echo $PATH should return some folders including the one above.





              If the path and nvcc do not even exist, your installation failed. I found the installation via the .deb file very error prone and alwas suggest to install cuda from the sources, which worked for me every time on 6 different computers and Ubuntu versions without any hassle.



              Use the installation guide provided here by eromod:



              sudo add-apt-repository ppa:graphics-drivers/ppa

              sudo apt update

              sudo ubuntu-drivers autoinstall


              reboot



              sudo apt install nvidia-cuda-toolkit gcc-6

              nvcc --version





              share|improve this answer


























                0












                0








                0







                Check if nvcc is in the folder /usr/local/cuda-10.0/bin. If it is, something went wrong when you added the folder to your path, which is described in your linked manual as followed:



                echo "export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}" >> ~/.profile
                source ~/.profile


                As the manual states, after that, echo $PATH should return some folders including the one above.





                If the path and nvcc do not even exist, your installation failed. I found the installation via the .deb file very error prone and alwas suggest to install cuda from the sources, which worked for me every time on 6 different computers and Ubuntu versions without any hassle.



                Use the installation guide provided here by eromod:



                sudo add-apt-repository ppa:graphics-drivers/ppa

                sudo apt update

                sudo ubuntu-drivers autoinstall


                reboot



                sudo apt install nvidia-cuda-toolkit gcc-6

                nvcc --version





                share|improve this answer













                Check if nvcc is in the folder /usr/local/cuda-10.0/bin. If it is, something went wrong when you added the folder to your path, which is described in your linked manual as followed:



                echo "export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}" >> ~/.profile
                source ~/.profile


                As the manual states, after that, echo $PATH should return some folders including the one above.





                If the path and nvcc do not even exist, your installation failed. I found the installation via the .deb file very error prone and alwas suggest to install cuda from the sources, which worked for me every time on 6 different computers and Ubuntu versions without any hassle.



                Use the installation guide provided here by eromod:



                sudo add-apt-repository ppa:graphics-drivers/ppa

                sudo apt update

                sudo ubuntu-drivers autoinstall


                reboot



                sudo apt install nvidia-cuda-toolkit gcc-6

                nvcc --version






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered yesterday









                Turtle10000Turtle10000

                1465




                1465






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f1127392%2ferror-command-nvcc-not-found-but-can-be-installed-with-after-installing-cud%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

                    Category:香港粉麵

                    List *all* the tuples!

                    Channel [V]