-
Type: Improvement
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: 1.16.2
-
Component/s: libmongoc
-
Labels:None
-
Environment:RHEL8.0 on s390x (IBM Z) architecture
As I try to install mongo-c-drive through EPEL repo, it seems that libmongoc-1.0 is not correctly installed. I install the package using {yum install mongo-c-driver}, then I try to compile a test file, and get the error message:
{bash-4.4# gcc -o test test.c $(pkg-config --libs --cflags libmongoc-static-1.0) Package libmongoc-static-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libmongoc-static-1.0.pc' to the PKG_CONFIG_PATH environment variable Package 'libmongoc-static-1.0', required by 'virtual:world', not found test.c:1:10: fatal error: bson.h: No such file or directory #include <bson.h> ^~~~~~~~ compilation terminated.}
And if I install mongo-c-driver from the source file, the compilation and the test file work fine on the same environment with the same command.