Error while building pmem-bench

38 views
Skip to first unread message

msl

unread,
Oct 15, 2021, 7:51:40 PM10/15/21
to pmem
Hi, 
Has anyone ran into following error while building pmem-bench? Thanks in advance!

[~/pmemkv-bench] make bench

rm -rf pmemkv_bench

g++ ./bench/db_bench.cc ./bench/port/port_posix.cc ./bench/util/env.cc ./bench/util/env_posix.cc \

./bench/util/histogram.cc ./bench/util/logging.cc ./bench/util/status.cc ./bench/util/testutil.cc \

-o pmemkv_bench -I./bench/include -I./bench -I./bench/util -I/usr/local/include  -DOS_LINUX -fno-builtin-memcmp -march=native -DNDEBUG -O2 -std=c++11 -ldl -lpthread -L/usr/local/lib64 -lpmemkv -lpmempool 

./bench/db_bench.cc:29:10: fatal error: libpmemkv.hpp: No such file or directory

 #include "libpmemkv.hpp"

          ^~~~~~~~~~~~~~~

compilation terminated.

make: *** [Makefile:16: bench] Error 1

Igor Chorążewicz

unread,
Oct 18, 2021, 10:20:28 AM10/18/21
to pmem
Hi,

The most likely reason is that you don't have pmemkv installed. You can install it using a package manager from your OS.

Another possibility is that you have installed pmemkv in some non-standard directory. In that case, you should set PKG_CONFIG_PATH env variable accordingly (so that it points to a directory where .pc file for pmemkv resides,.e.g  PKG_CONFIG_PATH =/home/msl/pmemkv/lib/pkgconfig)

Best regards,
Igor
Reply all
Reply to author
Forward
0 new messages