handshake-org / hs-miner

Mining infrastructure for handshake
Other
74 stars 19 forks source link

CentOS Issue #2

Closed gavinmcdermott closed 6 years ago

gavinmcdermott commented 6 years ago

Hey all,

I'm attempting to get hsk-miner running on a linux box here at the CoLab, and running into the issue in the screenshot below (dumped with strace).

screen shot 2018-03-30 at 5 48 35 pm

Relevant system details:

CentOS Linux release 7.4.1708 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.4.1708 (Core)
CentOS Linux release 7.4.1708 (Core)

Relevant process details:

I'm able to npm install, make, rebuild, etc. without issue. The problem arises when attempting to run the hsk-miner command.

Any suggestions? Thank you in advance, folks.

chjj commented 6 years ago

Looks like it linked to the cuda runtime library, but can't seem to find it at runtime. Did you build this on a different machine than you ran it? Do you know where libcudart is installed? On linux it's usually in /opt/cuda or /usr/local/cuda. From the strace, I don't see the linker looking at any of the usual suspects.

Maybe try $ LD_LIBRARY_PATH=/opt/cuda/lib64:/usr/local/cuda/lib64:/opt/cuda/lib:/usr/local/cuda/lib ./bin/hsk-miner real quick to see if it works?

gavinmcdermott commented 6 years ago

Thanks for the reply, @chjj; notes below:

Did you build this on a different machine than you ran it?

Yep

Do you know where libcudart is installed?

Installed in /usr/local/cuda

I'll be on this tomorrow and give the LD_LIBRARY_PATH option a try—I'll let you know how it goes.

Thanks again!

gavinmcdermott commented 6 years ago

Looks like LD_LIBRARY_PATH was the culprit. Going to get the rest of things running now—thanks @chjj.