libmongoc

286 views
Skip to first unread message

Chris

unread,
Dec 10, 2013, 5:17:11 AM12/10/13
to mongod...@googlegroups.com
Hi,

i'm trying to install libmongoc local but haven't success.

I could build libbson, but don't now how to link exactly to avoid the error fro libmongoc.

Thanks in advance


~/.local/lib 
drwx------ 3 localuser localuser 4.0K Jun 11 13:01 python2.7
-rwxr-xr-x 1 localuser localuser 304K Dec 9 15:03 libbson-1.0.so.0.401.0
lrwxrwxrwx 1 localuser localuser 22 Dec 9 15:03 libbson-1.0.so.0 -> libbson-1.0.so.0.401.0
lrwxrwxrwx 1 localuser localuser 22 Dec 9 15:03 libbson-1.0.so -> libbson-1.0.so.0.401.0
-rwxr-xr-x 1 localuser localuser 998 Dec 9 15:03 libbson-1.0.la
-rw-r--r-- 1 localuser localuser 479K Dec 9 15:03 libbson-1.0.a
drwxr-xr-x 2 localuser localuser 4.0K Dec 9 15:03 pkgconfig


export BSON_LIBS='/home/localuser/.local/lib'

./configure --prefix='/home/localuser/.local' PKG_CONFIG='/home/cschulzx/.local/bin/pkg-config'
................
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for nc... /bin/nc
checking if building for some Win32 platform... no
checking for -Bsymbolic-functions linker flag... yes
checking for uint8_t in stdint.h... yes
checking pkg-config is at least version 0.9.0... yes
checking for BSON... no
configure: error: Package requirements (libbson-1.0 >= 0.4.0) were not met:

No package 'libbson-1.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BSON_CFLAGS
and BSON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.



Christian Hergert

unread,
Dec 18, 2013, 6:01:37 PM12/18/13
to mongod...@googlegroups.com
Hi Chris,

There should be no need to specify BSON_LIBS or BSON_CFLAGS if you have pkg-config installed and have successfully installed libbson. Did you `make install` libbson?

Can you verify that pkg-config can find the file?

pkg-config --modversion libbson-1.0

If not, check to see where the .pc file was installed. Maybe something like ~/.local/lib/pkgconfig/. If your pkg-config binary does not check there, you might need to specify PKG_CONFIG_PATH.

-- Christian
Reply all
Reply to author
Forward
0 new messages