[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 15 Jan 2013 19:38:43 +0100
From: magnum <john.magnum@...hmail.com>
To: john-users@...ts.openwall.com
Subject: Re: Cuda Build
On 15 Jan, 2013, at 12:31 , Piyush Mittal <me@...ushmittal.in> wrote:
> I want to build john-1.7.9-jumbo-7 under cuda configuration. However it is
> throwing following compile errors
>
> /usr/bin/ld: cannot find -lcudart
>> collect2: ld returned 1 exit status
>> make[1]: *** [../run/john] Error 1
>> make[1]: Leaving directory `/home/node/Desktop/john-1.7.9-jumbo-7/src'
>> make: *** [linux-x86-64-cuda] Error 2
>> node@...e:~/Desktop/john-1.7.9-jumbo-7/src$ nvcc
>>
>
> I have also set the environment variables as follows.
>
> export PATH=$PATH:/usr/local/cuda-5.0/bin
> export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib64:/lib
>
> Is there any change that I need to make in makefile?
Here's two ways to fix it (you only need one but both will work too =):
sudo ln -s /usr/local/cuda-5.0 /usr/local/cuda
sed -ri 's#local/cuda/#local/cuda-5.0/#' Makefile
I recommend the first alternative. Sometimes I actually get that symlink made by the CUDA installer, sometimes not.
magnum
Powered by blists - more mailing lists
Powered by Openwall GNU/*/Linux -
Powered by OpenVZ