Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Bumblebee and Pyrit problems #171

Closed
Kymura opened this issue Dec 12, 2011 · 13 comments
Closed

Bumblebee and Pyrit problems #171

Kymura opened this issue Dec 12, 2011 · 13 comments

Comments

@Kymura
Copy link

Kymura commented Dec 12, 2011

I've installed Bumblebee and all works correctly.
I try to install pyrit and when I install Cuda Toolkit it generate an error like this:

sh cudatoolkit_3.2.16_linux_64_ubuntu10.04.run (installation complete)

root@bt:~/pyrit_svn/cpyrit_cuda# python setup.py build
running build
running build_ext
Skipping rebuild of Nvidia CUDA kernel ...
Building modules...
building 'cpyrit._cpyrit_cuda' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/cuda/include -I/usr/include/python2.6 -c _cpyrit_cuda.c -o build/temp.linux-i686-2.6/_cpyrit_cuda.o -Wall -fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)"
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.6/_cpyrit_cuda.o -lcrypto -lcuda -lz -o build/lib.linux-i686-2.6/cpyrit/_cpyrit_cuda.so
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Is there an error on -lcuda
If I installing nvidia driver from nvidia website it work, but I would use Bumblebee and not Nvidia driver without optimus technology..

Can you help me?

@Lekensteyn
Copy link
Member

Try export LD_LIBRARY_PATH=/usr/lib/nvidia-current before playing with CUDA.

@Kymura
Copy link
Author

Kymura commented Dec 12, 2011

same :(

root@bt:/pyrit_svn/cpyrit_cuda# export LD_LIBRARY_PATH=/usr/lib/nvidia-current
root@bt:
/pyrit_svn/cpyrit_cuda# python setup.py build
running build
running build_ext
Skipping rebuild of Nvidia CUDA kernel ...
Building modules...
building 'cpyrit._cpyrit_cuda' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/cuda/include -I/usr/include/python2.6 -c _cpyrit_cuda.c -o build/temp.linux-i686-2.6/_cpyrit_cuda.o -Wall -fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)"
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.6/_cpyrit_cuda.o -lcrypto -lcuda -lz -o build/lib.linux-i686-2.6/cpyrit/_cpyrit_cuda.so
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
root@bt:~/pyrit_svn/cpyrit_cuda#

@Lekensteyn
Copy link
Member

Have you installed CUDA from http://developer.nvidia.com/cuda-toolkit-40#Linux?

@Kymura
Copy link
Author

Kymura commented Dec 13, 2011

yes CUDA Toolkit for Ubuntu Linux 10.10 32bit

@Lekensteyn
Copy link
Member

Related: http://askubuntu.com/q/77140/6969

@Kymura
Copy link
Author

Kymura commented Dec 13, 2011

mmm I'm not a linux expert, so what I have to do?

export LIBRARY_PATH=/usr/lib/nvidia-current ?

@Lekensteyn
Copy link
Member

correct, it's passed to the GNU linker.

@Kymura
Copy link
Author

Kymura commented Dec 13, 2011

ok I'll try when I get back from work

@Kymura
Copy link
Author

Kymura commented Dec 13, 2011

The installation does not give me errors, except that pyrit does not work :(

root@bt:~/pyrit_svn/cpyrit_cuda# pyrit list_cores
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1:  'CPU-Core (SSE2/AES)'
#2:  'CPU-Core (SSE2/AES)'
#3:  'CPU-Core (SSE2/AES)'
#4:  'CPU-Core (SSE2/AES)'
#5:  'CPU-Core (SSE2/AES)'
#6:  'CPU-Core (SSE2/AES)'
#7:  'CPU-Core (SSE2/AES)'
#8:  'CPU-Core (SSE2/AES)'

@Lekensteyn
Copy link
Member

Do you really need to use Backtrack Linux? That distro is based off Ubuntu Lucid which contains outdated drivers and kernel. Try installing a more recent version like Ubuntu Oneiric.

@Kymura
Copy link
Author

Kymura commented Dec 14, 2011

I would like to keep backtrack for some reasons

@Kymura
Copy link
Author

Kymura commented Dec 15, 2011

fixed:

apt-get install libroot-python-dev
apt-get install libboost-python-dev
apt-get install zlib1g-dev
apt-get install libssl-dev

@Lekensteyn
Copy link
Member

If that was required, a good installer should have complained about it. Closing as it's fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants