From: Paul Rigor (uci-ics) (prigor_at_ics.uci.edu)
Date: Mon Jan 04 2010 - 15:29:08 CST
Hi,
LD_LIBRARY_PATH is an environment variable which contains paths to shared
libraries. It should already be set with some default paths depending on
your linux distribution.
Now that you've found the path to the CUDA libraries, all you'll need to do
is update this particular environment variable like so depending on your
default shell.
For bash, enter "export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64"
and for csh or tcsh, enter "setenv LD_LIBRARY_PATH
$LD_LIBRARY_PATH:/usr/local/cuda/lib64"
To figure out which shell you're using, type "echo $SHELL" which will either
return paths for bash, csh or tcsh
Goodluck,
Paul
On Fri, Jan 1, 2010 at 10:58 PM, hamze rahimi <buksanbio_at_gmail.com> wrote:
> Dear expert NAMD
>
> i want run NAMD_2.7b2_Linux-x86_64-CUDA. but when run i see this error;
> namd2: error while loading shared libraries: libcudart.so.2: cannot open
> shared object file: No such file or directory
>
> i search in the NAMD web site and find this answer;
> Are you sure that libcudart.so.2 is in /usr/local/cuda/lib64 and your
> $LD_LIBRARY_PATH
> contains /usr/local/cuda/lib64
>
> now i checked /usr/local/cuda/lib64 that contain libcudart.so.2 but my
> problem is find and check the $LD_LIBRARY_PATH .
> how do i find $LD_LIBRARY_PATH ?
> thanks very much
>
>
> --
> Yours sincerely
> Rahimi Hamzeh
> PhD student in Medical Biotechnology
> Pasteur institute
> e mail:
> buksanbio_at_gmail.com
> hamzebiotech_at_gmail.com
> Tel: 09125975321
>
>
>
>
-- Paul Rigor Pre-doctoral BIT Fellow and Graduate Student Institute for Genomics and Bioinformatics Donald Bren School of Information and Computer Sciences University of California, Irvine http://www.ics.uci.edu/~prigor
This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:53:39 CST