Download latest source code from github, following is its dependencies:
Library Name | Use |
libevent |
Event-driven async I/O |
libmemcached |
memcached client |
pthreads |
POSIX threads |
zlib |
gzip compression |
jansson |
JSON |
OpenSSL's libcrypto |
sha256 |
libcurl |
HTTP client |
it contains OpenSSL's libcryptoa file named "autogen.sh" which is generated by autotools
pakcage name mapping for apt-get:
jansson -> libjansson
OpenSSL -> libssl-dev
Start Compiling
First, we need run "autogen.sh" first
./autogen.sh
If you got following error message, you need install libcurl first
configure.ac: error: possibly undefined macro: AC_MSG_ERROR
Following is the command to install libcurl:
apt-get install libcurl4-gnutls-dev
If you run autogen.sh before libcurl-dev and libmysqld-dev is installed, you will get following error in "configure" progress:
1 2 |
./configure: line 4830: syntax error near unexpected token `,' ./configure: line 4830: `LIBCURL_CHECK_CONFIG(, 7.10.1, , |
You need install libcurl and re-run autogen.sh
And following error will occur in "make" progress:
server.c:106:2: error: #error ("No valid database engines defined")
make[1]: *** [server.o] Error 1
Then you should install libmysqld-dev and re-run autogen.sh
After above error is fixed, we can compile pushpool in "configure -> make -> make install" workflow.