ubuntu11.04编译Tokyo Cabinet(简称:TC) tokyotyrant(TT)是出现一个错误: 缺少bzlib.h头文件。
“TC手册” 写道
解决方法:http://ubuntuforums.org/showthread.php?t=90559, 执行如下命令 安装libbz2-dev。
sudo apt-get install libbz2-dev
安装三部曲,先进入TT TC目录
----------------------------------------------安装信息-------------------------------------------------------------------
1、编译TC
niumd@niumd-VirtualBox:~/tokyotyrant-1.1.41$ ./configure #================================================================ # Configuring Tokyo Tyrant version 1.1.41. #================================================================ checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for main in -lc... yes checking for main in -lm... yes checking for main in -lpthread... yes checking for main in -lrt... yes checking for main in -ldl... yes checking for main in -lnsl... yes checking for main in -lsocket... no checking for main in -lresolv... yes checking for main in -lz... yes checking for main in -lbz2... yes checking for main in -ltokyocabinet... yes checking for main in -ltokyotyrant... no checking for stdlib.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking tcutil.h usability... yes checking tcutil.h presence... yes checking for tcutil.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating tokyotyrant.pc #================================================================ # Ready to make. #================================================================
2、make
niumd@niumd-VirtualBox:~/tokyotyrant-1.1.41$ make gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttutil.c gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 tculog.c gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 tcrdb.c gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 myconf.c ar rv libtokyotyrant.a ttutil.o tculog.o tcrdb.o myconf.o ar: creating libtokyotyrant.a a - ttutil.o a - tculog.o a - tcrdb.o a - myconf.o if uname -a | egrep -i 'SunOS' > /dev/null ; \ then \ gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -Wl,-G,-h,libtokyotyrant.so.3 -o libtokyotyrant.so.3.24.0 \ ttutil.o tculog.o tcrdb.o myconf.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc ; \ else \ gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -Wl,-soname,libtokyotyrant.so.3 -o libtokyotyrant.so.3.24.0 \ ttutil.o tculog.o tcrdb.o myconf.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc ; \ fi ln -f -s libtokyotyrant.so.3.24.0 libtokyotyrant.so.3 ln -f -s libtokyotyrant.so.3.24.0 libtokyotyrant.so gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttskelmock.c gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -o ttskelmock.so ttskelmock.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttskeldir.c gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -o ttskeldir.so ttskeldir.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttskelproxy.c gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -o ttskelproxy.so ttskelproxy.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttskelnull.c gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -o ttskelnull.so ttskelnull.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttserver.c gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 scrext.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o ttserver ttserver.o scrext.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttulmgr.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o ttulmgr ttulmgr.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttultest.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o ttultest ttultest.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 tcrtest.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o tcrtest tcrtest.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 tcrmttest.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o tcrmttest tcrmttest.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 tcrmgr.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o tcrmgr tcrmgr.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc #================================================================ # Ready to install. #================================================================
3、install
niumd@niumd-VirtualBox:~/tokyotyrant-1.1.41$ sudo make install
mkdir -p /usr/local/include cp -Rf ttutil.h tculog.h tcrdb.h /usr/local/include mkdir -p /usr/local/lib cp -Rf libtokyotyrant.a libtokyotyrant.so.3.24.0 libtokyotyrant.so.3 libtokyotyrant.so ttskelmock.so ttskeldir.so ttskelproxy.so ttskelnull.so /usr/local/lib mkdir -p /usr/local/bin cp -Rf ttserver ttulmgr ttultest tcrtest tcrmttest tcrmgr /usr/local/bin mkdir -p /usr/local/sbin cp -Rf ttservctl /usr/local/sbin mkdir -p /usr/local/share/tokyotyrant cp -Rf ext COPYING ChangeLog THANKS doc tokyotyrant.idl /usr/local/share/tokyotyrant mkdir -p /usr/local/share/man/man1 cd man && cp -Rf ttserver.1 ttulmgr.1 ttultest.1 tcrtest.1 tcrmttest.1 tcrmgr.1 /usr/local/share/man/man1 mkdir -p /usr/local/share/man/man3 cd man && cp -Rf ttutil.3 tculog.3 tcrdb.3 /usr/local/share/man/man3 mkdir -p /usr/local/share/man/man8 cd man && cp -Rf ttservctl.8 /usr/local/share/man/man8 mkdir -p /usr/local/lib/pkgconfig cp -Rf tokyotyrant.pc /usr/local/lib/pkgconfig [ "$UID" == 0 ] && ldconfig || true #================================================================ # Thanks for using Tokyo Tyrant. #================================================================
tokyotyrant:
niumd@niumd-VirtualBox:~/tokyotyrant-1.1.41$ ./configure #================================================================ # Configuring Tokyo Tyrant version 1.1.41. #================================================================ checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for main in -lc... yes checking for main in -lm... yes checking for main in -lpthread... yes checking for main in -lrt... yes checking for main in -ldl... yes checking for main in -lnsl... yes checking for main in -lsocket... no checking for main in -lresolv... yes checking for main in -lz... yes checking for main in -lbz2... yes checking for main in -ltokyocabinet... yes checking for main in -ltokyotyrant... no checking for stdlib.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking tcutil.h usability... yes checking tcutil.h presence... yes checking for tcutil.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating tokyotyrant.pc #================================================================ # Ready to make. #================================================================
niumd@niumd-VirtualBox:~/tokyotyrant-1.1.41$ make gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttutil.c gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 tculog.c gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 tcrdb.c gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 myconf.c ar rv libtokyotyrant.a ttutil.o tculog.o tcrdb.o myconf.o ar: creating libtokyotyrant.a a - ttutil.o a - tculog.o a - tcrdb.o a - myconf.o if uname -a | egrep -i 'SunOS' > /dev/null ; \ then \ gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -Wl,-G,-h,libtokyotyrant.so.3 -o libtokyotyrant.so.3.24.0 \ ttutil.o tculog.o tcrdb.o myconf.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc ; \ else \ gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -Wl,-soname,libtokyotyrant.so.3 -o libtokyotyrant.so.3.24.0 \ ttutil.o tculog.o tcrdb.o myconf.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc ; \ fi ln -f -s libtokyotyrant.so.3.24.0 libtokyotyrant.so.3 ln -f -s libtokyotyrant.so.3.24.0 libtokyotyrant.so gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttskelmock.c gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -o ttskelmock.so ttskelmock.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttskeldir.c gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -o ttskeldir.so ttskeldir.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttskelproxy.c gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -o ttskelproxy.so ttskelproxy.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttskelnull.c gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -shared -o ttskelnull.so ttskelnull.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttserver.c gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 scrext.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o ttserver ttserver.o scrext.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttulmgr.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o ttulmgr ttulmgr.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 ttultest.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o ttultest ttultest.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 tcrtest.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o tcrtest tcrtest.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 tcrmttest.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o tcrmttest tcrmttest.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc gcc -c -I. -I/usr/local/include -I/home/niumd/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -D_TT_PREFIX="\"/usr/local\"" -D_TT_INCLUDEDIR="\"/usr/local/include\"" -D_TT_LIBDIR="\"/usr/local/lib\"" -D_TT_BINDIR="\"/usr/local/bin\"" -D_TT_LIBEXECDIR="\"/usr/local/libexec\"" -D_TT_APPINC="\"-I/usr/local/include\"" -D_TT_APPLIBS="\"-L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 tcrmgr.c LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:/home/niumd/lib:/usr/local/lib:/usr/local/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o tcrmgr tcrmgr.o -L. -L/usr/local/lib -L/home/niumd/lib -L/usr/local/lib -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -lnsl -ldl -lrt -lpthread -lm -lc #================================================================ # Ready to install. #================================================================
niumd@niumd-VirtualBox:~/tokyotyrant-1.1.41$ sudo make install mkdir -p /usr/local/include cp -Rf ttutil.h tculog.h tcrdb.h /usr/local/include mkdir -p /usr/local/lib cp -Rf libtokyotyrant.a libtokyotyrant.so.3.24.0 libtokyotyrant.so.3 libtokyotyrant.so ttskelmock.so ttskeldir.so ttskelproxy.so ttskelnull.so /usr/local/lib mkdir -p /usr/local/bin cp -Rf ttserver ttulmgr ttultest tcrtest tcrmttest tcrmgr /usr/local/bin mkdir -p /usr/local/sbin cp -Rf ttservctl /usr/local/sbin mkdir -p /usr/local/share/tokyotyrant cp -Rf ext COPYING ChangeLog THANKS doc tokyotyrant.idl /usr/local/share/tokyotyrant mkdir -p /usr/local/share/man/man1 cd man && cp -Rf ttserver.1 ttulmgr.1 ttultest.1 tcrtest.1 tcrmttest.1 tcrmgr.1 /usr/local/share/man/man1 mkdir -p /usr/local/share/man/man3 cd man && cp -Rf ttutil.3 tculog.3 tcrdb.3 /usr/local/share/man/man3 mkdir -p /usr/local/share/man/man8 cd man && cp -Rf ttservctl.8 /usr/local/share/man/man8 mkdir -p /usr/local/lib/pkgconfig cp -Rf tokyotyrant.pc /usr/local/lib/pkgconfig [ "$UID" == 0 ] && ldconfig || true #================================================================ # Thanks for using Tokyo Tyrant. #================================================================
EOF……