We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there,
I'm using debian jessie, I've installed dependencies, cloned the code and compiled the source code using this command:
$ gcc -Wall -I/usr/local/include/libbson-1.0 -L/usr/local/lib -lbson-1.0 -DWITH_PROJECTION -DWITH_UTILS -DWITH_CONDITIONAL -DWITH_TEXT -DWITH_STEMMER -DWITH_ASPELL -DWITH_YARA -lpcre -shared -o libbsoncompare.so -fPIC bsoncompare.c mongoc-matcher.c mongoc-matcher-op.c mongoc-matcher-op-geojson.c mongoc-bson-descendants.c
Installed libbsoncompare.so:
cp libbsoncompare.so /usr/lib ldconfig -n /usr/lib
And when I try to use it in python code:
from bsonstream import KeyValueBSONInput import bsonsearch with bsonsearch.bsoncompare() as bc:
I always get an exception which is thrown at bsonsearch/_init_.py, line 40:
OSError: /usr/lib/libbsoncompare.so: undefined symbol: _mongoc_matcher_op_yara_new
Am I missing something?
Thanks
The text was updated successfully, but these errors were encountered:
if you are going to include yara support (-DWITH_YARA), you need to link against yara at compile time by adding -lyara in the gcc line
(-DWITH_YARA)
-lyara
the RedHat spec file has two versions baked in, one with everything and a "lite" version with only the basics.
https://github.com/bauman/bsonsearch/blob/master/lib/bsoncompare.spec#L95-L96
Start by copying the lite version and include other functions as you see fit.
Sorry, something went wrong.
No branches or pull requests
Hi there,
I'm using debian jessie, I've installed dependencies, cloned the code and compiled the source code using this command:
Installed libbsoncompare.so:
And when I try to use it in python code:
I always get an exception which is thrown at bsonsearch/_init_.py, line 40:
Am I missing something?
Thanks
The text was updated successfully, but these errors were encountered: