Pages: [1]   Go Down
Print
Author Topic: Pyrit with cuda (cpyrit_cuda) problems  (Read 5611 times)
icarus
Newbie
*
Posts: 5


View Profile
« on: March 23, 2013, 01:27:37 AM »

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
Code:
/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

Code:
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. :'( :'( Shocked Shocked

Greetings
Logged
icarus
Newbie
*
Posts: 5


View Profile
« Reply #1 on: March 23, 2013, 11:39:43 AM »

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.
Logged
b4d_bl0ck
Global Moderator
Sr. Member
*****
Posts: 257



View Profile
« Reply #2 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.  Wink

Oh, and some threads on the web show that this issue happens in BackTrack too.
Enjoy BackBox!
Have fun!  Smiley
Logged

bool secure = check_paranoia() ? true : false;
icarus
Newbie
*
Posts: 5


View Profile
« Reply #3 on: March 24, 2013, 09:14:42 PM »

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.
Logged
ostendali
Global Moderator
Sr. Member
*****
Posts: 385


View Profile
« Reply #4 on: March 28, 2013, 10:58:06 AM »

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.  Wink

Oh, and some threads on the web show that this issue happens in BackTrack too.
Enjoy BackBox!
Have fun!  Smiley
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!
Logged
icarus
Newbie
*
Posts: 5


View Profile
« Reply #5 on: March 28, 2013, 11:36:32 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.  Wink

Oh, and some threads on the web show that this issue happens in BackTrack too.
Enjoy BackBox!
Have fun!  Smiley
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.
Logged
sanfranla49
Newbie
*
Posts: 3


View Profile
« Reply #6 on: July 19, 2013, 10:11:43 PM »

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
Logged
Pages: [1]   Go Up
Print
Jump to: