我从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