arcus 설치하면서 세가지 이슈가 있었다.


1. python의 easy_install을 위한 python 처리 작업

2. zookeeper 컴파일하면서 ivy.jar를 다운로드를 못받는 문제(파일이 깨진 상태로 hang) - 이 문제는 사소한 이슈

3. memcached 빌드 실패가 존재했다. 


ivy.jar 파일은 repo.maven.org에서 다운받아서 처리했고 memcached 컴파일은 컴파일 이슈가 있었다. 에러가 2개 발생하면서 memcached 바이너리가 설치가 되지 않았다. 


내 mac의 gcc는 4.2.1 이어서 문제가 된 듯 하다. 4.2로 컴파일 하면 문제가 없다. 


$ gcc --version

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1

Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)

Target: x86_64-apple-darwin13.3.0

Thread model: posix



정상적으로 memcached 바이너라가 설치되면 다음 로그를 볼 수 있다. 



................


./install-sh -c -d '/mydev/util/arcus/lib'

 /bin/sh ./libtool   --mode=install /usr/bin/install -c   ascii_scrub.la basic_engine_testsuite.la default_engine.la example_protocol.la stdin_term_handler.la syslog_logger.la '/mydev/util/arcus/lib'

libtool: install: /usr/bin/install -c .libs/ascii_scrub.so /mydev/util/arcus/lib/ascii_scrub.so

libtool: install: /usr/bin/install -c .libs/ascii_scrub.lai /mydev/util/arcus/lib/ascii_scrub.la

libtool: install: /usr/bin/install -c .libs/basic_engine_testsuite.so /mydev/util/arcus/lib/basic_engine_testsuite.so

libtool: install: /usr/bin/install -c .libs/basic_engine_testsuite.lai /mydev/util/arcus/lib/basic_engine_testsuite.la

libtool: install: /usr/bin/install -c .libs/default_engine.so /mydev/util/arcus/lib/default_engine.so

libtool: install: /usr/bin/install -c .libs/default_engine.lai /mydev/util/arcus/lib/default_engine.la

libtool: install: /usr/bin/install -c .libs/example_protocol.so /mydev/util/arcus/lib/example_protocol.so

libtool: install: /usr/bin/install -c .libs/example_protocol.lai /mydev/util/arcus/lib/example_protocol.la

libtool: install: /usr/bin/install -c .libs/stdin_term_handler.so /mydev/util/arcus/lib/stdin_term_handler.so

libtool: install: /usr/bin/install -c .libs/stdin_term_handler.lai /mydev/util/arcus/lib/stdin_term_handler.la

libtool: install: /usr/bin/install -c .libs/syslog_logger.so /mydev/util/arcus/lib/syslog_logger.so

libtool: install: /usr/bin/install -c .libs/syslog_logger.lai /mydev/util/arcus/lib/syslog_logger.la

 ./install-sh -c -d '/mydev/util/arcus/bin'

  /bin/sh ./libtool   --mode=install /usr/bin/install -c engine_testapp memcached '/mydev/util/arcus/bin'

libtool: install: /usr/bin/install -c engine_testapp /mydev/util/arcus/bin/engine_testapp

libtool: install: /usr/bin/install -c memcached /mydev/util/arcus/bin/memcached

 ./install-sh -c -d '/mydev/util/arcus/include/memcached'

 /usr/bin/install -c -m 644 include/memcached/callback.h include/memcached/config_parser.h include/memcached/engine.h include/memcached/engine_common.h include/memcached/engine_testapp.h include/memcached/extension.h include/memcached/extension_loggers.h include/memcached/genhash.h include/memcached/mock_server.h include/memcached/protocol_binary.h include/memcached/protocol_plugin.h include/memcached/server_api.h include/memcached/types.h include/memcached/util.h include/memcached/vbucket.h include/memcached/visibility.h '/mydev/util/arcus/include/memcached'




mac에서의 arcus 설치 정보는 다음과 같다. (https://github.com/naver/arcus 참조)



# Rquirements: JDK


# for easy_install 

$ python -c "$(curl -O http://python-distribute.org/distribute_setup.py)"


# Install dependencies

$ brew install ant autoconf automake libtool pkg-config cppunit homebrew/dupes/apple-gcc42


# Clone & Build

$ git clone https://github.com/naver/arcus.git

$ cd arcus/scripts

$ CC=gcc-4.2 ./build.sh


# Setup a local cache cloud with conf file. (Should be non-root user)

$ ./arcus.sh quicksetup conf/local.sample.json


# Test

$ echo "stats" | nc localhost 11211 | grep version

STAT version 1.7.0

$ echo "stats" | nc localhost 11212 | grep version

STAT version 1.7.0




Posted by '김용환'
,