zoukankan      html  css  js  c++  java
  • Zookeeper安装后,编译C client时报错"syntax error near unexpected token `1.10.2"

    hbg@rohens:/home/program/zookeeper-3.3.3/src/c$ ./configure
    checking for doxygen... /usr/bin/doxygen
    checking for perl... /usr/bin/perl
    checking for dot... /usr/bin/dot
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    /bin/bash: /home/program/zookeeper-3.3.3/src/c/missing: No such file or directory
    configure: WARNING: 'missing' script is too old or missing
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    ./configure: line 5048: syntax error near unexpected token `1.10.2'
    ./configure: line 5048: `   AM_PATH_CPPUNIT(1.0.2)'

    查找原因时因为cppunit版本不对导致,下载对应的cppunit-1.10.2版本,地址为:

    运行 ./configure 和make以后,出现错误:

    undefined reference to `dlclose' 
    undefined reference to `dlopen' 
    undefined reference to `dlsym' 

    解决的方法是在 ./configure 后面加上参数LDFLAS=‘-ldl’:

    1. make clean  
    2. ./configure LDFLAGS='-ldl'  
    3. make  
    4. sudo make install
       

    ==========================================================

    安装完cppunit后,将文件cppunit.m4拷贝到aclocal-1.15目录下,/usr/share/aclocal-1.15/cppunit.m4,

    然后进入zookeeper的安装目录

    /home/program/zookeeper-3.3.3/src/c$ autoreconf -if

    执行命令 autoreconf -if

    再执行 ./configure

     make
    sudo make install

    完成
  • 相关阅读:
    FCKeditor firefox Ajax提交,内容为空.解决.
    Javascript:Go to top of page
    js实现两级联动下拉列表
    php+mysql实现二级联动下拉列表
    ajax 实现两级级联下拉列表
    SharpDevelop_3.2.1.6466_Setup软件安装汉化
    c#拓展项目作业
    摇色子(两颗色子)
    C#编程实践51题目解答
    编程实践53
  • 原文地址:https://www.cnblogs.com/rohens-hbg/p/12618154.html
Copyright © 2011-2022 走看看