[OpenSIPS-Users] cache_dbmongodb compile issues 2.1

Tito Cumpen tito at xsvoce.com
Wed Apr 22 16:11:31 CEST 2015


Group,


I was able to compile after installing json-c via the following rpm
json-c-0.11-4.el7_0.src.rpm  json-c-devel-0.11-4.el7_0.x86_64.rpm.

On Mon, Apr 20, 2015 at 8:50 PM, Tito Cumpen <tito at xsvoce.com> wrote:

> accidentally sent the nascent message.
>
> Here it is
>
>
> make[2]: Entering directory
> `/usr/src/opensips_trunk/modules/cachedb_mongodb'
>
> Compiling cachedb_mongodb_json.c
>
> Compiling cachedb_mongodb_dbase.c
>
> Compiling cachedb_mongodb.c
>
> In file included from cachedb_mongodb_json.h:29:0,
>
>                  from cachedb_mongodb_json.c:28:
>
> cachedb_mongodb_dbase.h:37:23: fatal error: json/json.h: No such file or
> directory
>
>  #include <json/json.h>
>
>                        ^
>
> compilation terminated.
>
> In file included from cachedb_mongodb_dbase.c:27:0:
>
> cachedb_mongodb_dbase.h:37:23: fatal error: json/json.h: No such file or
> directory
>
>  #include <json/json.h>
>
>                        ^
>
> compilation terminated.
>
> In file included from cachedb_mongodb.c:41:0:
>
> cachedb_mongodb_dbase.h:37:23: fatal error: json/json.h: No such file or
> directory
>
>  #include <json/json.h>
>
>
>
> Here is the output from my mongoc install:
>
>
>  make install
>
> mkdir -p /usr/local/include /usr/local/lib
>
> cp -a src/mongo.h src/bson.h /usr/local/include
>
> cp -a libmongoc.so /usr/local/lib/libmongoc.so.0.6.0
>
> cp -a libbson.so /usr/local/lib/libbson.so.0.6.0
>
> cd /usr/local/lib && ln -sf libmongoc.so.0.6.0 libmongoc.so.0.6
>
> cd /usr/local/lib && ln -sf libbson.so.0.6.0 libbson.so.0.6
>
> cd /usr/local/lib && ln -sf libmongoc.so.0.6 libmongoc.so
>
> cd /usr/local/lib && ln -sf libbson.so.0.6 libbson.so
>
> cp -a libmongoc.a /usr/local/lib
>
> cp -a libbson.a /usr/local/lib
>
> make[1]: Entering directory `/usr/src/o
>
> On Mon, Apr 20, 2015 at 8:46 PM, Tito Cumpen <tito at xsvoce.com> wrote:
>
>> Group,
>>
>>
>> I am having issues compiling opensips 2.1 with cachedb_mongo enabled.
>>
>> I have install version 0.6 along with the suggested json-c lib. This is
>> the output I am getting during
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150422/bd080f94/attachment.htm>


More information about the Users mailing list