<div dir="ltr">Group,<div><br></div><div><br></div><div>I was able to compile after installing json-c via the following rpm <span class="">json-c-0.11-4.el7_0.src.rpm</span><span class="">  </span><span class="">json-c-devel-0.11-4.el7_0.x86_64.rpm.</span></div>







</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 20, 2015 at 8:50 PM, Tito Cumpen <span dir="ltr">&lt;<a href="mailto:tito@xsvoce.com" target="_blank">tito@xsvoce.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">







<p><span>accidentally sent the nascent message.</span></p><p><span>Here it is</span></p><p><span><br></span></p><p><span>make[2]: Entering directory `/usr/src/opensips_trunk/modules/cachedb_mongodb&#39;</span></p>
<p><span>Compiling cachedb_mongodb_json.c</span></p>
<p><span>Compiling cachedb_mongodb_dbase.c</span></p>
<p><span>Compiling cachedb_mongodb.c</span></p>
<p><span>In file included from </span><span>cachedb_mongodb_json.h:29:0</span><span>,</span></p>
<p><span>                 from </span><span>cachedb_mongodb_json.c:28</span><span>:</span></p>
<p><span>cachedb_mongodb_dbase.h:37:23:</span><span> </span><span>fatal error: </span><span>json/json.h: No such file or directory</span></p>
<p><span> #include &lt;json/json.h&gt;</span></p>
<p><span>                       ^</span></p>
<p><span>compilation terminated.</span></p>
<p><span>In file included from </span><span>cachedb_mongodb_dbase.c:27:0</span><span>:</span></p>
<p><span>cachedb_mongodb_dbase.h:37:23:</span><span> </span><span>fatal error: </span><span>json/json.h: No such file or directory</span></p>
<p><span> #include &lt;json/json.h&gt;</span></p>
<p><span>                       ^</span></p>
<p><span>compilation terminated.</span></p>
<p><span>In file included from </span><span>cachedb_mongodb.c:41:0</span><span>:</span></p>
<p><span>cachedb_mongodb_dbase.h:37:23:</span><span> </span><span>fatal error: </span><span>json/json.h: No such file or directory</span></p>
<p><span> #include &lt;json/json.h&gt;</span></p><p><span><br></span></p><p><span><br></span></p><p><span>Here is the output from my mongoc install:</span></p><p><span><br></span></p><p><span> make install </span></p><p><span>mkdir -p /usr/local/include /usr/local/lib</span></p><p><span>cp -a src/mongo.h src/bson.h /usr/local/include</span></p><p><span>cp -a libmongoc.so /usr/local/lib/libmongoc.so.0.6.0</span></p><p><span>cp -a libbson.so /usr/local/lib/libbson.so.0.6.0</span></p><p><span>cd /usr/local/lib &amp;&amp; ln -sf libmongoc.so.0.6.0 libmongoc.so.0.6</span></p><p><span>cd /usr/local/lib &amp;&amp; ln -sf libbson.so.0.6.0 libbson.so.0.6</span></p><p><span>cd /usr/local/lib &amp;&amp; ln -sf libmongoc.so.0.6 libmongoc.so</span></p><p><span>cd /usr/local/lib &amp;&amp; ln -sf libbson.so.0.6 libbson.so</span></p><p><span>cp -a libmongoc.a /usr/local/lib</span></p><p><span>cp -a libbson.a /usr/local/lib</span></p><p><span>


















</span></p><p><span>make[1]: Entering directory `/usr/src/o</span></p></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 20, 2015 at 8:46 PM, Tito Cumpen <span dir="ltr">&lt;<a href="mailto:tito@xsvoce.com" target="_blank">tito@xsvoce.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Group,<div><br></div><div><br></div><div>I am having issues compiling opensips 2.1 with cachedb_mongo enabled.</div><div><br></div><div>I have install version 0.6 along with the suggested json-c lib. This is the output I am getting during</div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>