tsiv / ccminer-cryptonight

GNU General Public License v3.0
277 stars 285 forks source link

/usr/bin/ld: cannot find -lcudart #39

Open WouterSchaekers opened 6 years ago

WouterSchaekers commented 6 years ago

During make, I get next error:

gcc -g -O2 -pthread -L/usr/local/cuda/lib64 -o ccminer ccminer-cpu-miner.o ccminer-util.o ccminer-sha2.o cryptonight/cryptonight.o cryptonight/cuda_cryptonight_core.o cryptonight/cuda_cryptonight_extra.o ccminer-cryptonight.o crypto/ccminer-oaes_lib.o crypto/ccminer-c_keccak.o crypto/ccminer-c_groestl.o crypto/ccminer-c_blake256.o crypto/ccminer-c_jh.o crypto/ccminer-c_skein.o crypto/ccminer-aesb.o -lcurl -ljansson -lpthread -lcudart -static-libstdc++ -fopenmp -lcrypto -lssl -lcrypto -lssl /usr/bin/ld: cannot find -lcudart collect2: error: ld returned 1 exit status

AndreyNag commented 6 years ago

try to apt install libcudart7.5

WouterSchaekers commented 6 years ago

I work on Arch Linux, so I have no apt available. When trying to pacman this file, I cannot seem to find it... :(

Zenitur commented 6 years ago

Before build, run ./autogen.sh, because of "configure" script needs to be updated.

./configure --with-cuda=/usr/local/cuda-5.5

I'm using 5.5 version (not latest), but you can try 7.5 version.

Start with a command:

LD_LIBRARY_PATH=/usr/local/cuda/lib64 ./ccminer

Or add /usr/local/cuda/lib and /usr/local/cuda/lib64 in ld.conf.