0

I'm following the CUDA-GDB guide (page 10, getting started) on Ubuntu Linux and got this:

antonio@antonio-desktop:~$ export PATH=/usr/local/cuda/bin:$PATH
antonio@antonio-desktop:~$ export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/
antonio@antonio-desktop:~$ lib:$LD_LIBRARY_PATH
bash: lib:/usr/local/cuda/lib64:/usr/local/cuda/: No such file or directory

Well, how do I fix this? I have the current toolkit.

andandandand
  • 21,946
  • 60
  • 170
  • 271

1 Answers1

2

You have broken a line in two - it should be:

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

You probably got confused by the line wrap in the nVidia PDF.

Paul R
  • 208,748
  • 37
  • 389
  • 560