How to compile zookeeper c client.

오늘 주키퍼 클라이언트 코드변경으로 코드리뷰를 진행하였다. 물론 보통처럼 C소스를 컴파일 했지만 처음 보는 에러들이 등장해서 당황했다. (C를 시작한지 얼마되지 않다는 핑계)

나중에 또 같은 일이 발생할 수 있으므로 내가 사용했던 명령셋을 기록합니다.

습관처럼 autoconf 명령어를 수행했지만 매크로가 없다는 비명뿐 제대로 수행되지 않았다. 검색한 후 알아보니 aclocal을 먼저 쓰라는 조언을 찾아서 해결.

$ aclocal

AM_PATH_CPPUNIT 매크로와 관련해서 또 비명을 지릅니다. 알아보니 종속되는 라이브러리가 있었네요. 주석처리해도 되지만 깔았습니다. 저는 맥북을 사용하므로 port명령어를 사용했습니다. 다른 운영체제를 사용하시는 분은 yum/apt-get/rpm 등으로 설치하시기 바랍니다.

$ port install cppunit

근데 이걸 하고나니 install-sh를 찾을 수 없다는 비명을 지릅니다. 또 검색합니다. 구글신의 은총으로 해결

$ autoconf -i -f -v

그 이후는 보통때와 다르지 않습니다.(생략) C초보군의 삽질일기 끝.


~ $ autoconf --version
autoconf (GNU Autoconf) 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
~ $ automake --version
automake (GNU automake) 1.11.1
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.
About these ads

Tagged: , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

%d bloggers like this: