Closed viethungmdc closed 6 years ago
AFAIK, the binary from the build process which is installed is "xmr-stak", not "minerd".
Is this a complete code?
sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev
git clone https://github.com/fireice-uk/xmr-stak.git && mkdir xmr-stak/build && cd xmr-stak/build
cmake ..
make install
screen -S xmr-stak ./xmr-stak -a cryptonight --url=stratum+tcp://us-east.cryptonight-hub.miningpoolhub.com:20580 -u WORKER -p x
This is the output after I do not use 'screen' anymore
a2@a2:~/xmr-stak/build$ make install ./xmr-stak -a cryptonight --url=stratum+tcp://us-east.cryptonight-hub.miningpoolhub.com:20580 -u Worked.ID -p x
make: invalid option -- 'a'
make: unrecognized option '--url=stratum+tcp://us-east.cryptonight-hub.miningpoolhub.com:20580'
make: invalid option -- 'u'
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging information.
-e, --environment-overrides
Environment variables override makefiles.
--eval=STRING Evaluate STRING as a makefile statement.
-f FILE, --file=FILE, --makefile=FILE
Read FILE as a makefile.
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from recipes.
-I DIRECTORY, --include-dir=DIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
-k, --keep-going Keep going when some targets can't be made.
-l [N], --load-average[=N], --max-load[=N]
Don't start multiple jobs unless load is below N.
-L, --check-symlink-times Use the latest mtime between symlinks and target.
-n, --just-print, --dry-run, --recon
Don't actually run any recipe; just print them.
-o FILE, --old-file=FILE, --assume-old=FILE
Consider FILE to be very old and don't remake it.
-O[TYPE], --output-sync[=TYPE]
Synchronize output of parallel jobs by TYPE.
-p, --print-data-base Print make's internal database.
-q, --question Run no recipe; exit status says if up to date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
-s, --silent, --quiet Don't echo recipes.
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them.
--trace Print tracing information.
-v, --version Print the version number of make and exit.
-w, --print-directory Print the current directory.
--no-print-directory Turn off -w, even if it was turned on implicitly.
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is referenced.
This program built for x86_64-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
# GNU Make 4.1
# Built for x86_64-pc-linux-gnu
# Copyright (C) 1988-2014 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
# Make data base, printed on Tue Dec 12 05:32:15 2017
# Variables
# default
.SHELLFLAGS := -c
# environment
SHELL = /bin/bash
# environment
_ = /usr/bin/make
# environment
GNUMAKEFLAGS :=
# environment
XDG_DATA_DIRS = /usr/local/share:/usr/share:/var/lib/snapd/desktop
# environment
LESSOPEN = | /usr/bin/lesspipe %s
# environment
SSH_CONNECTION = 14.177.163.16 62116 10.0.0.11 22
# environment
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
# environment
SSH_TTY = /dev/pts/0
# environment
XDG_RUNTIME_DIR = /run/user/1000
# default
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load
# environment
LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
# environment
PWD = /home/a2/xmr-stak/build
# environment
HOME = /home/a2
# environment
LESSCLOSE = /usr/bin/lesspipe %s %s
# environment
LOGNAME = a2
# default
MAKECMDGOALS := install xmr-stak cryptonight Worker.ID x
# environment
SHLVL = 1
# environment
XDG_SESSION_ID = 5
# environment
USER = a2
# environment
OLDPWD = /home/a2
# default
.VARIABLES :=
# environment
SSH_CLIENT = 14.177.163.16 62116 22
# environment
MAIL = /var/mail/a2
# default
.RECIPEPREFIX :=
# environment
LANG = en_US.UTF-8
# environment
TERM = xterm
# variable set hash-table stats:
# Load=27/1024=3%, Rehash=0, Collisions=0/38=0%
# Pattern-specific Variable Values
# No pattern-specific variable values.
# Directories
# No files, no impossibilities in 0 directories.
# Implicit Rules
# No implicit rules.
# Files
# Not a target:
x:
# Command line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# Not a target:
Worker.ID :
# Command line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# Not a target:
cryptonight:
# Command line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# Not a target:
xmr-stak:
# Command line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# Not a target:
install:
# Command line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# files hash-table stats:
# Load=5/1024=0%, Rehash=0, Collisions=0/5=0%
# VPATH Search Paths
# No 'vpath' search paths.
# No general ('VPATH' variable) search path.
# strcache buffers: 1 (0) / strings = 5 / storage = 47 B / avg = 9 B
# current buf: size = 8162 B / used = 47 B / count = 5 / avg = 9 B
# strcache performance: lookups = 10 / hit rate = 50%
# hash-table stats:
# Load=5/8192=0%, Rehash=0, Collisions=0/10=0%
# Finished Make data base on Tue Dec 12 05:32:15 2017
a2@a2:~/xmr-stak/build$
I may be wrong but it appears you are not following the compile instructions.
"make install ./xmr-stak" is a complete nonsense...
@JerichoJones i add code at compile instructions but not run, error at code cmake ..
Error : root@z1:~/xmr-stak/build# cmake .. The program 'cmake' is currently not installed. You can install it by typing: apt install cmake
and i install cmake but dont it :(
@viethungmdc You'll need to get cmake installed properly.
Hi, i paste code miner xmr-stak but error, i mining on the pool miningpoolhub, my code:
Error '-DCMAKE_LINK_STATIC=OFF' and 'no such file minerd'