hi, can I mining lbry in linux?
I have a NVIDIA as my GPU, and I'm difficultly installing sgminer
I'm noob in linux and the first time using linux. I'm not familiar with command line and instruction in
https://github.com/lbryio/lbrycrd-gpuMandatory:
curl dev library -
libcurl4-openssl-dev on Debian
pkg-config
libtool
AMD APP SDK - available under various names as a package on different GNU/Linux distributions
Optional:
curses dev library -
libncurses5-dev on Debian or
libpdcurses on WIN32, for text user interface
AMD ADL SDK - version 6, required for ATI GPU monitoring & clocking
If building from git:
autoconf
automake
sgminer-specific configuration options:
--disable-adl Override detection and disable building with adl
--disable-adl-checks
--without-curses Do not compile support for curses TUI
Debian Example
apt-get install libcurl4-openssl-dev pkg-config libtool libncurses5-dev
AMD APP SDK and AMD ADL SDK must be downloaded from the amd websites.
*nix build instructions
If needed, place include headers (*.h files) from ADL_SDK_*
*.zip in sgminer/ADL_SDK.
Then:
git submodule init
git submodule update
autoreconf -i
CFLAGS="-O2 -Wall -march=native -std=gnu99" ./configure
make
To compile a version that can be used accross machines, remove -march=native.
To compile a debug version, replace -O2 with -ggdb.
Depending on your environment, replace -std=gnu99 with -std=c99.
Systemwide installation is optional. You may run sgminer from the build directory directly, or make install if you wish to install sgminer to a system location or a location you specified with --prefix.
I try continued and I have following instruction in site but it is always unsuccessful.
and this is my last log when I using make command
------------------------------------------------------------------------
sgminer 5.4.0-nicehash
------------------------------------------------------------------------
Configuration Options Summary:
Use git version......: no
libcurl(GBT+getwork).: Enabled: -lcurl
curses.TUI...........: FOUND: -lncurses
OpenCL...............: NOT FOUND. GPU mining support DISABLED
configure: error: OpenCL not found
bb2ebb lbrycrd-gpu-0.0.1 # make
make all-recursive
make[1]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1'
Making all in lib
make[2]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/lib'
GEN arg-nonnull.h
GEN c++defs.h
GEN warn-on-use.h
GEN signal.h
GEN string.h
make all-recursive
make[3]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/lib'
make[4]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/lib'
CC dummy.o
AR libgnu.a
make[4]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/lib'
make[3]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/lib'
make[2]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/lib'
Making all in submodules
make[2]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules'
Making all in jansson
make[3]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson'
make all-recursive
make[4]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson'
Making all in doc
make[5]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/doc'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/doc'
Making all in src
make[5]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT dump.lo -MD -MP -MF .deps/dump.Tpo -c -o dump.lo dump.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT dump.lo -MD -MP -MF .deps/dump.Tpo -c dump.c -fPIC -DPIC -o .libs/dump.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT dump.lo -MD -MP -MF .deps/dump.Tpo -c dump.c -o dump.o >/dev/null 2>&1
mv -f .deps/dump.Tpo .deps/dump.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT error.lo -MD -MP -MF .deps/error.Tpo -c -o error.lo error.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -fPIC -DPIC -o .libs/error.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -o error.o >/dev/null 2>&1
mv -f .deps/error.Tpo .deps/error.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT hashtable.lo -MD -MP -MF .deps/hashtable.Tpo -c -o hashtable.lo hashtable.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT hashtable.lo -MD -MP -MF .deps/hashtable.Tpo -c hashtable.c -fPIC -DPIC -o .libs/hashtable.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT hashtable.lo -MD -MP -MF .deps/hashtable.Tpo -c hashtable.c -o hashtable.o >/dev/null 2>&1
mv -f .deps/hashtable.Tpo .deps/hashtable.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT hashtable_seed.lo -MD -MP -MF .deps/hashtable_seed.Tpo -c -o hashtable_seed.lo hashtable_seed.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT hashtable_seed.lo -MD -MP -MF .deps/hashtable_seed.Tpo -c hashtable_seed.c -fPIC -DPIC -o .libs/hashtable_seed.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT hashtable_seed.lo -MD -MP -MF .deps/hashtable_seed.Tpo -c hashtable_seed.c -o hashtable_seed.o >/dev/null 2>&1
mv -f .deps/hashtable_seed.Tpo .deps/hashtable_seed.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT load.lo -MD -MP -MF .deps/load.Tpo -c -o load.lo load.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT load.lo -MD -MP -MF .deps/load.Tpo -c load.c -fPIC -DPIC -o .libs/load.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT load.lo -MD -MP -MF .deps/load.Tpo -c load.c -o load.o >/dev/null 2>&1
mv -f .deps/load.Tpo .deps/load.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT memory.lo -MD -MP -MF .deps/memory.Tpo -c -o memory.lo memory.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT memory.lo -MD -MP -MF .deps/memory.Tpo -c memory.c -fPIC -DPIC -o .libs/memory.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT memory.lo -MD -MP -MF .deps/memory.Tpo -c memory.c -o memory.o >/dev/null 2>&1
mv -f .deps/memory.Tpo .deps/memory.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT pack_unpack.lo -MD -MP -MF .deps/pack_unpack.Tpo -c -o pack_unpack.lo pack_unpack.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT pack_unpack.lo -MD -MP -MF .deps/pack_unpack.Tpo -c pack_unpack.c -fPIC -DPIC -o .libs/pack_unpack.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT pack_unpack.lo -MD -MP -MF .deps/pack_unpack.Tpo -c pack_unpack.c -o pack_unpack.o >/dev/null 2>&1
mv -f .deps/pack_unpack.Tpo .deps/pack_unpack.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT strbuffer.lo -MD -MP -MF .deps/strbuffer.Tpo -c -o strbuffer.lo strbuffer.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT strbuffer.lo -MD -MP -MF .deps/strbuffer.Tpo -c strbuffer.c -fPIC -DPIC -o .libs/strbuffer.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT strbuffer.lo -MD -MP -MF .deps/strbuffer.Tpo -c strbuffer.c -o strbuffer.o >/dev/null 2>&1
mv -f .deps/strbuffer.Tpo .deps/strbuffer.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT strconv.lo -MD -MP -MF .deps/strconv.Tpo -c -o strconv.lo strconv.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT strconv.lo -MD -MP -MF .deps/strconv.Tpo -c strconv.c -fPIC -DPIC -o .libs/strconv.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT strconv.lo -MD -MP -MF .deps/strconv.Tpo -c strconv.c -o strconv.o >/dev/null 2>&1
mv -f .deps/strconv.Tpo .deps/strconv.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT utf.lo -MD -MP -MF .deps/utf.Tpo -c -o utf.lo utf.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT utf.lo -MD -MP -MF .deps/utf.Tpo -c utf.c -fPIC -DPIC -o .libs/utf.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT utf.lo -MD -MP -MF .deps/utf.Tpo -c utf.c -o utf.o >/dev/null 2>&1
mv -f .deps/utf.Tpo .deps/utf.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT value.lo -MD -MP -MF .deps/value.Tpo -c -o value.lo value.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT value.lo -MD -MP -MF .deps/value.Tpo -c value.c -fPIC -DPIC -o .libs/value.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -MT value.lo -MD -MP -MF .deps/value.Tpo -c value.c -o value.o >/dev/null 2>&1
mv -f .deps/value.Tpo .deps/value.Plo
/bin/bash ../libtool --tag=CC --mode=link gcc -Wall -Wextra -Wdeclaration-after-statement -O3 -Wall -march=native -no-undefined -export-symbols-regex '^json_' -version-info 11:0:7 -o libjansson.la -rpath /usr/local/lib dump.lo error.lo hashtable.lo hashtable_seed.lo load.lo memory.lo pack_unpack.lo strbuffer.lo strconv.lo utf.lo value.lo
libtool: link: /usr/bin/nm -B .libs/dump.o .libs/error.o .libs/hashtable.o .libs/hashtable_seed.o .libs/load.o .libs/memory.o .libs/pack_unpack.o .libs/strbuffer.o .libs/strconv.o .libs/utf.o .libs/value.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libjansson.exp
libtool: link: /bin/grep -E -e "^json_" ".libs/libjansson.exp" > ".libs/libjansson.expT"
libtool: link: mv -f ".libs/libjansson.expT" ".libs/libjansson.exp"
libtool: link: echo "{ global:" > .libs/libjansson.ver
libtool: link: cat .libs/libjansson.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libjansson.ver
libtool: link: echo "local: *; };" >> .libs/libjansson.ver
libtool: link: gcc -shared -fPIC -DPIC .libs/dump.o .libs/error.o .libs/hashtable.o .libs/hashtable_seed.o .libs/load.o .libs/memory.o .libs/pack_unpack.o .libs/strbuffer.o .libs/strconv.o .libs/utf.o .libs/value.o -O3 -march=native -Wl,-soname -Wl,libjansson.so.4 -Wl,-version-script -Wl,.libs/libjansson.ver -o .libs/libjansson.so.4.7.0
libtool: link: (cd ".libs" && rm -f "libjansson.so.4" && ln -s "libjansson.so.4.7.0" "libjansson.so.4")
libtool: link: (cd ".libs" && rm -f "libjansson.so" && ln -s "libjansson.so.4.7.0" "libjansson.so")
libtool: link: ar cru .libs/libjansson.a dump.o error.o hashtable.o hashtable_seed.o load.o memory.o pack_unpack.o strbuffer.o strconv.o utf.o value.o
libtool: link: ranlib .libs/libjansson.a
libtool: link: ( cd ".libs" && rm -f "libjansson.la" && ln -s "../libjansson.la" "libjansson.la" )
make[5]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/src'
Making all in test
make[5]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test'
Making all in bin
make[6]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test/bin'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test/bin'
Making all in suites
make[6]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test/suites'
Making all in api
make[7]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test/suites/api'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test/suites/api'
make[7]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test/suites'
make[7]: Nothing to be done for `all-am'.
make[7]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test/suites'
make[6]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test/suites'
make[6]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test'
make[5]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson/test'
make[5]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson'
make[5]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson'
make[4]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson'
make[3]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules/jansson'
make[3]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules'
make[2]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/submodules'
Making all in ccan
make[2]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/ccan'
CC opt/libccan_a-helpers.o
CC opt/libccan_a-opt.o
CC opt/libccan_a-parse.o
CC opt/libccan_a-usage.o
AR libccan.a
make[2]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/ccan'
Making all in sph
make[2]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1/sph'
CC bmw.o
CC echo.o
CC jh.o
CC luffa.o
CC simd.o
CC blake.o
CC cubehash.o
CC groestl.o
CC keccak.o
CC shavite.o
CC skein.o
CC sha2.o
CC sha2big.o
CC fugue.o
CC hamsi.o
CC panama.o
CC shabal.o
CC whirlpool.o
CC sha256_Y.o
In file included from sha256_Y.c:32:0:
../algorithm/sysendian.h:46:18: warning: ‘le32dec’ defined but not used [-Wunused-function]
static uint32_t le32dec(const void *pp)
^
../algorithm/sysendian.h:75:14: warning: ‘le32enc’ defined but not used [-Wunused-function]
static void le32enc(void *pp, uint32_t x)
^
../algorithm/sysendian.h:86:1: warning: ‘be64dec’ defined but not used [-Wunused-function]
be64dec(const void *pp)
^
../algorithm/sysendian.h:97:1: warning: ‘be64enc’ defined but not used [-Wunused-function]
be64enc(void *pp, uint64_t x)
^
../algorithm/sysendian.h:114:1: warning: ‘le64dec’ defined but not used [-Wunused-function]
le64dec(const void *pp)
^
../algorithm/sysendian.h:125:1: warning: ‘le64enc’ defined but not used [-Wunused-function]
le64enc(void *pp, uint64_t x)
^
CC ripemd.o
AR libsph.a
make[2]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1/sph'
make[2]: Entering directory `/root/Downloads/lbrycrd-gpu-0.0.1'
CC sgminer-sgminer.o
In file included from miner.h:40:0,
from sgminer.c:54:
algorithm.h:7:19: fatal error: CL/cl.h: No such file or directory
#include
^
compilation terminated.
make[2]: *** [sgminer-sgminer.o] Error 1
make[2]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Downloads/lbrycrd-gpu-0.0.1'
make: *** [all] Error 2
bb2ebb lbrycrd-gpu-0.0.1 # sgminer --help
No command 'sgminer' found, did you mean:
Command 'cgminer' from package 'cgminer' (universe)
sgminer: command not found
bb2ebb lbrycrd-gpu-0.0.1 #
is there can be help me
thanks