Pyrit with cuda (cpyrit_cuda) problems

Started by icarus, March 23, 2013, 01:27:37 AM

Previous topic - Next topic

icarus

Hello everybody, I have been trying this for days and I am out of ideas. I hope there is somebody here who can help me.

I have a problem with Pyrit tool, actually cpyrit_cuda.

I have installed Pyrit but I can`t manage to make&install cpyrit_cuda.

This are the last 3 lines where the error is when I try to make or install cpyrit_cuda

/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1


I must say that I have installed all dependencies  (sudo apt-get install libpcap-dev and python-dev), also I have installed the Nvidia driver

When I type: which nvcc and nvcc -V I get


root@adrian-System-Product-Name:~/pyrit/cpyrit_cuda# which nvcc
/opt/cuda/bin/nvcc
root@adrian-System-Product-Name:~/pyrit/cpyrit_cuda# nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2011 NVIDIA Corporation
Built on Sun_Mar_20_16:45:27_PDT_2011
Cuda compilation tools, release 4.0, V0.2.1221
root@adrian-System-Product-Name:~/pyrit/cpyrit_cuda#


I can`t manage to see what is wrong, please help. :'( :'( :o :o

Greetings

icarus

Ahhh hell, I`l go  back to backtrack, it is a pain in the ass, I like the backbox much better but on backtrack I don`t have this kind of errors with cuda.

b4d_bl0ck

Hi icarus,
Quote/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
.
ld is the GNU linker, so it seems you have problems at linking time. In general try to look into the Makefile, and see in which folder it looks for lcuda, then try to understand why it's not there.
And before switching back to BackTrack, if you had googled a bit you'd have found lots of interesting results simply searching for lcuda, certainly less laborious than open a post on a forum.  ;)

Oh, and some threads on the web show that this issue happens in BackTrack too.
Enjoy BackBox!
Have fun!  :)
bool secure = check_paranoia() ? true : false;

icarus

I have google-d it , I have gone over all threads and I did`t found a solution.

I don`t know why, but I repeated that same procedure on backtrack and it works fine however I would like to use BackBox over backtrack.

I don`t know ,maybe this "lcuda" problem should be checked by the BackBox developers.

ostendali

Quote from: b4d_bl0ck on March 23, 2013, 12:19:30 PM
Hi icarus,
Quote/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
.
ld is the GNU linker, so it seems you have problems at linking time. In general try to look into the Makefile, and see in which folder it looks for lcuda, then try to understand why it's not there.
And before switching back to BackTrack, if you had googled a bit you'd have found lots of interesting results simply searching for lcuda, certainly less laborious than open a post on a forum.  ;)

Oh, and some threads on the web show that this issue happens in BackTrack too.
Enjoy BackBox!
Have fun!  :)
you are right man!
that is quite obvious as your installation path is not where the system looking for. so it is about the linking problem.

As you can obviously see you have /opt/cuda/bin/nvcc and guess where the system is looking for this stuff? obviously in /usr/bin
you can sort your problem by:
#ln -s /opt/cuda/bin/nvcc /usr/bin/nvcc

it is the basic of linux administration!

good luck!

icarus

Quote from: ostendali on March 28, 2013, 10:58:06 AM
Quote from: b4d_bl0ck on March 23, 2013, 12:19:30 PM
Hi icarus,
Quote/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
.
ld is the GNU linker, so it seems you have problems at linking time. In general try to look into the Makefile, and see in which folder it looks for lcuda, then try to understand why it's not there.
And before switching back to BackTrack, if you had googled a bit you'd have found lots of interesting results simply searching for lcuda, certainly less laborious than open a post on a forum.  ;)

Oh, and some threads on the web show that this issue happens in BackTrack too.
Enjoy BackBox!
Have fun!  :)
you are right man!
that is quite obvious as your installation path is not where the system looking for. so it is about the linking problem.

As you can obviously see you have /opt/cuda/bin/nvcc and guess where the system is looking for this stuff? obviously in /usr/bin
you can sort your problem by:
#ln -s /opt/cuda/bin/nvcc /usr/bin/nvcc

it is the basic of linux administration!

good luck!

Thank you for your answer.

I am not a linux expert of course, but I have noticed this problem and tried linking this locations but It did`t solved my problem. I don`t know, maybe there is another problem, I have no clue at this point. I have done the same on backtrack and it works fine.

I have found several threads on google about this and tried them all.

Greetings.

sanfranla49

find where your nvcc file is located and make a softlink so the compiler looks there thats what i had to do and also it helps if you downgrade gcc to 4.4 because pyrit doesnt like gcc above 4.4 and im pretty sure BB comes stock with 4.6