Skip to content

Instantly share code, notes, and snippets.

@stackola
Last active January 17, 2018 18:37
Show Gist options
  • Save stackola/65cbf9f00afec2c3a57b8ba1fa59b774 to your computer and use it in GitHub Desktop.
Save stackola/65cbf9f00afec2c3a57b8ba1fa59b774 to your computer and use it in GitHub Desktop.
How to install ccminer-nanashi on arch

use https://github.com/AngelQuirogaM/ccminer-nanashi

install libcurl-openssl-1.0 from AUR

install gcc-6 and cuda 9

In Makefile.am:

Change gcc-4.9 to gcc-6 in line 85

--compiler-bindir /usr/bin/gcc-6

Just below that, enable the compute architectures you need for your GPUS

In configure.ac change :76

AC_CHECK_LIB([ssl],[SSL_library_init], [], [AC_MSG_ERROR([OpenSSL library required])])

to

AC_CHECK_LIB([ssl],[SSL_free], [], [AC_MSG_ERROR([OpenSSL library required])])

Run:

./autogen.sh

./configure CUDA_CFLAGS='--shared --compiler-options "-fPIC"' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --with-cuda=/opt/cuda

Add:

PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig                                                                
CFLAGS+="-I/usr/include/openssl-1.0"                                                                          
LDFLAGS+="-L/usr/lib/openssl-1.0"                                                                             
LDFLAGS+="-L/usr/lib/libcurl-openssl-1.0/"

to around line 575, just before the ":all" line in Makefile (not .am) then around line 494 there's a DEF_INCLUDES= add -I/usr/include/openssl-1.0 at the end of it good luck.

make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment