1. Since Perl's zookeeper expansion pack net::zookeeper needs to use the ZK's own C-client, it needs to be installed on the machine Zookeeper C client.
Zookeeper C Client implementation in the SRC/C directory, enter the directory to install Zookeeper C client, the following steps:
$./makesudomakeinstall// require root permission, otherwise the installation will not succeed
2, installation Net::zookeeperbe sure to indicate during the compilation process--Zookeeper-include,--Zookeeper-Lib.
Perl makefile.pl--zookeeper-include=/data/home/tdsql/zookeeper-3.4. 6/src/c/include--zookeeper-lib=/usr/local/binmake make// Test module Successful make install// install
Required before testing
Export Ld_library_path=/usr/local/lib
After execution
make Test
Output if test is successful
[Email protected]/data/home/summer/onlineddl/net-zookeeper-0.41]# MakeTestperl_dl_nonlazy=1/usr/bin/Perl "-mextutils::command::mm""- e""test_harness (0, ' blib/lib ', ' Blib/arch ')"T/*. tt/10_invalid.t .... 1/107# no ZooKeeper hostnames specified in Zk_test_hosts env var, using localhost:2181# no ZooKeeper path specified in Zk_ Test_path env var, using root patht/10_invalid.t ... okt/15_thread.t ..... okt/20_tie.t ... ok. okt/22_stat_tie.t ... okay. t/24_watch_tie.t. WATCH.T. Okall tests successful. files=11,tests=463,17 wallclock secs (0.06 usr 0.00 sys +0.14 cusr 0.02 csys =0.22 CPU) Result:pass
At this point all installation is complete.
Net::zookeeper Installation