From: Knut Jørgen Bjuland (knutjorgen_at_gmail.com)
Date: Wed Sep 22 2010 - 11:15:13 CDT

  Cun

I manage to compile vmd by adding a symlink to /usr/local/encap/cuda-3.0
to /usr/lib/cuda. Then it compile without any trouble.

Cheers
Knut J

On 09/17/2010 03:25 AM, Cun Zhang wrote:
> Knut
> Does you add '-L/usr/local/cuda/lib64' to variable "LIBDIRS" in makefile?
>
> Every compilation I must re-link libcudart.so to libcudart.so.3.
> If not, same error comes. I have any idea with it.
>
> Cheers,
> Zhang
>
> 2010/9/16 Axel Kohlmeyer <akohlmey_at_gmail.com <mailto:akohlmey_at_gmail.com>>
>
> 2010/9/15 Knut Jørgen Bjuland <knutjorgen_at_gmail.com
> <mailto:knutjorgen_at_gmail.com>>:
> > I have tried to compile the cvs version of vmd to get python
> working.
> > Though I am having some trouble in compiling the cuda part. I
> get this
> > error message when compiling vmd.
> >
> > Linking vmd_LINUXAMD64 ...
> > /usr/bin/ld: cannot find -lcudart
> > collect2: ld returned 1 exit status
> > make: *** [vmd_LINUXAMD64] Error 1
> >
> > Then I try to see if I the system can see the installed cuda-3.2.
> >
> > ldconfig -v |grep cuda
> > /usr/local/cuda/lib64:
> > libcudart.so.3 -> libcudart.so.3.2.9
> > libcudartemu.so.3 -> libcudartemu.so.3.0.14
> > /usr/local/cuda/lib:
> > libcudart.so.3 -> libcudart.so.3.2.9
> > libcudartemu.so.3 -> libcudartemu.so.3.0.14
> > libcuda.so.1 -> libcuda.so.256.53
> > libcuda.so.1 -> libcuda.so.256.53
> > libicudata.so.42 -> libicudata.so.42.1
> > libicudata.so.42 -> libicudata.so.42.1
> >
> > Then it seems to be in order. Do I have wrong version of cuda,
> or do I have
>
> nope. that is not in order. the linker will only look
> for either libcudart.so or libcudart.a which are
> missing. libcudart.so would typically be a symbolic
> link to libcudart.so.3
>
> cheers,
> axel.
>
> > set one option recarding cuda wrongly. I have a rpmfusion
> package version of
> > nvidia driver.
>
>
>
> >
> >
> >
>
>
>
> --
> Dr. Axel Kohlmeyer akohlmey_at_gmail.com <mailto:akohlmey_at_gmail.com>
> http://sites.google.com/site/akohlmey/
>
> Institute for Computational Molecular Science
> Temple University, Philadelphia PA, USA.
>
>
>
>
> --
> Blog: http://www.edwardpku.com/cun