0

How can I establish these shared variables forever on all Bash instances?

export PATH=/Developer/NVIDIA/CUDA-5.5/bin:$PATH
export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-5.5/lib:$DYLD_LIBRARY_PATH
Todd A. Jacobs
  • 81,402
  • 15
  • 141
  • 199
Marc Ortiz
  • 2,242
  • 5
  • 27
  • 46

2 Answers2

1

I think you'll want to put this logic in a file located in /etc/profile.d/, assuming you're using some Unix/Linux based distribution.

jtravaglini
  • 1,676
  • 11
  • 19
1

From the DYLD_LIBRARY_PATH it seems you are using Mac. You can put these in ~/.bashrc. If your current $SHELL is bash then each time you open a Terminal it should execute those lines and they will be available to read/modify later. e.g. echo $DYLD_LIBRARY_PATH

iamauser
  • 11,119
  • 5
  • 34
  • 52