Compiling zookeeper client on a solaris machine, libtool error

2

I'm trying to compile the client zookeeper 3.4.12c on a machine solaris , below are the steps I followed.

  • unzip the source code, enter the folder zookeeper-x.x.x / src / c.
  • make a "./configure [OPTIONS]" to generate the makes
  • But the process hangs in step two, with the following error:

    /bin/sh ./libtool  --tag=CC    --mode=link gcc  -Wall -Werror -g -O2
    -D_GNU_SOURCE -no-undefined -version-info 2 -lnsl -lsocket -export-symbols-regex '(zoo_|zookeeper_|zhandle|Z|format_log_message|log_message|logLevel|deallocate_|allocate_|zerror|is_unrecoverable)'
    -o libzookeeper_st.la -rpath /usr/local/lib  libzkst.la libhashtable.la libtool: link: /bin/nm -p   ./.libs/libzkst.a ./.libs/libhashtable.a |  | /bin/gsed 's/.* //' | sort | uniq > .libs/libzookeeper_st.exp ./libtool[1732]: eval: syntax error at line 1: '|' unexpected
    *** Error code 3 make: Fatal error: Command failed for target 'libzookeeper_st.la'
    

    What's missing?

        
    asked by anonymous 28.06.2018 / 13:16

    1 answer

    2

    Try to run ./configure with the parameters below, these files are required for zookeeper and apparently are not being automatically linked in your configure.

    ... ./.libs/libzkst.a ./.libs/libhashtable.a |  | /bin/gsed 's/.* //' ...
    
        
    28.06.2018 / 13:46