7
ubuntu 20.04 静态编译360的pika
source link: https://segmentfault.com/a/1190000040199921
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.
ubuntu 20.04 静态编译360的pika
pika: https://github.com/OpenAtomFo... 是一个类似redis的No-SQL, 基于RocksDB
支持按照key range 来搜索KEY, 并且是排序返回的
redis的SCAN是无法满足这点的
git clone https://github.com/OpenAtomFoundation/pika
cd pika
apt install libprotobuf-dev protobuf-compiler libsnappy-dev
export CFLAGS=" -lsnappy -fpermissive -static"
export CXXFLAGS=" -lsnappy -lstdc++ -static-libstdc++ -Wno-error=deprecated-copy -Wno-error=pessimizing-move -Wno-error=class-memaccess -fpermissive"
export LDFLAGS=-static
make -j$(nproc)
最后在output就得到了静态文件
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK