httpsqs学习笔记(2) 博客分类: http tokyocabinetcentos
程序员文章站
2024-03-23 15:41:58
...
在centos上安装tokyocabinet-1.4.47,报错:
LD_RUN_PATH=/lib:/usr/lib:/usr/local/tokyocabinet-1.4.47/lib:/root/lib:/usr/local/lib:/usr/local/tokyocabinet-1.4.47/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o tcutest tcutest.o -L. -L/usr/local/tokyocabinet-1.4.47/lib -L/root/lib -L/usr/local/lib -ltokyocabinet -lz -lrt -lpthread -lm -lc
./libtokyocabinet.so: undefined reference to `BZ2_bzCompressInit'
./libtokyocabinet.so: undefined reference to `BZ2_bzCompress'
./libtokyocabinet.so: undefined reference to `BZ2_bzDecompress'
./libtokyocabinet.so: undefined reference to `BZ2_bzDecompressEnd'
./libtokyocabinet.so: undefined reference to `BZ2_bzDecompressInit'
./libtokyocabinet.so: undefined reference to `BZ2_bzCompressEnd'
collect2: ld 返回 1
make: *** [tcutest] 错误 1
解决方法:
/configure --help
./configure --with-bzip=BZIP_PATH
./configure --with-bzip=DIR/include;DIR/lib
./configure --disable-bzip
wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
tar -zxvf bzip2-1.0.6.tar.gz
cd bzip2-1.0.6
make
make install prefix=/usr/local
./configure --enable-off64 --prefix=/usr/local/tokyocabinet-1.4.47 --with-bzip=/usr/local/include;/usr/local/lib
make
make install
LD_RUN_PATH=/lib:/usr/lib:/usr/local/tokyocabinet-1.4.47/lib:/root/lib:/usr/local/lib:/usr/local/tokyocabinet-1.4.47/lib:. gcc -g -O2 -std=c99 -Wall -fPIC -fsigned-char -O2 -o tcutest tcutest.o -L. -L/usr/local/tokyocabinet-1.4.47/lib -L/root/lib -L/usr/local/lib -ltokyocabinet -lz -lrt -lpthread -lm -lc
./libtokyocabinet.so: undefined reference to `BZ2_bzCompressInit'
./libtokyocabinet.so: undefined reference to `BZ2_bzCompress'
./libtokyocabinet.so: undefined reference to `BZ2_bzDecompress'
./libtokyocabinet.so: undefined reference to `BZ2_bzDecompressEnd'
./libtokyocabinet.so: undefined reference to `BZ2_bzDecompressInit'
./libtokyocabinet.so: undefined reference to `BZ2_bzCompressEnd'
collect2: ld 返回 1
make: *** [tcutest] 错误 1
解决方法:
/configure --help
./configure --with-bzip=BZIP_PATH
./configure --with-bzip=DIR/include;DIR/lib
./configure --disable-bzip
wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
tar -zxvf bzip2-1.0.6.tar.gz
cd bzip2-1.0.6
make
make install prefix=/usr/local
./configure --enable-off64 --prefix=/usr/local/tokyocabinet-1.4.47 --with-bzip=/usr/local/include;/usr/local/lib
make
make install
推荐阅读
-
httpsqs学习笔记(2) 博客分类: http tokyocabinetcentos
-
[收藏]JDBC学习笔记 博客分类: struts JDBCSQLDB2Java编程
-
Struts2学习笔记之参数的传递与获取(四) 博客分类: struts2 strutsel
-
Struts2学习笔记之ValueStack(六) 博客分类: struts2 struts2valueStackognl
-
Struts2学习笔记之Maven构建Struts2项目(二) 博客分类: struts2 Struts2Mavenwebapp
-
JFreeChart 学习(2)-struts2+maven3 博客分类: web开发学习笔记 jfreechartmaven3struts2
-
Log4j的学习笔记 博客分类: J2EE javalog4j日志
-
cocos2d-x学习笔记(1)—— cocos2d-x环境搭建 博客分类: cocos2d-x cocos2d-x游戏开发环境搭建
-
struts2学习笔记,很久以前翻出来的,存上-4 博客分类: 很久以前的笔记 strutsmyeclipse
-
设计模式学习笔记 博客分类: J2EE 设计模式