Looking for pool to mine solo

/usr/include/boost is not a library dir, it’s an include dir.

on my system, the program_options lib is at /usr/lib/libboost_program_options.so
if yours is on the same spot, try the following:
-DBOOST_LIBRARYDIR=/usr/lib

if not search your system for the .so file and point it to it’s directory.

this variant cmake ../ -DPREFIX=~/peercoin-solopool/ -DBOOST_LIBRARYDIR=/usr/lib/x86_64-linux-gnu/ helps me.
But now:
Could not find the MySQL libraries! Please install the development libraries and headers.
MySql server has installed. Where is this “lib and headers”?
Thanks a lot.

-DMYSQL=OFF

not needed for solo mining

Step by step we go to the future!
One more error:
> – GMP libs: GMP_LIBRARIES-NOTFOUND GMPXX_LIBRARIES-NOTFOUND

CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find GMP (missing: GMP_INCLUDE_DIR GMP_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/macros/FindGMP.cmake:21 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:45 (find_package)
sudo apt list libgmp*
Вывод списка… Готово
libgmp-dev/xenial,now 2:6.1.0+dfsg-2 amd64 [установлен]
libgmp-ocaml/xenial 20021123-18build1 amd64
libgmp-ocaml-dev/xenial 20021123-18build1 amd64
libgmp10/xenial,now 2:6.1.0+dfsg-2 amd64 [установлен]
libgmp10-doc/xenial,xenial 2:6.1.0+dfsg-2 all
libgmp3-dev/xenial 2:6.1.0+dfsg-2 amd64
libgmpada-dbg/xenial 0.0.20131223-4 amd64
libgmpada3/xenial 0.0.20131223-4 amd64
libgmpada5-dev/xenial 0.0.20131223-4 amd64
libgmpv4-dev/xenial 2:6.1.0+dfsg-2ubuntu5 amd64
libgmpxx4ldbl/xenial,now 2:6.1.0+dfsg-2 amd64 [установлен, автоматически]
libgmpxxv4-4/xenial,now 2:6.1.0+dfsg-2ubuntu5 amd64 [установлен]

libgmp-dev doesn’t work?

I’m reinstall libgmp-dev and try agane cmake:
cmake …/ -DPREFIX=~/peercoin-solopool/ -DBOOST_LIBRARYDIR=/usr/lib/x86_64-linux-gnu/ -DMYSQL=OFF -DGMP_INCLUDE_DIR=/usr/include/
But get error agane:

~/poolserver/build$ cmake ../ -DPREFIX=~/peercoin-solopool/ -DBOOST_LIBRARYDIR=/usr/lib/x86_64-linux-gnu/ -DMYSQL=OFF -DGMP_INCLUDE_DIR=/usr/include/
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   thread
--   chrono
--   program_options
--   date_time
--   system
--   atomic
status** Boost Include: /usr/include
status** Boost Libraries: /usr/lib/x86_64-linux-gnu
status** Boost Libraries: /usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_program_options.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_atomic.so
-- GMP libs: GMP_LIBRARIES-NOTFOUND GMPXX_LIBRARIES-NOTFOUND
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find GMP (missing: GMP_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/macros/FindGMP.cmake:21 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:45 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/root2pool/poolserver/build/CMakeFiles/CMakeOutput.log".
See also "/home/root2pool/poolserver/build/CMakeFiles/CMakeError.log".

~/poolserver/build$ find /usr/ -iname gmp
/usr/lib/x86_64-linux-gnu/libgmpxxv4.so.4.5.0
/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines/libgmp.so
/usr/lib/x86_64-linux-gnu/libgmp.so
/usr/lib/x86_64-linux-gnu/libgmp.so.10
/usr/lib/x86_64-linux-gnu/libgmpxxv4.so.4
/usr/lib/x86_64-linux-gnu/libgmp.a
/usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
/usr/lib/x86_64-linux-gnu/libgmpxx.so.4
/usr/lib/x86_64-linux-gnu/libgmpxx.a
/usr/lib/x86_64-linux-gnu/libgmpxx.so
/usr/lib/x86_64-linux-gnu/libgmpxx.so.4.5.0
/usr/src/linux-headers-4.4.0-59-generic/include/config/bridge/igmp
/usr/src/linux-headers-4.4.0-34-generic/include/config/bridge/igmp
/usr/src/linux-headers-4.4.0-62/include/linux/igmp.h
/usr/src/linux-headers-4.4.0-62/include/uapi/linux/igmp.h
/usr/src/linux-headers-4.4.0-59/include/linux/igmp.h
/usr/src/linux-headers-4.4.0-59/include/uapi/linux/igmp.h
/usr/src/linux-headers-4.4.0-34/include/linux/igmp.h
/usr/src/linux-headers-4.4.0-34/include/uapi/linux/igmp.h
/usr/src/linux-headers-4.4.0-62-generic/include/config/bridge/igmp
/usr/include/gmpxx.h
/usr/include/netinet/igmp.h
/usr/include/x86_64-linux-gnu/gmp.h
/usr/include/boost/multiprecision/gmp.hpp
/usr/include/boost/polygon/gmp_override.hpp
/usr/include/linux/igmp.h
/usr/share/lintian/overrides/libgmpxx4ldbl
/usr/share/bash-completion/completions/gmplayer
/usr/share/doc/libgmpxx4ldbl
/usr/share/doc/libgmp10
/usr/share/doc/libgmpxxv4-4
/usr/share/doc/libgmp-dev
/usr/share/nmap/scripts/broadcast-igmp-discovery.nse

google gave me: http://cgal-discuss.949826.n4.nabble.com/Installation-CGAL-on-MAC-os-x-td4658363.html

wget https://gmplib.org/download/gmp/gmp-6.1.2.tar.bz2
unpuck, make, install and
:~/poolserver/build$ cmake …/ -DPREFIX=~/peercoin-solopool/ -DBOOST_LIBRARYDIR=/usr/lib/x86_64-linux-gnu/ -DMYSQL=OFF -DGMPXX_LIBRARIES=/usr/lib/x86_64-linux-gnu/
– Boost version: 1.58.0
– Found the following Boost libraries:
– thread
– chrono
– program_options
– date_time
– system
– atomic
status** Boost Include: /usr/include
status** Boost Libraries: /usr/lib/x86_64-linux-gnu
status** Boost Libraries: /usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_program_options.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_atomic.so
– GMP libs: /usr/local/lib/libgmp.so /usr/lib/x86_64-linux-gnu

* Buildtype              : Release

* Install core to        : ~/peercoin-solopool/

* Build Pool Server      : Yes (default)
* Build with Stratum     : Yes (default)
* Build Stats Server     : Yes (default)
* Use MySQL database     : No

-- Configuring done
WARNING: Target "poolserver" requests linking to directory "/usr/lib/x86_64-linux-gnu".  Targets may link only to libraries.  CMake is dropping the item.
CMake Warning at src/server/poolserver/CMakeLists.txt:38 (add_executable):
  Cannot generate a safe runtime search path for target poolserver because
  there is a cycle in the constraint graph:

    dir 0 is [/usr/lib/x86_64-linux-gnu]
      dir 1 must precede it due to runtime library [libgmp.so.10]
    dir 1 is [/usr/local/lib]
      dir 0 must precede it due to runtime library [libboost_thread.so.1.58.0]

  Some of these libraries may not be found correctly.


-- Generating done
-- Build files have been written to: /home/root2pool/poolserver/build

Next step try to use. In some time i will writeout about.

Thank you very mach for ypu help!
Sorry, i’m not understend how i setup communication poolserver with wallet? Where i have to setup port=9902, username=peercoinrpc and rpcpassword=xxx?

in peercoin.conf, I think 9902 is the default rpc port, normal port is 9901, but you can change all this of course, example:

rpcuser=someusername
rpcpassword=somerandompassword
rpcport=9902
port=9901
listen=1
daemon=1
server=1

(im not sure if listen, daemon and server are required for you)

Thanks, but you not in context. This is config of peercoind and i need command prompt argument for poolserver.

poolserver Usage:

-v [ --version ] print version string
-h [ --help ] produce help message
-c [ --config ] arg (=settings.cfg) name of a file of a configuration.

–MinDiffTime arg (=100) Minimum server diff time

-s [ --StratumHost ] arg (=0.0.0.0) Stratum server host
-s [ --StratumPort ] arg (=3333) Stratum server port

–LogConsoleDebugMask arg (=0) Console log debug mask
–LogFilePath arg (=.) File log path
–LogFileDebugMask arg (=0) File log debug mask

–DatabaseDriver arg (=mysql) Database Driver

–MySQLHost arg (=127.0.0.1) MySQL Host
–MySQLPort arg (=3306) MySQL Port
–MySQLUser arg (=root) MySQL User
–MySQLPass arg MySQL Password
–MySQLDatabase arg (=poolserver) MySQL Database
–MySQLSyncThreads arg (=2) MySQL Sync Threads to Create
–MySQLAsyncThreads arg (=2) MySQL Async Threads to Create

Wich argument i have to use?

You should specify the following:

–MiningAddress arg Address to send coins to
–BitcoinRPC arg Bitcoin RPC login credentials
-s [ --StratumHost ] arg (=0.0.0.0) Bind IP for stratum
-s [ --StratumPort ] arg (=3333) Stratum server port

The MiningAddress should be the public-key, not the address starting with P.

Correct me if i’m wrong. Stratum address and port need to connect miner to the server. And 3333 is icoming port for stratum question from miner to server. I want to now how the server comunicate with wallet daemon by rpc?

1 Like

I found /etc/poolserver.cfg and set it up. But i don’t found rpcport and rpcusername parametr.
Please explain how to use these settings?

P.S.
~/poolserver/build$ /home/root2pool/peercoin-solopool/bin/poolserver --config=/home/root2pool/peercoin-solopool/etc/poolserver.cfg
Feb-16 23:30:30 [INFO] Using config file: /home/root2pool/peercoin-solopool/etc/poolserver.cfg
terminate called after throwing an instance of ‘boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::program_options::unknown_option >’
what(): unrecognised option ‘Server Configuration.MinDiffTime’
Аварийный останов (сделан дамп памяти)

Carefully study the github link in my previous post, you might learn something.

1 Like

Thanks. Will study.
If i’m right then params = Util::Explode(btcrpc[i], “;”); explain “;” as separator.
I try to execute ~/peercoin-solopool/bin/poolserver --StratumHost 0.0.0.0 --StratumPort 3366 --BitcoinRPC “127.0.0.1”;“9902”;“ppcoinrpc”;“password”
and try ~/peercoin-solopool/bin/poolserver --StratumHost 0.0.0.0 --StratumPort 3366 --BitcoinRPC “127.0.0.1” “9902” “ppcoinrpc” “password”
etc etc
but every time get same error: Invalid Bitcoin RPC parameters
I’m so sory but a don’t know c++ quite well. Please tell me how setup --BitcoinRPC?
Thanks a lot.

Lose the quotes:

~/peercoin-solopool/bin/poolserver --StratumHost 0.0.0.0 --StratumPort 3366 --BitcoinRPC 127.0.0.1;9902;ppcoinrpc;password

And don’t forget to give a public-key to --MiningAddress

Very strange, but I tried this option. Look #1580
history | grep poolserver
1575 ~/peercoin-solopool/bin/poolserver --StratumHost 0.0.0.0 --StratumPort 3366 --BitcoinRPC 127.0.0.1 9902 ppcoinrpc password
1576 ~/peercoin-solopool/bin/poolserver --StratumHost 0.0.0.0 --StratumPort 3366 --BitcoinRPC “127.0.0.1” 9902 ppcoinrpc password
1577 ~/peercoin-solopool/bin/poolserver --StratumHost 0.0.0.0 --StratumPort 3366 --BitcoinRPC 127.0.0.1;9902;ppcoinrpc;password
1578 ~/peercoin-solopool/bin/poolserver --StratumHost 0.0.0.0 --StratumPort 3366 --BitcoinRPC 127.0.0.1 9902 ppcoinrpc password
1580 ~/peercoin-solopool/bin/poolserver --StratumHost 0.0.0.0 --StratumPort 3366 --BitcoinRPC 127.0.0.1;9902;ppcoinrpc;password
1581 ~/peercoin-solopool/bin/poolserver --StratumHost 0.0.0.0 --StratumPort 3366 --BitcoinRPC 127.0.0.1 9902 ppcoinrpc password

~/peercoin-solopool/bin/poolserver --StratumHost 0.0.0.0 --StratumPort 3366 --BitcoinRPC 127.0.0.1;9902;ppcoinrpc;password
Feb-17 15:59:06 [ERROR] Failed opening config file: ../etc/poolserver.cfg
Feb-17 15:59:06 [INFO] LogFile Started: ../etc/server-20170217-155906.log
Feb-17 15:59:06 [INFO] Server is starting...
terminate called after throwing an instance of 'Exception'
  what():  Invalid Bitcoin RPC parameters
Аварийный останов (сделан дамп памяти)
9902: команда не найдена
ppcoinrpc: команда не найдена
Команда 'password' не найдена, возможно вы имели в виду:
 Команда 'assword' из пакета 'assword' (universe)
password: команда не найдена

I don’t understand something. :frowning: