Net::zookeeper Installation

Source: Internet
Author: User
Tags zookeeper

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.