Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WouterSchaekers opened this issue Jan 6, 2018 · 3 comments
Open

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

WouterSchaekers opened this issue Jan 6, 2018 · 3 comments

Comments

@WouterSchaekers
Copy link

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
Copy link

try to apt install libcudart7.5

@WouterSchaekers
Copy link
Author

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

@Zenitur
Copy link

Zenitur commented Jan 25, 2018

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.

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

No branches or pull requests

3 participants