How to install CUDA 8 on Ubuntu 18.04 LTS?











up vote
1
down vote

favorite












Ubuntu 18.04 TLS has moved to CUDA 9.1 now, which deprecates the Nvidia Fermi Architecture.



I have tried installing the cuda 8 toolkit from nvidia with an --override option (to discard compiler verification) butthe installation failed as follows:



Command: sudo ./cuda_8.0.61_375.26_linux.run --override --toolkitpath /usr/local/cuda-8.0/



Output:



You are attempting to install on an unsupported configuration. Do you wish to continue?
(y)es/(n)o [ default is no ]: y

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.26?
(y)es/(n)o/(q)uit: n

Install the CUDA 8.0 Toolkit?
(y)es/(n)o/(q)uit: y

Enter Toolkit Location
[ default is /usr/local/cuda-8.0 ]: /usr/local/cuda-8.0

Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y

Install the CUDA 8.0 Samples?
(y)es/(n)o/(q)uit: y

Enter CUDA Samples Location
[ default is /home/user ]:

Installing the CUDA Toolkit in /usr/local/cuda-8.0 ...
Warning: cannot find Toolkit in /usr/local/cuda-8.0. Use --toolkitpath to specify the toolkit location.
Installing the CUDA Samples in /home/user ...
sh: 1: /usr/local/cuda-8.0/bin/cuda-install-samples-8.0.sh: not found
chown: cannot access '/home/user/NVIDIA_CUDA-8.0_Samples': No such file or directory

===========
= Summary =
===========

Driver: Not Selected
Toolkit: Installation Failed
Samples: Installation Failed









share|improve this question




















  • 1




    Apparently, you need to specify the toolkit location using option --toolkitpath.
    – francescop21
    Oct 22 at 16:25












  • I have already tried. Added my command in the post.
    – Blue Squirrel
    Oct 22 at 16:34












  • Actually, you don't need that option, since you're installing in the default directory. Have you uninstalled any previous version of Cuda Toolkit?
    – francescop21
    Oct 22 at 17:16












  • I have tried without the option --toolkitpath, and I was getting the same error. Indeed, I have installed the default nvidia-cuda-toolkit 9.1 from the ubuntu 18.04 repos. But I removed it after realizing my architecture was deprecated.
    – Blue Squirrel
    Oct 22 at 18:17












  • Make sure that there are no files remaining from the cuda 9.1 installation.
    – francescop21
    Oct 23 at 8:39















up vote
1
down vote

favorite












Ubuntu 18.04 TLS has moved to CUDA 9.1 now, which deprecates the Nvidia Fermi Architecture.



I have tried installing the cuda 8 toolkit from nvidia with an --override option (to discard compiler verification) butthe installation failed as follows:



Command: sudo ./cuda_8.0.61_375.26_linux.run --override --toolkitpath /usr/local/cuda-8.0/



Output:



You are attempting to install on an unsupported configuration. Do you wish to continue?
(y)es/(n)o [ default is no ]: y

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.26?
(y)es/(n)o/(q)uit: n

Install the CUDA 8.0 Toolkit?
(y)es/(n)o/(q)uit: y

Enter Toolkit Location
[ default is /usr/local/cuda-8.0 ]: /usr/local/cuda-8.0

Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y

Install the CUDA 8.0 Samples?
(y)es/(n)o/(q)uit: y

Enter CUDA Samples Location
[ default is /home/user ]:

Installing the CUDA Toolkit in /usr/local/cuda-8.0 ...
Warning: cannot find Toolkit in /usr/local/cuda-8.0. Use --toolkitpath to specify the toolkit location.
Installing the CUDA Samples in /home/user ...
sh: 1: /usr/local/cuda-8.0/bin/cuda-install-samples-8.0.sh: not found
chown: cannot access '/home/user/NVIDIA_CUDA-8.0_Samples': No such file or directory

===========
= Summary =
===========

Driver: Not Selected
Toolkit: Installation Failed
Samples: Installation Failed









share|improve this question




















  • 1




    Apparently, you need to specify the toolkit location using option --toolkitpath.
    – francescop21
    Oct 22 at 16:25












  • I have already tried. Added my command in the post.
    – Blue Squirrel
    Oct 22 at 16:34












  • Actually, you don't need that option, since you're installing in the default directory. Have you uninstalled any previous version of Cuda Toolkit?
    – francescop21
    Oct 22 at 17:16












  • I have tried without the option --toolkitpath, and I was getting the same error. Indeed, I have installed the default nvidia-cuda-toolkit 9.1 from the ubuntu 18.04 repos. But I removed it after realizing my architecture was deprecated.
    – Blue Squirrel
    Oct 22 at 18:17












  • Make sure that there are no files remaining from the cuda 9.1 installation.
    – francescop21
    Oct 23 at 8:39













up vote
1
down vote

favorite









up vote
1
down vote

favorite











Ubuntu 18.04 TLS has moved to CUDA 9.1 now, which deprecates the Nvidia Fermi Architecture.



I have tried installing the cuda 8 toolkit from nvidia with an --override option (to discard compiler verification) butthe installation failed as follows:



Command: sudo ./cuda_8.0.61_375.26_linux.run --override --toolkitpath /usr/local/cuda-8.0/



Output:



You are attempting to install on an unsupported configuration. Do you wish to continue?
(y)es/(n)o [ default is no ]: y

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.26?
(y)es/(n)o/(q)uit: n

Install the CUDA 8.0 Toolkit?
(y)es/(n)o/(q)uit: y

Enter Toolkit Location
[ default is /usr/local/cuda-8.0 ]: /usr/local/cuda-8.0

Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y

Install the CUDA 8.0 Samples?
(y)es/(n)o/(q)uit: y

Enter CUDA Samples Location
[ default is /home/user ]:

Installing the CUDA Toolkit in /usr/local/cuda-8.0 ...
Warning: cannot find Toolkit in /usr/local/cuda-8.0. Use --toolkitpath to specify the toolkit location.
Installing the CUDA Samples in /home/user ...
sh: 1: /usr/local/cuda-8.0/bin/cuda-install-samples-8.0.sh: not found
chown: cannot access '/home/user/NVIDIA_CUDA-8.0_Samples': No such file or directory

===========
= Summary =
===========

Driver: Not Selected
Toolkit: Installation Failed
Samples: Installation Failed









share|improve this question















Ubuntu 18.04 TLS has moved to CUDA 9.1 now, which deprecates the Nvidia Fermi Architecture.



I have tried installing the cuda 8 toolkit from nvidia with an --override option (to discard compiler verification) butthe installation failed as follows:



Command: sudo ./cuda_8.0.61_375.26_linux.run --override --toolkitpath /usr/local/cuda-8.0/



Output:



You are attempting to install on an unsupported configuration. Do you wish to continue?
(y)es/(n)o [ default is no ]: y

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.26?
(y)es/(n)o/(q)uit: n

Install the CUDA 8.0 Toolkit?
(y)es/(n)o/(q)uit: y

Enter Toolkit Location
[ default is /usr/local/cuda-8.0 ]: /usr/local/cuda-8.0

Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y

Install the CUDA 8.0 Samples?
(y)es/(n)o/(q)uit: y

Enter CUDA Samples Location
[ default is /home/user ]:

Installing the CUDA Toolkit in /usr/local/cuda-8.0 ...
Warning: cannot find Toolkit in /usr/local/cuda-8.0. Use --toolkitpath to specify the toolkit location.
Installing the CUDA Samples in /home/user ...
sh: 1: /usr/local/cuda-8.0/bin/cuda-install-samples-8.0.sh: not found
chown: cannot access '/home/user/NVIDIA_CUDA-8.0_Samples': No such file or directory

===========
= Summary =
===========

Driver: Not Selected
Toolkit: Installation Failed
Samples: Installation Failed






nvidia 18.04 cuda






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 22 at 16:35

























asked Oct 22 at 16:20









Blue Squirrel

63




63








  • 1




    Apparently, you need to specify the toolkit location using option --toolkitpath.
    – francescop21
    Oct 22 at 16:25












  • I have already tried. Added my command in the post.
    – Blue Squirrel
    Oct 22 at 16:34












  • Actually, you don't need that option, since you're installing in the default directory. Have you uninstalled any previous version of Cuda Toolkit?
    – francescop21
    Oct 22 at 17:16












  • I have tried without the option --toolkitpath, and I was getting the same error. Indeed, I have installed the default nvidia-cuda-toolkit 9.1 from the ubuntu 18.04 repos. But I removed it after realizing my architecture was deprecated.
    – Blue Squirrel
    Oct 22 at 18:17












  • Make sure that there are no files remaining from the cuda 9.1 installation.
    – francescop21
    Oct 23 at 8:39














  • 1




    Apparently, you need to specify the toolkit location using option --toolkitpath.
    – francescop21
    Oct 22 at 16:25












  • I have already tried. Added my command in the post.
    – Blue Squirrel
    Oct 22 at 16:34












  • Actually, you don't need that option, since you're installing in the default directory. Have you uninstalled any previous version of Cuda Toolkit?
    – francescop21
    Oct 22 at 17:16












  • I have tried without the option --toolkitpath, and I was getting the same error. Indeed, I have installed the default nvidia-cuda-toolkit 9.1 from the ubuntu 18.04 repos. But I removed it after realizing my architecture was deprecated.
    – Blue Squirrel
    Oct 22 at 18:17












  • Make sure that there are no files remaining from the cuda 9.1 installation.
    – francescop21
    Oct 23 at 8:39








1




1




Apparently, you need to specify the toolkit location using option --toolkitpath.
– francescop21
Oct 22 at 16:25






Apparently, you need to specify the toolkit location using option --toolkitpath.
– francescop21
Oct 22 at 16:25














I have already tried. Added my command in the post.
– Blue Squirrel
Oct 22 at 16:34






I have already tried. Added my command in the post.
– Blue Squirrel
Oct 22 at 16:34














Actually, you don't need that option, since you're installing in the default directory. Have you uninstalled any previous version of Cuda Toolkit?
– francescop21
Oct 22 at 17:16






Actually, you don't need that option, since you're installing in the default directory. Have you uninstalled any previous version of Cuda Toolkit?
– francescop21
Oct 22 at 17:16














I have tried without the option --toolkitpath, and I was getting the same error. Indeed, I have installed the default nvidia-cuda-toolkit 9.1 from the ubuntu 18.04 repos. But I removed it after realizing my architecture was deprecated.
– Blue Squirrel
Oct 22 at 18:17






I have tried without the option --toolkitpath, and I was getting the same error. Indeed, I have installed the default nvidia-cuda-toolkit 9.1 from the ubuntu 18.04 repos. But I removed it after realizing my architecture was deprecated.
– Blue Squirrel
Oct 22 at 18:17














Make sure that there are no files remaining from the cuda 9.1 installation.
– francescop21
Oct 23 at 8:39




Make sure that there are no files remaining from the cuda 9.1 installation.
– francescop21
Oct 23 at 8:39










2 Answers
2






active

oldest

votes

















up vote
0
down vote



accepted










I have solved the issue using th following procedure:



1. unpack .run file ./cuda*.run --tar mxvf
2. copy InstallUtils.pm to /usr/lib/x86_64-linux-gnu/perl-base
3. export $PERL5LIB





share|improve this answer




























    up vote
    0
    down vote













    There are two cleaner ways to solve this issue:




    1. Set current directory as perl library search path by: PERL5LIB=. sh cuda_8.0.61_375.26_linux.run your-other-options. Related link.

    2. Install the missing perl module by: sudo apt install module-install-perl. Related link






    share|improve this answer








    New contributor




    John Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.


















      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',
      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%2f1086160%2fhow-to-install-cuda-8-on-ubuntu-18-04-lts%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote



      accepted










      I have solved the issue using th following procedure:



      1. unpack .run file ./cuda*.run --tar mxvf
      2. copy InstallUtils.pm to /usr/lib/x86_64-linux-gnu/perl-base
      3. export $PERL5LIB





      share|improve this answer

























        up vote
        0
        down vote



        accepted










        I have solved the issue using th following procedure:



        1. unpack .run file ./cuda*.run --tar mxvf
        2. copy InstallUtils.pm to /usr/lib/x86_64-linux-gnu/perl-base
        3. export $PERL5LIB





        share|improve this answer























          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          I have solved the issue using th following procedure:



          1. unpack .run file ./cuda*.run --tar mxvf
          2. copy InstallUtils.pm to /usr/lib/x86_64-linux-gnu/perl-base
          3. export $PERL5LIB





          share|improve this answer












          I have solved the issue using th following procedure:



          1. unpack .run file ./cuda*.run --tar mxvf
          2. copy InstallUtils.pm to /usr/lib/x86_64-linux-gnu/perl-base
          3. export $PERL5LIB






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 27 at 20:18









          Blue Squirrel

          63




          63
























              up vote
              0
              down vote













              There are two cleaner ways to solve this issue:




              1. Set current directory as perl library search path by: PERL5LIB=. sh cuda_8.0.61_375.26_linux.run your-other-options. Related link.

              2. Install the missing perl module by: sudo apt install module-install-perl. Related link






              share|improve this answer








              New contributor




              John Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                up vote
                0
                down vote













                There are two cleaner ways to solve this issue:




                1. Set current directory as perl library search path by: PERL5LIB=. sh cuda_8.0.61_375.26_linux.run your-other-options. Related link.

                2. Install the missing perl module by: sudo apt install module-install-perl. Related link






                share|improve this answer








                New contributor




                John Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  There are two cleaner ways to solve this issue:




                  1. Set current directory as perl library search path by: PERL5LIB=. sh cuda_8.0.61_375.26_linux.run your-other-options. Related link.

                  2. Install the missing perl module by: sudo apt install module-install-perl. Related link






                  share|improve this answer








                  New contributor




                  John Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  There are two cleaner ways to solve this issue:




                  1. Set current directory as perl library search path by: PERL5LIB=. sh cuda_8.0.61_375.26_linux.run your-other-options. Related link.

                  2. Install the missing perl module by: sudo apt install module-install-perl. Related link







                  share|improve this answer








                  New contributor




                  John Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  John Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered Nov 20 at 7:32









                  John Smith

                  1




                  1




                  New contributor




                  John Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  John Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  John Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1086160%2fhow-to-install-cuda-8-on-ubuntu-18-04-lts%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

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                      Eduardo VII do Reino Unido