/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.
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".
* 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?
–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
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?
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.
~/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: команда не найдена