ccminer-cryptonight icon indicating copy to clipboard operation
ccminer-cryptonight copied to clipboard

/usr/bin/ld: cannot find -lcudart

Open WouterSchaekers opened this issue 7 years ago • 3 comments

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

WouterSchaekers avatar Jan 06 '18 18:01 WouterSchaekers

try to apt install libcudart7.5

AndreyNag avatar Jan 06 '18 19:01 AndreyNag

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

WouterSchaekers avatar Jan 10 '18 16:01 WouterSchaekers

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.

Zenitur avatar Jan 25 '18 11:01 Zenitur