How to permanently set the path export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/cuda/li


I need to set the path to compile SDK programs, as follows:

export PATH=$PATH:/usr/local/cuda/cuda/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/cuda/lib

Every time I open a new terminal I have to this. I want to know what is the permanent solution for this? I guess I need to edit some file.



put it in your .bashrc file is probably the simplest way. Because I work with many different flavours of the same basic development environments, I use the excellent modules package, but that is probably overkill for what you need.