nvcc --version command says nvcc is not installednvcc compiler setup Ubuntu 12.04Nvcc -v fails but CUDA 7.0 installed and nvcc presentnvcc: Command not find after installed nvidia-cuda-dev on ubuntu 16.04Cannot compile CUDA program using nvcc remotelyNvidia nvcc -v not installedFinding NVCC on ServerIs my Cuda installation a mess?Nvidia-smi shows CUDA version, but CUDA is not installederror: Command 'nvcc' not found, but can be installed with: after installing CUDA Toolkit 10.0

Is there any conceivable way to "turn off" a star?

What are the possible punishments for an impeached USA president?

Students requesting to switch partners mid term

Why give an android emotions?

Is economics a science?

Could a chess engine do retro analysis?

How much would we learn from observing an FTL starship fly by?

Can we really detect the difference between a couple of BPMs?

Is there a guide/reference for possible character hairstyles in D&D Forgotten Realms universe?

Anacruses, Bar Lines, and Line Breaks

Does a buffer overflow vulnerability always mean a code execution vulnerability?

What does it mean when we say 'The difference between two quantities is of first order'?

Finding a solution to a linear program with a small number of zeros

Aliens kill as an art form, surprised that humans don't appreciate

How long must a passport be valid when visiting Brazil as a US citizen?

Multiple pdf outputs from one single .tex file

Is it possible to write Quake's fast InvSqrt() function in Rust?

Was X17 predicted before it was observed?

If the second hand goes backwards, starting from 12:00, how long does it take to meet with the minute hand?

How do you say "to play Devil's advocate" in German?

Is it possible to trap yourself in the Nether?

What milk and yoghurt is the best for mango lassi?

What's the name of this windows feature?

Clockwise matrix rotation



nvcc --version command says nvcc is not installed


nvcc compiler setup Ubuntu 12.04Nvcc -v fails but CUDA 7.0 installed and nvcc presentnvcc: Command not find after installed nvidia-cuda-dev on ubuntu 16.04Cannot compile CUDA program using nvcc remotelyNvidia nvcc -v not installedFinding NVCC on ServerIs my Cuda installation a mess?Nvidia-smi shows CUDA version, but CUDA is not installederror: 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;









9


















I have installed cuda8.0,the latest version .I followed the procedure provided by Nvidia but when I type the command nvcc --version it says nvcc is not installed!





What do I do now?










share|improve this question

























  • do a which nvcc see if it returns any thing...

    – George Udosen
    Feb 21 '17 at 4:45











  • No it didnt return

    – user6889367
    Feb 21 '17 at 4:46











  • That means it didn't install well or is not in your PATH, find where it is with whereis nvcc..

    – George Udosen
    Feb 21 '17 at 4:49












  • it only displayed "nvcc: "

    – user6889367
    Feb 21 '17 at 4:56











  • Close and launch terminal and try nvcc --version to be sure

    – George Udosen
    Feb 21 '17 at 5:01

















9


















I have installed cuda8.0,the latest version .I followed the procedure provided by Nvidia but when I type the command nvcc --version it says nvcc is not installed!





What do I do now?










share|improve this question

























  • do a which nvcc see if it returns any thing...

    – George Udosen
    Feb 21 '17 at 4:45











  • No it didnt return

    – user6889367
    Feb 21 '17 at 4:46











  • That means it didn't install well or is not in your PATH, find where it is with whereis nvcc..

    – George Udosen
    Feb 21 '17 at 4:49












  • it only displayed "nvcc: "

    – user6889367
    Feb 21 '17 at 4:56











  • Close and launch terminal and try nvcc --version to be sure

    – George Udosen
    Feb 21 '17 at 5:01













9













9









9


5






I have installed cuda8.0,the latest version .I followed the procedure provided by Nvidia but when I type the command nvcc --version it says nvcc is not installed!





What do I do now?










share|improve this question














I have installed cuda8.0,the latest version .I followed the procedure provided by Nvidia but when I type the command nvcc --version it says nvcc is not installed!





What do I do now?







16.04 cuda






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 21 '17 at 4:32









user6889367user6889367

1031 gold badge1 silver badge4 bronze badges




1031 gold badge1 silver badge4 bronze badges















  • do a which nvcc see if it returns any thing...

    – George Udosen
    Feb 21 '17 at 4:45











  • No it didnt return

    – user6889367
    Feb 21 '17 at 4:46











  • That means it didn't install well or is not in your PATH, find where it is with whereis nvcc..

    – George Udosen
    Feb 21 '17 at 4:49












  • it only displayed "nvcc: "

    – user6889367
    Feb 21 '17 at 4:56











  • Close and launch terminal and try nvcc --version to be sure

    – George Udosen
    Feb 21 '17 at 5:01

















  • do a which nvcc see if it returns any thing...

    – George Udosen
    Feb 21 '17 at 4:45











  • No it didnt return

    – user6889367
    Feb 21 '17 at 4:46











  • That means it didn't install well or is not in your PATH, find where it is with whereis nvcc..

    – George Udosen
    Feb 21 '17 at 4:49












  • it only displayed "nvcc: "

    – user6889367
    Feb 21 '17 at 4:56











  • Close and launch terminal and try nvcc --version to be sure

    – George Udosen
    Feb 21 '17 at 5:01
















do a which nvcc see if it returns any thing...

– George Udosen
Feb 21 '17 at 4:45





do a which nvcc see if it returns any thing...

– George Udosen
Feb 21 '17 at 4:45













No it didnt return

– user6889367
Feb 21 '17 at 4:46





No it didnt return

– user6889367
Feb 21 '17 at 4:46













That means it didn't install well or is not in your PATH, find where it is with whereis nvcc..

– George Udosen
Feb 21 '17 at 4:49






That means it didn't install well or is not in your PATH, find where it is with whereis nvcc..

– George Udosen
Feb 21 '17 at 4:49














it only displayed "nvcc: "

– user6889367
Feb 21 '17 at 4:56





it only displayed "nvcc: "

– user6889367
Feb 21 '17 at 4:56













Close and launch terminal and try nvcc --version to be sure

– George Udosen
Feb 21 '17 at 5:01





Close and launch terminal and try nvcc --version to be sure

– George Udosen
Feb 21 '17 at 5:01










3 Answers
3






active

oldest

votes


















27



















The problem is [ based on the link you provided] you haven't added it the .bashrc. file so it can be seen:




  1. From the terminal:



    nano /home/username/.bashrc

    # or

    nano /home/$USER/.bashrc



  2. Inside there add the following:



    export PATH=/usr/local/cuda-8.0/bin$PATH:+:$PATH$ 
    export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH



  3. Then do the following to save and close the editor:



    On you keyboard press the following: 

    ctrl + o --> save
    enter or return key --> accept changes
    ctrl + x --> close editor


  4. Now either do source .bashrc or close and open another terminal


  5. Now run nvcc --version


Information:




  • .bashrc: is the file read by the terminal before opening and its found in the /home/$USER diretory of the user in question.

  • the . before the file means its hidden from view unless you instruct you file manager to show hidden files





share|improve this answer


































    4



















    The above solution by @George Udosen is fine. If you want to save the manual procedure, you can automize it by the following:



    1.create a file "add_to_bashrc"



    export CUDA_HOME=/usr/local/cuda
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
    export PATH=$PATH:$CUDA_HOME/bin


    2.create a shell script "automate.sh":



    (... some installation procedure ...)



    cat add_to_bashrc >> ~/.bashrc
    . .~/.bashrc


    Then you just need to run your shell script



    sh automate.sh





    share|improve this answer


































      0



















      The answer from @George Udosen is perfect.



      Just for increment it, you can also export to /usr/local/cuda which is a symbolic link to /usr/local/cuda-10.1, based on this answer. So, you can also write:



      export PATH=/usr/local/cuda/bin$PATH:+:$PATH$ 
      export LD_LIBRARY_PATH=/usr/local/cuda/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH





      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/4.0/"u003ecc by-sa 4.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%2f885610%2fnvcc-version-command-says-nvcc-is-not-installed%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









        27



















        The problem is [ based on the link you provided] you haven't added it the .bashrc. file so it can be seen:




        1. From the terminal:



          nano /home/username/.bashrc

          # or

          nano /home/$USER/.bashrc



        2. Inside there add the following:



          export PATH=/usr/local/cuda-8.0/bin$PATH:+:$PATH$ 
          export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH



        3. Then do the following to save and close the editor:



          On you keyboard press the following: 

          ctrl + o --> save
          enter or return key --> accept changes
          ctrl + x --> close editor


        4. Now either do source .bashrc or close and open another terminal


        5. Now run nvcc --version


        Information:




        • .bashrc: is the file read by the terminal before opening and its found in the /home/$USER diretory of the user in question.

        • the . before the file means its hidden from view unless you instruct you file manager to show hidden files





        share|improve this answer































          27



















          The problem is [ based on the link you provided] you haven't added it the .bashrc. file so it can be seen:




          1. From the terminal:



            nano /home/username/.bashrc

            # or

            nano /home/$USER/.bashrc



          2. Inside there add the following:



            export PATH=/usr/local/cuda-8.0/bin$PATH:+:$PATH$ 
            export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH



          3. Then do the following to save and close the editor:



            On you keyboard press the following: 

            ctrl + o --> save
            enter or return key --> accept changes
            ctrl + x --> close editor


          4. Now either do source .bashrc or close and open another terminal


          5. Now run nvcc --version


          Information:




          • .bashrc: is the file read by the terminal before opening and its found in the /home/$USER diretory of the user in question.

          • the . before the file means its hidden from view unless you instruct you file manager to show hidden files





          share|improve this answer





























            27















            27











            27









            The problem is [ based on the link you provided] you haven't added it the .bashrc. file so it can be seen:




            1. From the terminal:



              nano /home/username/.bashrc

              # or

              nano /home/$USER/.bashrc



            2. Inside there add the following:



              export PATH=/usr/local/cuda-8.0/bin$PATH:+:$PATH$ 
              export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH



            3. Then do the following to save and close the editor:



              On you keyboard press the following: 

              ctrl + o --> save
              enter or return key --> accept changes
              ctrl + x --> close editor


            4. Now either do source .bashrc or close and open another terminal


            5. Now run nvcc --version


            Information:




            • .bashrc: is the file read by the terminal before opening and its found in the /home/$USER diretory of the user in question.

            • the . before the file means its hidden from view unless you instruct you file manager to show hidden files





            share|improve this answer
















            The problem is [ based on the link you provided] you haven't added it the .bashrc. file so it can be seen:




            1. From the terminal:



              nano /home/username/.bashrc

              # or

              nano /home/$USER/.bashrc



            2. Inside there add the following:



              export PATH=/usr/local/cuda-8.0/bin$PATH:+:$PATH$ 
              export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH



            3. Then do the following to save and close the editor:



              On you keyboard press the following: 

              ctrl + o --> save
              enter or return key --> accept changes
              ctrl + x --> close editor


            4. Now either do source .bashrc or close and open another terminal


            5. Now run nvcc --version


            Information:




            • .bashrc: is the file read by the terminal before opening and its found in the /home/$USER diretory of the user in question.

            • the . before the file means its hidden from view unless you instruct you file manager to show hidden files






            share|improve this answer















            share|improve this answer




            share|improve this answer








            edited Jun 16 '18 at 19:17

























            answered Feb 21 '17 at 5:39









            George UdosenGeorge Udosen

            25.2k11 gold badges61 silver badges82 bronze badges




            25.2k11 gold badges61 silver badges82 bronze badges


























                4



















                The above solution by @George Udosen is fine. If you want to save the manual procedure, you can automize it by the following:



                1.create a file "add_to_bashrc"



                export CUDA_HOME=/usr/local/cuda
                export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
                export PATH=$PATH:$CUDA_HOME/bin


                2.create a shell script "automate.sh":



                (... some installation procedure ...)



                cat add_to_bashrc >> ~/.bashrc
                . .~/.bashrc


                Then you just need to run your shell script



                sh automate.sh





                share|improve this answer































                  4



















                  The above solution by @George Udosen is fine. If you want to save the manual procedure, you can automize it by the following:



                  1.create a file "add_to_bashrc"



                  export CUDA_HOME=/usr/local/cuda
                  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
                  export PATH=$PATH:$CUDA_HOME/bin


                  2.create a shell script "automate.sh":



                  (... some installation procedure ...)



                  cat add_to_bashrc >> ~/.bashrc
                  . .~/.bashrc


                  Then you just need to run your shell script



                  sh automate.sh





                  share|improve this answer





























                    4















                    4











                    4









                    The above solution by @George Udosen is fine. If you want to save the manual procedure, you can automize it by the following:



                    1.create a file "add_to_bashrc"



                    export CUDA_HOME=/usr/local/cuda
                    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
                    export PATH=$PATH:$CUDA_HOME/bin


                    2.create a shell script "automate.sh":



                    (... some installation procedure ...)



                    cat add_to_bashrc >> ~/.bashrc
                    . .~/.bashrc


                    Then you just need to run your shell script



                    sh automate.sh





                    share|improve this answer
















                    The above solution by @George Udosen is fine. If you want to save the manual procedure, you can automize it by the following:



                    1.create a file "add_to_bashrc"



                    export CUDA_HOME=/usr/local/cuda
                    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
                    export PATH=$PATH:$CUDA_HOME/bin


                    2.create a shell script "automate.sh":



                    (... some installation procedure ...)



                    cat add_to_bashrc >> ~/.bashrc
                    . .~/.bashrc


                    Then you just need to run your shell script



                    sh automate.sh






                    share|improve this answer















                    share|improve this answer




                    share|improve this answer








                    edited Apr 9 '18 at 14:57

























                    answered Apr 9 '18 at 10:30









                    Agile BeanAgile Bean

                    2011 silver badge4 bronze badges




                    2011 silver badge4 bronze badges
























                        0



















                        The answer from @George Udosen is perfect.



                        Just for increment it, you can also export to /usr/local/cuda which is a symbolic link to /usr/local/cuda-10.1, based on this answer. So, you can also write:



                        export PATH=/usr/local/cuda/bin$PATH:+:$PATH$ 
                        export LD_LIBRARY_PATH=/usr/local/cuda/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH





                        share|improve this answer





























                          0



















                          The answer from @George Udosen is perfect.



                          Just for increment it, you can also export to /usr/local/cuda which is a symbolic link to /usr/local/cuda-10.1, based on this answer. So, you can also write:



                          export PATH=/usr/local/cuda/bin$PATH:+:$PATH$ 
                          export LD_LIBRARY_PATH=/usr/local/cuda/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH





                          share|improve this answer



























                            0















                            0











                            0









                            The answer from @George Udosen is perfect.



                            Just for increment it, you can also export to /usr/local/cuda which is a symbolic link to /usr/local/cuda-10.1, based on this answer. So, you can also write:



                            export PATH=/usr/local/cuda/bin$PATH:+:$PATH$ 
                            export LD_LIBRARY_PATH=/usr/local/cuda/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH





                            share|improve this answer














                            The answer from @George Udosen is perfect.



                            Just for increment it, you can also export to /usr/local/cuda which is a symbolic link to /usr/local/cuda-10.1, based on this answer. So, you can also write:



                            export PATH=/usr/local/cuda/bin$PATH:+:$PATH$ 
                            export LD_LIBRARY_PATH=/usr/local/cuda/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH






                            share|improve this answer













                            share|improve this answer




                            share|improve this answer










                            answered Sep 20 at 12:41









                            Rodrigo VimieiroRodrigo Vimieiro

                            113 bronze badges




                            113 bronze badges































                                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%2f885610%2fnvcc-version-command-says-nvcc-is-not-installed%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

                                Tamil (spriik) Luke uk diar | Nawigatjuun

                                Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                                Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?