1

安装tokyocabinet的问题

 3 years ago
source link: https://blogread.cn/it/article/3144?f=hot1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
您现在的位置首页 --> 系统运维 --> 安装tokyocabinet的问题

安装tokyocabinet的问题

浏览:1114次  出处信息

在SUSE Linux version 2.6.27.7-9-default (gcc version 4.3.2)上安装tokyocabinet的时候,需要安装相关的lib

http://fallabs.com/tokyocabinet/misc/bzip2-1.0.5.tar.gz

这个压缩包在安装的时候,Makefile中没有添加 -fPIC 参数 导致安装后,tc找不到它,所以要在它的Makefile中添加上 -fPIC
那gcc这个 -fPIC参数是什么意思的。
这位仁兄的描述很清晰
网友总结如下:
因此,不用fPIC编译so并不总是不好.
如果你满足以下4个需求/条件:
1.该库可能需要经常更新
2.该库需要非常高的效率(尤其是有很多全局量的使用时)
3.该库并不很大.
4.该库基本不需要被多个应用程序共享

这样解决了安装tc的问题。

建议继续学习:

QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK