GG says executing the following lines does help:
export PATH=/usr/local/cuda-10.1/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=\ /usr/local/cuda-10.1/lib64/${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} export MANPATH=/usr/local/cuda/doc/man/${MANPATH:+:${MANPATH}}
He keeps giving me the exact same error. However, after the installation I had made a new login to automatically configure the PATH. - I brought the DeviceQuery folder from /opt to /home as recommended by Arch wiki. Here I gave the make. - After installation it gave as an optional "Java-runtime8" dependency that I have not installed. - Maybe my old Nvidia gtx 460M doesn't support Cuda very well (but the info would say yes; shader model 3.0 is required and the graphics card supports 5.1 and Cuda 2.1). - I do not know what other information to give (Journalctl?).