質問

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.

役に立ちましたか?

解決

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

export PATH=$CUDA_INSTALL_PATH/bin

say:

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

他のヒント

You overrided your PATH, you shall use as follows:

export PATH=$PATH:$CUDA_INSTALL_PATH/bin
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top