문제

I was using ubuntu 12.04.I have added the following line to both my bashrc file and bash_profile. The bash-profile file is created by me in order to add the lines

export CUDA_INSTALL_PATH="/opt/cuda"
export PATH="${CUDA_INSTALL_PATH}/bin:${PATH}"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda/lib:/opt/cuda/lib64

Now when I open terminal it was showing

bash: export: `/opt/cuda': not a valid identifier

What was the problem. What should be changed

도움이 되었습니까?

해결책

You have a space after the =. Get rid of it, you want no spaces on either side of it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top