Transisto (OP)
Donator
Legendary
Offline
Activity: 1731
Merit: 1008
|
|
November 05, 2011, 09:48:44 AM |
|
I have some miners using linux for mining. I would need some noobs instructions for having this running. I did "Dependency Build Instructions" for debian, don't want upnp, no qt UI, I'm currently in front this page long building error, makefile.unix:131: warning: overriding commands for target `obj/nogui/scrypt.o' makefile.unix:128: warning: ignoring old commands for target `obj/nogui/scrypt.o ' g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -DUSE_UPNP=0 -DUSE_SS L -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOU RCE=2 -O2 -MMD -o obj/nogui/crypter.o crypter.cpp In file included from crypter.cpp:9: headers.h:36:20: warning: db_cxx.h: No such file or directory In file included from main.h:12, from headers.h:89, from crypter.cpp:9: db.h:29: error: âDbEnvâ does not name a type db.h:42: error: ISO C++ forbids declaration of âDbâ with no type db.h:42: error: expected â;â before â*â token db.h:44: error: âDbTxnâ was not declared in this scope db.h:44: error: template argument 1 is invalid db.h:44: error: template argument 2 is invalid db.h:157: error: ISO C++ forbids declaration of âDbcâ with no type db.h:157: error: expected â;â before â*â token db.h:168: error: expected â;â before âintâ db.h:168: error: âDbcâ has not been declared db.h:207: error: ISO C++ forbids declaration of âDbTxnâ with no type db.h:207: error: expected â;â before â*â token db.h:215: error: expected â;â before âpublicâ db.h:168: error: âDB_NEXTâ was not declared in this scope db.h: In member function âbool CDB::Read(const K&, T&)â: db.h:59: error: âpdbâ was not declared in this scope db.h:66: error: âDbtâ was not declared in this scope db.h:66: error: expected â;â before âdatKeyâ db.h:69: error: expected â;â before âdatValueâ db.h:70: error: âdatValueâ was not declared in this scope db.h:70: error: âDB_DBT_MALLOCâ was not declared in this scope db.h:71: error: âpdbâ was not declared in this scope db.h:71: error: there are no arguments to âGetTxnâ that depend on a template par ameter, so a declaration of âGetTxnâ must be available db.h:71: note: (if you use â-fpermissiveâ, G++ will accept your code, but allowi ng the use of an undeclared name is deprecated) db.h:71: error: âdatKeyâ was not declared in this scope db.h: In member function âbool CDB::Write(const K&, const T&, bool)â: db.h:89: error: âpdbâ was not declared in this scope db.h:98: error: âDbtâ was not declared in this scope db.h:98: error: expected â;â before âdatKeyâ db.h:104: error: expected â;â before âdatValueâ db.h:107: error: âpdbâ was not declared in this scope db.h:107: error: there are no arguments to âGetTxnâ that depend on a template pa rameter, so a declaration of âGetTxnâ must be available db.h:107: error: âdatKeyâ was not declared in this scope db.h:107: error: âdatValueâ was not declared in this scope db.h:107: error: âDB_NOOVERWRITEâ was not declared in this scope db.h: In member function âbool CDB::Erase(const K&)â: db.h:118: error: âpdbâ was not declared in this scope db.h:127: error: âDbtâ was not declared in this scope db.h:127: error: expected â;â before âdatKeyâ db.h:130: error: âpdbâ was not declared in this scope db.h:130: error: there are no arguments to âGetTxnâ that depend on a template pa rameter, so a declaration of âGetTxnâ must be available db.h:130: error: âdatKeyâ was not declared in this scope db.h:134: error: âDB_NOTFOUNDâ was not declared in this scope db.h: In member function âbool CDB::Exists(const K&)â: db.h:140: error: âpdbâ was not declared in this scope db.h:147: error: âDbtâ was not declared in this scope db.h:147: error: expected â;â before âdatKeyâ db.h:150: error: âpdbâ was not declared in this scope db.h:150: error: there are no arguments to âGetTxnâ that depend on a template pa rameter, so a declaration of âGetTxnâ must be available db.h:150: error: âdatKeyâ was not declared in this scope db.h: In member function âint CDB::ReadAtCursor(int*, CDataStream&, CDataStream& , unsigned int)â: db.h:171: error: âDbtâ was not declared in this scope db.h:171: error: expected â;â before âdatKeyâ db.h:172: error: âDB_SETâ was not declared in this scope db.h:172: error: âDB_SET_RANGEâ was not declared in this scope db.h:172: error: âDB_GET_BOTHâ was not declared in this scope db.h:172: error: âDB_GET_BOTH_RANGEâ was not declared in this scope db.h:174: error: âdatKeyâ was not declared in this scope db.h:177: error: expected â;â before âdatValueâ db.h:178: error: âDB_GET_BOTHâ was not declared in this scope db.h:178: error: âDB_GET_BOTH_RANGEâ was not declared in this scope db.h:180: error: âdatValueâ was not declared in this scope db.h:183: error: âdatKeyâ was not declared in this scope db.h:183: error: âDB_DBT_MALLOCâ was not declared in this scope db.h:184: error: âdatValueâ was not declared in this scope db.h:185: error: request for member âgetâ in â* pcursorâ, which is of non-class type âintâ db.h: In member function âbool CDB::TxnBegin()â: db.h:218: error: âpdbâ was not declared in this scope db.h:220: error: âDbTxnâ was not declared in this scope db.h:220: error: âptxnâ was not declared in this scope db.h:221: error: âdbenvâ was not declared in this scope db.h:221: error: âGetTxnâ was not declared in this scope db.h:221: error: âDB_TXN_NOSYNCâ was not declared in this scope db.h:224: error: request for member âpush_backâ in â((CDB*)this)->CDB::vTxnâ, wh ich is of non-class type âintâ db.h: In member function âbool CDB::TxnCommit()â: db.h:230: error: âpdbâ was not declared in this scope db.h:232: error: request for member âemptyâ in â((CDB*)this)->CDB::vTxnâ, which is of non-class type âintâ db.h:234: error: request for member âbackâ in â((CDB*)this)->CDB::vTxnâ, which i s of non-class type âintâ db.h:235: error: request for member âpop_backâ in â((CDB*)this)->CDB::vTxnâ, whi ch is of non-class type âintâ db.h: In member function âbool CDB::TxnAbort()â: db.h:241: error: âpdbâ was not declared in this scope db.h:243: error: request for member âemptyâ in â((CDB*)this)->CDB::vTxnâ, which is of non-class type âintâ db.h:245: error: request for member âbackâ in â((CDB*)this)->CDB::vTxnâ, which i s of non-class type âintâ db.h:246: error: request for member âpop_backâ in â((CDB*)this)->CDB::vTxnâ, whi ch is of non-class type âintâ make: *** [obj/nogui/crypter.o] Error 1
Do someone understand this gibberish ?
|
|
|
|
ArtForz
|
|
November 05, 2011, 11:17:49 AM |
|
I have some miners using linux for mining. I would need some noobs instructions for having this running. I did "Dependency Build Instructions" for debian, don't want upnp, no qt UI, I'm currently in front this page long building error, makefile.unix:131: warning: overriding commands for target `obj/nogui/scrypt.o' makefile.unix:128: warning: ignoring old commands for target `obj/nogui/scrypt.o ' g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -DUSE_UPNP=0 -DUSE_SS L -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOU RCE=2 -O2 -MMD -o obj/nogui/crypter.o crypter.cpp In file included from crypter.cpp:9: headers.h:36:20: warning: db_cxx.h: No such file or directory In file included from main.h:12, from headers.h:89, from crypter.cpp:9: db.h:29: error: âDbEnvâ does not name a type db.h:42: error: ISO C++ forbids declaration of âDbâ with no type db.h:42: error: expected â;â before â*â token db.h:44: error: âDbTxnâ was not declared in this scope db.h:44: error: template argument 1 is invalid db.h:44: error: template argument 2 is invalid db.h:157: error: ISO C++ forbids declaration of âDbcâ with no type db.h:157: error: expected â;â before â*â token db.h:168: error: expected â;â before âintâ db.h:168: error: âDbcâ has not been declared db.h:207: error: ISO C++ forbids declaration of âDbTxnâ with no type db.h:207: error: expected â;â before â*â token db.h:215: error: expected â;â before âpublicâ db.h:168: error: âDB_NEXTâ was not declared in this scope db.h: In member function âbool CDB::Read(const K&, T&)â: db.h:59: error: âpdbâ was not declared in this scope db.h:66: error: âDbtâ was not declared in this scope db.h:66: error: expected â;â before âdatKeyâ db.h:69: error: expected â;â before âdatValueâ db.h:70: error: âdatValueâ was not declared in this scope db.h:70: error: âDB_DBT_MALLOCâ was not declared in this scope db.h:71: error: âpdbâ was not declared in this scope db.h:71: error: there are no arguments to âGetTxnâ that depend on a template par ameter, so a declaration of âGetTxnâ must be available db.h:71: note: (if you use â-fpermissiveâ, G++ will accept your code, but allowi ng the use of an undeclared name is deprecated) db.h:71: error: âdatKeyâ was not declared in this scope db.h: In member function âbool CDB::Write(const K&, const T&, bool)â: db.h:89: error: âpdbâ was not declared in this scope db.h:98: error: âDbtâ was not declared in this scope db.h:98: error: expected â;â before âdatKeyâ db.h:104: error: expected â;â before âdatValueâ db.h:107: error: âpdbâ was not declared in this scope db.h:107: error: there are no arguments to âGetTxnâ that depend on a template pa rameter, so a declaration of âGetTxnâ must be available db.h:107: error: âdatKeyâ was not declared in this scope db.h:107: error: âdatValueâ was not declared in this scope db.h:107: error: âDB_NOOVERWRITEâ was not declared in this scope db.h: In member function âbool CDB::Erase(const K&)â: db.h:118: error: âpdbâ was not declared in this scope db.h:127: error: âDbtâ was not declared in this scope db.h:127: error: expected â;â before âdatKeyâ db.h:130: error: âpdbâ was not declared in this scope db.h:130: error: there are no arguments to âGetTxnâ that depend on a template pa rameter, so a declaration of âGetTxnâ must be available db.h:130: error: âdatKeyâ was not declared in this scope db.h:134: error: âDB_NOTFOUNDâ was not declared in this scope db.h: In member function âbool CDB::Exists(const K&)â: db.h:140: error: âpdbâ was not declared in this scope db.h:147: error: âDbtâ was not declared in this scope db.h:147: error: expected â;â before âdatKeyâ db.h:150: error: âpdbâ was not declared in this scope db.h:150: error: there are no arguments to âGetTxnâ that depend on a template pa rameter, so a declaration of âGetTxnâ must be available db.h:150: error: âdatKeyâ was not declared in this scope db.h: In member function âint CDB::ReadAtCursor(int*, CDataStream&, CDataStream& , unsigned int)â: db.h:171: error: âDbtâ was not declared in this scope db.h:171: error: expected â;â before âdatKeyâ db.h:172: error: âDB_SETâ was not declared in this scope db.h:172: error: âDB_SET_RANGEâ was not declared in this scope db.h:172: error: âDB_GET_BOTHâ was not declared in this scope db.h:172: error: âDB_GET_BOTH_RANGEâ was not declared in this scope db.h:174: error: âdatKeyâ was not declared in this scope db.h:177: error: expected â;â before âdatValueâ db.h:178: error: âDB_GET_BOTHâ was not declared in this scope db.h:178: error: âDB_GET_BOTH_RANGEâ was not declared in this scope db.h:180: error: âdatValueâ was not declared in this scope db.h:183: error: âdatKeyâ was not declared in this scope db.h:183: error: âDB_DBT_MALLOCâ was not declared in this scope db.h:184: error: âdatValueâ was not declared in this scope db.h:185: error: request for member âgetâ in â* pcursorâ, which is of non-class type âintâ db.h: In member function âbool CDB::TxnBegin()â: db.h:218: error: âpdbâ was not declared in this scope db.h:220: error: âDbTxnâ was not declared in this scope db.h:220: error: âptxnâ was not declared in this scope db.h:221: error: âdbenvâ was not declared in this scope db.h:221: error: âGetTxnâ was not declared in this scope db.h:221: error: âDB_TXN_NOSYNCâ was not declared in this scope db.h:224: error: request for member âpush_backâ in â((CDB*)this)->CDB::vTxnâ, wh ich is of non-class type âintâ db.h: In member function âbool CDB::TxnCommit()â: db.h:230: error: âpdbâ was not declared in this scope db.h:232: error: request for member âemptyâ in â((CDB*)this)->CDB::vTxnâ, which is of non-class type âintâ db.h:234: error: request for member âbackâ in â((CDB*)this)->CDB::vTxnâ, which i s of non-class type âintâ db.h:235: error: request for member âpop_backâ in â((CDB*)this)->CDB::vTxnâ, whi ch is of non-class type âintâ db.h: In member function âbool CDB::TxnAbort()â: db.h:241: error: âpdbâ was not declared in this scope db.h:243: error: request for member âemptyâ in â((CDB*)this)->CDB::vTxnâ, which is of non-class type âintâ db.h:245: error: request for member âbackâ in â((CDB*)this)->CDB::vTxnâ, which i s of non-class type âintâ db.h:246: error: request for member âpop_backâ in â((CDB*)this)->CDB::vTxnâ, whi ch is of non-class type âintâ make: *** [obj/nogui/crypter.o] Error 1
Do someone understand this gibberish ? apt-get install libdb4.8++-dev (or 4.7 or 5.1 or whatever you want)
|
bitcoin: 1Fb77Xq5ePFER8GtKRn2KDbDTVpJKfKmpz i0coin: jNdvyvd6v6gV3kVJLD7HsB5ZwHyHwAkfdw
|
|
|
Transisto (OP)
Donator
Legendary
Offline
Activity: 1731
Merit: 1008
|
|
November 06, 2011, 04:46:36 AM |
|
did this then tried again , now got this, makefile.unix:131: warning: overriding commands for target `obj/nogui/scrypt.o' makefile.unix:128: warning: ignoring old commands for target `obj/nogui/scrypt.o' g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -DUSE_UPNP=0 -DUSE_SSL -fstack-p-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/nogui/crcrypter.cpp g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -DUSE_UPNP=0 -DUSE_SSL -fstack-p-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/nogui/dbp g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -DUSE_UPNP=0 -DUSE_SSL -fstack-p-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/nogui/int.cpp g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -DUSE_UPNP=0 -DUSE_SSL -fstack-p-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/nogui/ircpp g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -DUSE_UPNP=0 -DUSE_SSL -fstack-p-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/nogui/ke keystore.cpp g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -DUSE_UPNP=0 -DUSE_SSL -fstack-p-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/nogui/man.cpp g++ -c -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -DUSE_UPNP=0 -DUSE_SSL -fstack-p-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/nogui/necpp net.cpp:18:32: warning: miniupnpc/miniwget.h: No such file or directory net.cpp:19:33: warning: miniupnpc/miniupnpc.h: No such file or directory net.cpp:20:36: warning: miniupnpc/upnpcommands.h: No such file or directory net.cpp:21:34: warning: miniupnpc/upnperrors.h: No such file or directory net.cpp: In function âvoid ThreadMapPort2(void*)â: net.cpp:1138: error: âupnpDiscoverâ was not declared in this scope net.cpp:1140: error: aggregate âUPNPUrls urlsâ has incomplete type and cannot be defined net.cpp:1141: error: aggregate âIGDdatas dataâ has incomplete type and cannot be defined net.cpp:1144: error: âUPNP_GetValidIGDâ was not declared in this scope net.cpp:1151: error: âUPNP_AddPortMappingâ was not declared in this scope net.cpp:1153: error: âUPNPCOMMAND_SUCCESSâ was not declared in this scope net.cpp:1155: error: âstrupnperrorâ was not declared in this scope net.cpp:1161: error: âUPNP_DeletePortMappingâ was not declared in this scope net.cpp:1163: error: âfreeUPNPDevlistâ was not declared in this scope net.cpp:1164: error: âFreeUPNPUrlsâ was not declared in this scope net.cpp:1171: error: âfreeUPNPDevlistâ was not declared in this scope net.cpp:1173: error: âFreeUPNPUrlsâ was not declared in this scope make: *** [obj/nogui/net.o] Error 1
|
|
|
|
Transisto (OP)
Donator
Legendary
Offline
Activity: 1731
Merit: 1008
|
|
November 06, 2011, 07:49:15 AM |
|
Why can't we simply dl and run the x86 version ?
They bothered adding UPnP support but no care for Linux binaries ?
|
|
|
|
Transisto (OP)
Donator
Legendary
Offline
Activity: 1731
Merit: 1008
|
|
November 06, 2011, 08:01:11 AM |
|
Is there a path where I can type "./configure USE_UPNP=" and not get "No such file or directory" ?
|
|
|
|
Spacy
|
|
November 06, 2011, 08:10:06 AM |
|
Is there a path where I can type "./configure USE_UPNP=" and not get "No such file or directory" ? You can change the line in the makefile to USE_UPNP=
|
|
|
|
Transisto (OP)
Donator
Legendary
Offline
Activity: 1731
Merit: 1008
|
|
November 06, 2011, 08:39:59 AM |
|
I think I compiled the wrong thing, This gave me a 14mb litecoind.
All I want is something like phoenix, minerd scrypt, can run pointing to a pool and mine.
I have been mining on the default win GUI client for ~1 week and found 0 block, (with 7 thread, on an i7)
What instructions am I missing ? It look like an unfair launch for LiteCoin.
|
|
|
|
3phase
Sr. Member
Offline
Activity: 313
Merit: 251
Third score
|
|
November 06, 2011, 08:49:41 AM |
|
I was just typing a reply about compiling the daemon, but you probably want to compile the miner. Here's my own little script for new machines: sudo apt-get update sudo apt-get -y install build-essential git libcurl4-nss-dev automake git clone git://github.com/Lolcust/Tenebrix-miner miner cd miner ./autogen.sh CFLAGS="-march=native -O3 -Wall -msse2 -msse3 -msse4.1 -msse4.2 -msse4" ./configure make cp minerd ../ cd .. ./minerd --url http://{YOUR POOL} --user {USER} --pass {PASSWORD} -s 30 -t 4 The CFLAGS are good for all except the latest Sandybridge Intel. If you got that (i3/5/7 2xxx) then add a -mavx to the flags. If you have an older CPU, and the executable hangs with "invalid operation" or "segmentation fault" try to recompile by removing one by one the -msseX flags (4.2 first, then 4.1, then 4, if it still doesn't work, get a better CPU ) In the miner command line (last one above) the -t switch should match your number of cores. Good luck!
|
|
|
|
Transisto (OP)
Donator
Legendary
Offline
Activity: 1731
Merit: 1008
|
|
November 07, 2011, 03:15:21 AM Last edit: November 07, 2011, 03:26:53 AM by Transisto |
|
root@miner:/# cd .. root@miner:/# mkdir ~/src root@miner:/# cd ~/src root@miner:~/src# apt-get install git Reading package lists... Done Building dependency tree Reading state information... Done git is already the newest version. git set to manually installed. The following packages were automatically installed and are no longer required: libjpeg8 xli libjpeg-progs xscreensaver-data Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@miner:~/src# git clone https://github.com/ArtForz/cpuminer Cloning into cpuminer... remote: Counting objects: 676, done. remote: Compressing objects: 100% (299/299), done. remote: Total 676 (delta 432), reused 597 (delta 373) Receiving objects: 100% (676/676), 164.12 KiB, done. Resolving deltas: 100% (432/432), done. root@miner:~/src# cd cpuminer root@miner:~/src/cpuminer# ./configure CFLAGS=" -march=native -O3 -Wall -msse2 -msse3 -msse4.1 -msse4.2 -msse4" -bash: ./configure: No such file or directory root@miner:~/src/cpuminer# make^C root@miner:~/src/cpuminer# make make: *** No targets specified and no makefile found. Stop. root@miner:~/src/cpuminer# ^C root@miner:~/src/cpuminer# cd .. root@miner:~/src# cd .. root@miner:~# sudo apt-get update git clone git://github.com/Lolcust/Tenebrix-miner miner cd miner ./autogen.sh CFLAGS="-march=native -O3 -Wall -msse2 -msse3 -msse4.1 -msse4.2 -msse4" ./configure make cp minerd ../ cd ..sudo: unable to resolve host miner Get:1 http://cdn.debian.net stable Release.gpg [1,672 B] Ign http://cdn.debian.net/debian/ stable/main Translation-en Get:2 http://security.debian.org stable/updates Release.gpg [836 B] Ign http://security.debian.org/ stable/updates/main Translation-en Ign http://security.debian.org/ stable/updates/main Translation-en_US Ign http://cdn.debian.net/debian/ stable/main Translation-en_US Get:3 http://cdn.debian.net stable Release [87.3 kB] Get:4 http://security.debian.org stable/updates Release [38.4 kB] Get:5 http://cdn.debian.net stable/main i386 Packages [6,567 kB] Get:6 http://security.debian.org stable/updates/main i386 Packages [165 kB] Fetched 6,861 kB in 14s (487 kB/s) Reading package lists... Done root@miner:~# sudo apt-get -y install build-essential git libcurl4-nss-dev automake sudo: unable to resolve host miner Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libcurl4-nss-dev root@miner:~# git clone git://github.com/Lolcust/Tenebrix-miner miner Cloning into miner... remote: Counting objects: 659, done. remote: Compressing objects: 100% (293/293), done. remote: Total 659 (delta 420), reused 581 (delta 362) Receiving objects: 100% (659/659), 159.53 KiB, done. Resolving deltas: 100% (420/420), done. root@miner:~# cd miner root@miner:~/miner# ./autogen.sh ./autogen.sh: 8: aclocal: not found root@miner:~/miner# CFLAGS="-march=native -O3 -Wall -msse2 -msse3 -msse4.1 -msse4.2 -msse4" ./configure -bash: ./configure: No such file or directory root@miner:~/miner# make make: *** No targets specified and no makefile found. Stop. root@miner:~/miner# cp minerd ../ cp: cannot stat `minerd': No such file or directory
I always get -bash: ./configure: No such file or directory there is no "configure" in github.com/ArtForz/cpuminer make make: *** No targets specified and no makefile found. Stop.
what about "./autogen.sh" ? ; "./autogen.sh: 8: aclocal: not found" Will try on another linux distro,
|
|
|
|
|
|