cudart not found after installation on Ubuntu with Package Manager

Hello everyone,

Previously I tried the runfile installation, but wanted to switch to package manager, so before installing with package manager I went through uninstallation steps.
After the installation of CUDA 10 on ubuntu with package manager I went through point 7 with environment setup, but I am unable to build the sample programs:

/usr/bin/mpicxx    -o simpleMPI simpleMPI_mpi.o simpleMPI.o  -L/usr/local/cuda-10.0/lib64 -lcudart
/usr/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status
Makefile:349: recipe for target 'simpleMPI' failed
make[1]: *** [simpleMPI] Error 1
make[1]: Leaving directory '/home/ben/Documents/nvidia-samples/NVIDIA_CUDA-10.0_Samples/0_Simple/simpleMPI'
Makefile:51: recipe for target '0_Simple/simpleMPI/Makefile.ph_build' failed
make: *** [0_Simple/simpleMPI/Makefile.ph_build] Error 2

‘ls’ in /usr/local/cuda-10.0/lib64 gives me following:

libcudnn.so    libcudnn.so.7.4.1    libcudnn.so.7  libcudnn_static.a

Seems that cudart is really missing (or am I missing something?). What should I check now?

Yes its missing. Your install using package manager did not run correctly.

You could see if it got installed anywhere at all on your machine. Otherwise I would repeat the process carefully, paying attention to the linux install guide.

Thank you. I managed to solve the problem.
This time during the reinstall I removed the whole folder /usr/local/cuda-10.0 because I have seen that it is being left during package purging because it’s not empty. This time the missing libraries were installed properly.

Maybe it will help someone in the future.