Question

I need to install a programming software called cuda for my academic purpose. googling how to install , i found these and i have done that.

cd ~/Downloads
sudo ./cudatoolkit_3.2.16_linux_32_ubuntu10.04.run

gedit ~/.bashrc

Add the following entries

export CUDA_INSTALL_PATH=/usr/local/cuda
export PATH=$CUDA_INSTALL_PATH/bin

save and exit. Then run on bash.

source ~/.bashrc

now any command is not working saying The command could not be located because '/bin' is not included in the PATH environment variable.

I could not understand I was new to this. can you please help me.

Was it helpful?

Solution

You needed to preserve the earlier PATH. Instead of saying:

export PATH=$CUDA_INSTALL_PATH/bin

say:

export PATH=${CUDA_INSTALL_PATH}/bin:${PATH}

OTHER TIPS

You overrided your PATH, you shall use as follows:

export PATH=$PATH:$CUDA_INSTALL_PATH/bin
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top