liberasurecode是一个用C++语言编写的用于实现erasure code(擦除码)的库。
它可以使用不同种backend来计算erasure code。
本文主要记录一下编译liberasurecode及它的backend:Jerasure,还有Jerasure依赖的GF-Complete库(这是一个提供伽罗华域算术计算的库)过程中遇到的小坑。
因为如果你直接编译完liberasurecode之后运行test测试程序,会提示:
Backend library not available!
。
首先按编译顺序列出这几个库的github地址,方便大家下载源码进行编译:
GF-complete:https://github.com/ceph/gf-complete
JErasure:https://github.com/tsuraan/Jerasure
liberasurecode:https://github.com/openstack/liberasurecode
一、编译GF-Complete库
首先把代码clone下来:
git clone https://github.com/ceph/gf-complete.git
然后cd到代码主目录中:
cd gf-complete/
接着执行编译命令&#