如何在rocksdb(make static_lib)期间解决此编译错误?

时间:2019-07-16 12:04:38

标签: c++

我从github(https://github.com/facebook/rocksdb)下载了源代码,然后运行make static_lib,然后出现以下错误。

我应该先安装所有依赖库吗?但是我没有安装许可。

有没有人可以帮助我解决此错误?

  CC       env/io_posix.o
env/io_posix.cc: In member function ‘virtual rocksdb::Status rocksdb::PosixMmapFile::Allocate(uint64_t, uint64_t)’:
env/io_posix.cc:812:52: error: ‘FALLOC_FL_KEEP_SIZE’ was not declared in this scope
         fallocate(fd_, fallocate_with_keep_size_ ? FALLOC_FL_KEEP_SIZE : 0,
                                                    ^
env/io_posix.cc: In member function ‘virtual rocksdb::Status rocksdb::PosixWritableFile::Allocate(uint64_t, uint64_t)’:
env/io_posix.cc:1019:52: error: ‘FALLOC_FL_KEEP_SIZE’ was not declared in this scope
         fallocate(fd_, fallocate_with_keep_size_ ? FALLOC_FL_KEEP_SIZE : 0,
                                                    ^
make: *** [env/io_posix.o] Error 1

0 个答案:

没有答案