Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All, I just helped someone setup their CUDA drivers and in the directions on almost all the forums it said to add this: PATH=$PATH:/usr/local/cuda/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib export PATH export LD_LIBRARY_PATH ...
  1. #1
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958

    .bashrc question

    Hi All,

    I just helped someone setup their CUDA drivers and in the directions on almost all the forums it said to add this:

    PATH=$PATH:/usr/local/cuda/bin
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib
    export PATH
    export LD_LIBRARY_PATH
    to the .bashrc file. Doing that was failing as we were seeing errors when trying to run the example files provided by Nvidia. So as a home remedy I instead made a text file in /etc/ld.so.conf.d that included the path /usr/local/cuda/lib and the examples work fine....so questions:

    what were all those paths for? what is bashrc for? and why is it not working from bashrc?

    Thanks all!
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    if you have a ".bash_profile" in yr home directory,
    bash will use that & never find the ".bashrc"

    fix: add the line ". .bashrc" to yr ".bash_profile"
    or add to it rather than to ".bashrc"
    the sun is new every day (heraclitus)

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    .bashrc is only loaded when you start up a new shell as well, every time you make a change to it you have to source it in any currently running shells

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...