I'm using the Opensips 1.6.4, memcached module is not compiled by default you need to specify it during the make process.<div><br></div><div>I just fixed my problem, memcached module was looking for libmemcached in the /usr/lib directory, so i just create a symbolic link from original path /usr/local/lib/libmemcached* to /usr/lib/libmemcached* and it works properly.</div>
<div><br></div><div>Thank you very much for your responses,</div><div><div><br clear="all">Antonio Anderson Souza<div><a href="http://www.vizir.com.br" target="_blank">Vizir</a> - <a href="http://www.antonioams.com/" style="font-family:verdana, sans-serif" target="_blank">Blog</a> - <a href="http://twitter.com/antonioams" target="_blank">Twitter</a> - <a href="http://br.linkedin.com/in/antonioams" target="_blank">LinkedIn</a> - <a href="http://www.facebook.com/antonioams" target="_blank">Facebook</a> - (+55 11) 7525 7543</div>
<div><br></div><br>
<br><br><div class="gmail_quote">On Thu, Sep 29, 2011 at 5:24 AM, Vlad Paiu <span dir="ltr"><<a href="mailto:vladpaiu@opensips.org">vladpaiu@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
The memcached and localcache modules offer the same functionality,
but with different back-end storage. The localcache module uses
OpenSIPS shared memory to store the key-value pairs, while the
memcached module uses a memcached server as storage.<br>
<br>
The main error you should try to fix is <font face="'courier new',
monospace"><br><div class="im">
ERROR:core:sr_load_module: could not open module
</usr/local/lib/opensips/modules/memcached.so>:
libmemcached.so.8: cannot open shared object file: No such file or
directory<br>
<br></div>
Is the libmemcached library properly installed ? Have you done a <br>
ldconfig<br>
after installing to make sure is available for using ?<br>
<br>
Regards,<br>
</font><font color="#888888">
<pre cols="72">Vlad Paiu
OpenSIPS Developer</pre></font><div><div></div><div class="h5">
<br>
On 09/29/2011 10:31 AM, Faisal Rehman wrote:
<blockquote type="cite">
<div style="color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:tahoma,new york,times,serif;font-size:10pt">
<div style="font-family:tahoma,'new york',times,serif;font-size:10pt"><span><b>Hi Souza,</b></span></div>
<div style="font-family:tahoma,'new york',times,serif;font-size:10pt"><span><br>
</span></div>
<div style="font-size:10pt"><span>First of all please tell me
which OpenSIPS version have you installed on your CentOS
box? I am having the latest release of OpenSIPS and it is
not having any <font face="'Courier New', courier, monaco, monospace,
sans-serif">memcached.so</font> module in the modules
directory instead it is having a new module that performs
the same function of memory caching known as <font face="'Courier New', courier,
monaco, monospace, sans-serif">"localcache.so"</font>.</span></div>
<div style="font-family:tahoma,'new york',times,serif;font-size:10pt"><span><br>
</span></div>
<div style="font-size:10pt"><span style="font-family:tahoma,'new york',times,serif">The
OpenSIPS will never start or work if you copy the simple
library files from the /lib directory of your system because
OpenSIPS is compiled with its own modules which are
available in</span><font face="'Courier New', courier, monaco, monospace, sans-serif">
/usr/local/lib/opensips/modules</font> directory (Please be
noted that the new releases are having modules in lib64
instead of lib).</div>
<div style="font-family:tahoma,'new york',times,serif;font-size:10pt"><br>
</div>
<div><font size="2">So in my opinion
the fix of your problem will be removing <font face="'Courier New', courier,
monaco, monospace, sans-serif">libmemcached.so.8</font><span style="font-family:arial,helvetica,sans-serif"> from opensips modules
directory, and then loading the module</span><font face="'Courier New', courier,
monaco, monospace, sans-serif"> localcache.so</font><span style="font-family:arial,helvetica,sans-serif"> in your </span><font face="'Courier New', courier,
monaco, monospace, sans-serif">opensips.cfg</font><span style="font-family:arial,helvetica,sans-serif"> file as:</span></font></div>
<div style="font-family:tahoma,'new york',times,serif"><span style="font-family:arial,helvetica,sans-serif"><font size="2"><br>
</font></span></div>
<div><font size="2"><font face="'Courier New', courier,
monaco, monospace, sans-serif">loadmodule "localcache.so"
</font><br>
</font></div>
<div><font face="arial, helvetica,
sans-serif" size="2"><br>
</font></div>
<div><font face="arial, helvetica,
sans-serif" size="2">and then you can export any parameter
that fullfills your requirement like </font></div>
<div><span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px">modparam("localcache",
"cache_table_size", 10)</span></div>
<div style="font-family:tahoma,'new york',times,serif"><font size="2"><br>
</font></div>
<div style="font-family:tahoma,'new york',times,serif"><font size="2">Please run after that, I
hope it will work :)</font></div>
<div style="font-family:tahoma,'new york',times,serif"><font size="2"><br>
</font></div>
<div style="font-family:tahoma,'new york',times,serif"><font size="2"><br>
</font></div>
<div style="font-family:tahoma,'new york',times,serif"><font size="2">With Best Regards,</font><br>
<br>
</div>
<div style="font-family:tahoma,'new york',times,serif;font-size:10pt"><b>Faisal Rehman</b><br>
<div style="font-size:10pt;font-family:tahoma,'new york',times,serif">
<div style="font-size:12pt;font-family:'times new roman','new york',times,serif"><font face="Arial" size="2">
<hr size="1"><b><span style="font-weight:bold">From:</span></b>
Antonio Anderson Souza <a href="mailto:antonio@vizir.com.br" target="_blank"><antonio@vizir.com.br></a><br>
<b><span style="font-weight:bold">To:</span></b>
OpenSIPS users mailling list
<a href="mailto:users@lists.opensips.org" target="_blank"><users@lists.opensips.org></a><br>
<b><span style="font-weight:bold">Sent:</span></b>
Thursday, September 29, 2011 4:19 AM<br>
<b><span style="font-weight:bold">Subject:</span></b>
[OpenSIPS-Users] Memcached module<br>
</font><br>
<div>Dear All,
<div><br>
</div>
<div>I am having problem to load memcached module on a
CentOS 5.6 box, the message bellow are showed in the
initialization logs:</div>
<div><br>
</div>
<div><font face="'courier new', monospace">Sep 29 04:18:34
[17945] DBG:core:yyparse: loading module
/usr/local/lib/opensips/modules/memcached.so</font></div>
<div><font face="'courier new', monospace">Sep 29 04:18:34
[17945] ERROR:core:sr_load_module: could not open
module
</usr/local/lib/opensips/modules/memcached.so>:
libmemcached.so.8: cannot open shared object file:
No such file or directory</font></div>
<div><font face="'courier new', monospace">Sep 29 04:18:34
[17945] CRITICAL:core:yyerror: parse error in config
file, line 65, column 13-14: failed to load module</font></div>
<div><br>
</div>
<div>I already tried to copy the <font face="arial,
helvetica, sans-serif">libmemcached.so.8 form
/usr/local/lib to </font>/usr/local/lib/opensips/modules/
but the problems still the same.</div>
<div>
<br>
</div>
<div>Does anybody has some idea to help me?</div>
<div><br>
</div>
<div>Best Regards,</div>
<div><br>
</div>
<div>Antonio Anderson Souza
<div><a rel="nofollow" href="http://www.vizir.com.br" target="_blank">Vizir</a>
- <a rel="nofollow" href="http://www.antonioams.com/" style="font-family:verdana,sans-serif" target="_blank">Blog</a> - <a rel="nofollow" href="http://twitter.com/antonioams" target="_blank">Twitter</a> - <a rel="nofollow" href="http://br.linkedin.com/in/antonioams" target="_blank">LinkedIn</a> - <a rel="nofollow" href="http://www.facebook.com/antonioams" target="_blank">Facebook</a> -
<a href="tel:%28%2B55%2011%29%207525%207543" value="+551175257543" target="_blank">(+55 11) 7525 7543</a></div>
<div><br>
</div>
<br>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
</div>
</div>
</div>
</div>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>