问题原因:接单独写了一个export,要么在bashrc中,要么在bash_profile中,export写在单独的一行
具体打开bashrc 命令:
- gedit ~/.bashrc // 打开
- source ~/.bashrc // 修改后,保存修改
export
PATH = "/opt/cuda/bin:$PATH"
export
LD_LIBRARY_PATH = "/opt/cuda/lib64:$LD_LIBRARY_PATH"
export PATH = "/opt/cuda/bin:$PATH"
export LD_LIBRARY_PATH = "/opt/cuda/lib64:$LD_LIBRARY_PATH"
export
source /opt/ros/melodic/setup.bash
source /opt/ros/melodic/setup.bash