Aircrack-ng CUDA unsolved: skipping incompatible -lcudart

I am trying to compile Aircrack-ng with CUDA support on Ubuntu 9.04 x86_64 system. During compilation I get incompatible issue:

dem@dem-laptop:~/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda$ make CUDA=true sqlite=true unstable=true install

make -C src install

make[1]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make -C osdep

make[2]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

Building for Linux

make[3]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[3]: `.os.Linux' is up to date.

make[3]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[2]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED aircrack-ng.o crypto.o common.o uniqueiv.o aircrack-ptw-lib.o cudacrypto.o sha1-sse2.S -o aircrack-ng -lpthread -lssl -lcrypto  -L/usr/local/cuda/lib -lcuda -lcudart -L/usr/local/lib -lsqlite3

/usr/bin/ld: skipping incompatible /usr/local/cuda/lib/libcudart.so when searching for -lcudart

/usr/bin/ld: cannot find -lcudart

collect2: ld returned 1 exit status

make[1]: *** [aircrack-ng] Error 1

make[1]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make: *** [install] Error 2

p.s.

kernel- 2.6.30-rc5

NVIDIA-Linux-x86_64-190.18-pkg2.run

cudasdk_2.3_linux.run

cudatoolkit_2.3_linux_64_ubuntu9.04.run

~/.bashrc:

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/cuda/bin:/usr/bin:$PATH

 LD_LIBRARY_PATH=/usr/local/cuda/cudaprof/bin:/usr/local/cuda/lib64:/usr/local/cuda/lib

 CUDA_INSTALL_PATH=/usr/local/cuda

 SDK_INSTALL_PATH=/home/dem/NVIDIA_GPU_Computing_SDK

 export PATH

 export LD_LIBRARY_PATH

 export CUDA_INSTALL_PATH

 export SDK_INSTALL_PATH

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1 -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED aircrack-ng.o crypto.o common.o uniqueiv.o aircrack-ptw-lib.o cudacrypto.o sha1-sse2.S -o aircrack-ng -lpthread -lssl -lcrypto -L/usr/local/cuda/lib -lcuda -lcudart -L/usr/local/lib -lsqlite3

You are linking against the 32 bit version, for CUDA 2.3 “-L/usr/local/cuda/lib” should be “-L/usr/local/cuda/lib64”.
You probably need to modify the Makefile.

Thanks, seems like o.k. now, I changed

LIBSSL += -L$(CUDA_INSTALL_PATH)/lib -lcuda -lcudart

pass to

LIBSSL += -L$(CUDA_INSTALL_PATH)/lib64 -lcuda -lcudart in Makefile,

then i did compilation (I didn’t compile with sudo in order to keep binaries in src folder)

dem@dem-laptop:~/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda$ make CUDA=true unstable=true install

make -C src install

make[1]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make -C osdep

make[2]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

Building for Linux

make[3]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[3]: `.os.Linux' is up to date.

make[3]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[2]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED aircrack-ng.o crypto.o common.o uniqueiv.o aircrack-ptw-lib.o cudacrypto.o sha1-sse2.S -o aircrack-ng -lpthread -lssl -lcrypto  -L/usr/local/cuda/lib/lib64 -lcuda -lcudart 

/usr/bin/ld: cannot find -lcudart

collect2: ld returned 1 exit status

make[1]: *** [aircrack-ng] Error 1

make[1]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make: *** [install] Error 2

dem@dem-laptop:~/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda$ make CUDA=true sqlite=true unstable=true install

make -C src install

make[1]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make -C osdep

make[2]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

Building for Linux

make[3]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[3]: `.os.Linux' is up to date.

make[3]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[2]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED aircrack-ng.o crypto.o common.o uniqueiv.o aircrack-ptw-lib.o cudacrypto.o sha1-sse2.S -o aircrack-ng -lpthread -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart -L/usr/local/lib -lsqlite3

/usr/bin/ld: cannot find -lsqlite3

collect2: ld returned 1 exit status

make[1]: *** [aircrack-ng] Error 1

make[1]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make: *** [install] Error 2

dem@dem-laptop:~/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda$ make CUDA=true unstable=true installmake -C src install

make[1]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make -C osdep

make[2]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

Building for Linux

make[3]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[3]: `.os.Linux' is up to date.

make[3]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[2]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED aircrack-ng.o crypto.o common.o uniqueiv.o aircrack-ptw-lib.o cudacrypto.o sha1-sse2.S -o aircrack-ng -lpthread -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart 

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o airdecap-ng.o airdecap-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED airdecap-ng.o crypto.o common.o -o airdecap-ng -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o packetforge-ng.o packetforge-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED packetforge-ng.o common.o crypto.o -o packetforge-ng -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o ivstools.o ivstools.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED ivstools.o common.o crypto.o uniqueiv.o -o ivstools -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o kstats.o kstats.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED kstats.o -o kstats

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o makeivs-ng.o makeivs-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED makeivs-ng.o common.o uniqueiv.o -o makeivs-ng

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o airdecloak-ng.o airdecloak-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED airdecloak-ng.o common.o osdep/radiotap-parser.o -o airdecloak-ng

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o buddy-ng.o buddy-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED buddy-ng.o common.o -o buddy-ng

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o aireplay-ng.o aireplay-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED aireplay-ng.o common.o crypto.o -o aireplay-ng -Losdep -losdep   -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o airodump-ng.o airodump-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED airodump-ng.o common.o crypto.o uniqueiv.o -o airodump-ng -Losdep -losdep   -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o airserv-ng.o airserv-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED airserv-ng.o common.o -o airserv-ng -Losdep -losdep   

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o airtun-ng.o airtun-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED airtun-ng.o common.o crypto.o -o airtun-ng -Losdep -losdep   -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o airbase-ng.o airbase-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED airbase-ng.o common.o crypto.o -o airbase-ng -Losdep -losdep   -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart -lpthread

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o wesside-ng.o wesside-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED wesside-ng.o crypto.c common.o aircrack-ptw-lib.o -o wesside-ng -Losdep -losdep   -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart -lz

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o tkiptun-ng.o tkiptun-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED tkiptun-ng.o common.o crypto.o -o tkiptun-ng -Losdep -losdep   -lssl -lcrypto  -L/usr/local/cuda/lib64 -lcuda -lcudart

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED   -c -o easside-ng.o easside-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -Iinclude -DCUDA_ENABLED easside-ng.o common.o -o easside-ng -Losdep -losdep   -lz

make -C osdep install

make[2]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

Building for Linux

make[3]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[3]: `.os.Linux' is up to date.

make[3]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[2]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

install -d /usr/local/bin

install -m 755 aircrack-ng airdecap-ng packetforge-ng ivstools kstats makeivs-ng airdecloak-ng buddy-ng /usr/local/bin

install: cannot create regular file `/usr/local/bin/aircrack-ng': Permission denied

install: cannot create regular file `/usr/local/bin/airdecap-ng': Permission denied

install: cannot create regular file `/usr/local/bin/packetforge-ng': Permission denied

install: cannot create regular file `/usr/local/bin/ivstools': Permission denied

install: cannot create regular file `/usr/local/bin/kstats': Permission denied

install: cannot create regular file `/usr/local/bin/makeivs-ng': Permission denied

install: cannot create regular file `/usr/local/bin/airdecloak-ng': Permission denied

install: cannot create regular file `/usr/local/bin/buddy-ng': Permission denied

make[1]: *** [install] Error 1

And one thing I want to ask too, of course it maybe not related to CUDA, but anyway, when I compiling with sqlite=true option receive error

dem@dem-laptop:~/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda$ make CUDA=true sqlite=true unstable=true install

make -C src install

make[1]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make -C osdep

make[2]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

Building for Linux

make[3]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o osdep.o osdep.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o network.o network.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o linux.o linux.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o linux_tap.o linux_tap.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o radiotap-parser.o radiotap-parser.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o common.o common.c

ar cru libosdep.a  osdep.o network.o linux.o linux_tap.o radiotap-parser.o common.o

ranlib libosdep.a 

touch .os.Linux

make[3]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[2]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o aircrack-ng.o aircrack-ng.c

aircrack-ng.c:76:21: error: sqlite3.h: No such file or directory

aircrack-ng.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

cc1: warnings being treated as errors

aircrack-ng.c: In function ‘main’:

aircrack-ng.c:4980: error: implicit declaration of function ‘sqlite3_open’

aircrack-ng.c:4980: error: ‘db’ undeclared (first use in this function)

aircrack-ng.c:4980: error: (Each undeclared identifier is reported only once

aircrack-ng.c:4980: error: for each function it appears in.)

aircrack-ng.c:4981: error: implicit declaration of function ‘sqlite3_errmsg’

aircrack-ng.c:4981: error: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’

aircrack-ng.c:4982: error: implicit declaration of function ‘sqlite3_close’

aircrack-ng.c:5641: error: implicit declaration of function ‘sqlite3_mprintf’

aircrack-ng.c:5641: error: assignment makes pointer from integer without a cast

aircrack-ng.c:5643: error: implicit declaration of function ‘sqlite3_exec’

aircrack-ng.c:5644: error: ‘SQLITE_LOCKED’ undeclared (first use in this function)

aircrack-ng.c:5644: error: ‘SQLITE_BUSY’ undeclared (first use in this function)

aircrack-ng.c:5650: error: ‘SQLITE_OK’ undeclared (first use in this function)

aircrack-ng.c:5650: error: ‘SQLITE_ABORT’ undeclared (first use in this function)

aircrack-ng.c:5652: error: implicit declaration of function ‘sqlite3_free’

make[1]: *** [aircrack-ng.o] Error 1

make[1]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make: *** [install] Error 2

What could be the reason?

use lib64 instead of lib

linking skipped the libraray in lib.

I found missed package for sqlite, and now I able to create binaries, but I can’t install it to system with sudo

dem@dem-laptop:~/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda$ sudo make CUDA=true sqlite=true unstable=true install

[sudo] password for dem: 

make -C src install

make[1]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make -C osdep

make[2]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

Building for Linux

make[3]: Entering directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o osdep.o osdep.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o network.o network.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o linux.o linux.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o linux_tap.o linux_tap.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o radiotap-parser.o radiotap-parser.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o common.o common.c

ar cru libosdep.a  osdep.o network.o linux.o linux_tap.o radiotap-parser.o common.o

ranlib libosdep.a 

touch .os.Linux

make[3]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

make[2]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src/osdep'

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o aircrack-ng.o aircrack-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o crypto.o crypto.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o common.o common.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o uniqueiv.o uniqueiv.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o aircrack-ptw-lib.o aircrack-ptw-lib.c

/bin/nvcc --compiler-options -fno-strict-aliasing --host-compilation=C -I. -I/include -DUNIX -maxrregcount 12  -o cudacrypto.o -c cudacrypto.cu

make[1]: /bin/nvcc: Command not found

make[1]: *** [cudacrypto.o] Error 127

make[1]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_rev_1623/aircrack-ng-cuda/src'

make: *** [install] Error 2

P.S. bashrc same as above, driver changed to 190.25 Beta, kernel- 2.6.30-rc5

sudo is ultra-protective and clears your environment to the default. If you just have your nvcc $PATH set in your user environment, commands run in sudo will not have it. Set the path for nvcc in the system bash_profile.

Sorry, but Where I have to create .bash_profile? I tried to create in home folder same error. Or Should it be in /root ?

Does it should include only these lines?:

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/cuda/bin:/usr/bin:$PATH

 LD_LIBRARY_PATH=/usr/local/cuda/cudaprof/bin:/usr/local/cuda/lib64:/home/dem/NVIDIA_GPU_Computing_SDK/shared/lib/linux

 CUDA_INSTALL_PATH=/usr/local/cuda

 SDK_INSTALL_PATH=/home/dem/NVIDIA_GPU_Computing_SDK

 export PATH

 export LD_LIBRARY_PATH

 export CUDA_INSTALL_PATH

 export SDK_INSTALL_PATH

And here is

Makefile

.bash_profile goes in your home directory

I added .bash_profile to my ~/, but compiler still comply to /bin/nvcc

include -DHAVE_SQLITE -fPIC -I..	-c -o osdep.o osdep.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o network.o network.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o linux.o linux.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o linux_tap.o linux_tap.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o radiotap-parser.o radiotap-parser.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -fPIC -I..	-c -o common.o common.c

ar cru libosdep.a  osdep.o network.o linux.o linux_tap.o radiotap-parser.o common.o

ranlib libosdep.a 

touch .os.Linux

make[3]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_cuda_1623/src/osdep'

make[2]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_cuda_1623/src/osdep'

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o aircrack-ng.o aircrack-ng.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o crypto.o crypto.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o common.o common.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o uniqueiv.o uniqueiv.c

gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=-1  -I/usr/local/include -DHAVE_SQLITE -Iinclude -DCUDA_ENABLED   -c -o aircrack-ptw-lib.o aircrack-ptw-lib.c

/bin/nvcc --compiler-options -fno-strict-aliasing --host-compilation=C -I. -I/include -DUNIX -maxrregcount 12  -o cudacrypto.o -c cudacrypto.cu

make[1]: /bin/nvcc: Command not found

make[1]: *** [cudacrypto.o] Error 127

make[1]: Leaving directory `/home/dem/COMPILATION/aircrack-ng_cuda_1623/src'

make: *** [install] Error 2