Install a bunch of dependencies before installing gearmand, as shown below:
(Boost versions must be later than 1.39)
Yum install boost-devel
Yum install mysql-devel
Yum install gperf
Yum install libevent
After installing the dependency, execute./configure, and then make encounters a pitfall that troubles me for a long time. An error is reported.
/Usr/bin/ld: Bin/gearadmin: Undefined reference to symbol' [email protected] @ glibc_2.2.5'
/Usr/bin/ld: Note: '[email protected] @ glibc_2.2.5' is defined in DSO/lib64/libpthread. so.0 so tr
/Lib64/libpthread. so.0: cocould not read symbols: Invalid operation
Collect2: Error: LD returned 1 exit status
Make [1]: *** [bin/gearadmin] Error 1
Make [1]: Leaving directory '/home/web_tar/gearmand-1.1.12'
Make: *** [all] Error 2
Google looked at it. This is a common solution. Open./makefile,
Set
Ldflags =-L/usr/lib64/MySQL/
Change
Ldflags =-L/usr/lib64/MySQL/-lpthread
Make is OK.
Centos gearmand-1.1.12 Installation