compiling openssl make[2]: Entering directory `../openssl-0.9.8m/openssl-0.9.8m/crypto/engine' nvcc -c -o eng_gpu.cu.o eng_gpu.cu -I/opt/cuda/sdk/common/inc -DUNIX -O3 --host-compilation C make[2]: nvcc: Command not found make[2]: *** [cuda] Error 127 make[2]: Leaving directory `../openssl-0.9.8m/openssl-0.9.8m/crypto/engine' solution export PATH="$PATH:/usr/local/cuda/bin" or export PATH="$PATH:/opt/cuda/bin" or export PATH="$PATH:" ----------- make[2]: Entering directory `../openssl-0.9.8m/openssl-0.9.8m/crypto/engine' nvcc -c -o eng_gpu.cu.o eng_gpu.cu -I/opt/cuda/sdk/common/inc -DUNIX -O3 --host-compilation C /usr/include/bits/string3.h:49: error: inline function 'memcpy' cannot be declared weak /usr/include/bits/string3.h:78: error: inline function 'memset' cannot be declared weak /usr/include/bits/mathinline.h:128: error: inline function '__signbitf' cannot be declared weak /usr/include/bits/mathinline.h:134: error: inline function '__signbit' cannot be declared weak .... usr/include/bits/mathinline.h:732: error: inline function '__finite' cannot be declared weak In file included from /tmp/tmpxft_00006065_00000000-1_eng_gpu.cudafe1.stub.c:6, from eng_gpu.cu:292: /usr/local/cuda/bin/../include/crt/host_runtime.h:178: warning: 'struct surfaceReference' declared inside parameter list /usr/local/cuda/bin/../include/crt/host_runtime.h:178: warning: its scope is only this definition or declaration, which is probably not what you want make[2]: *** [cuda] Error 255 solution switch to gcc 4.3 ------------ eng_gpu.c: In function 'gpu_init': eng_gpu.c:77: warning: implicit declaration of function 'init_cuda' eng_gpu.c: In function 'gpu_finish': eng_gpu.c:84: warning: implicit declaration of function 'finish_cuda' eng_gpu.c: In function 'gpu_aes_init_key': eng_gpu.c:153: warning: implicit declaration of function 'memset' eng_gpu.c:153: warning: incompatible implicit declaration of built-in function 'memset' eng_gpu.c:157: warning: implicit declaration of function 'init_key_cuda' eng_gpu.c:151: warning: unused variable 'j' eng_gpu.c:151: warning: unused variable 'i' eng_gpu.c: In function 'gpu_aes_cipher': eng_gpu.c:172: warning: implicit declaration of function 'cipher_cuda' make[2]: *** No rule to make target `eng_gpu.cu.o', needed by `lib'. Stop. make[2]: Leaving directory `../openssl-1.0.0/crypto/engine' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `../opennssl-1.0.0/openssl-1.0.0/crypto' make: *** [build_crypto] Error 1 solution be sure, that in file 'OPENSSL_ROOT/crypto/engine/Makefile' all: target has 'cuda' before 'lib'