<html><body><div style="color:#000; background-color:#fff; 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 class="Apple-style-span" 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 class="Apple-style-span" 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 class="Apple-style-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 class="Apple-style-span" 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 class="Apple-style-span" size="2">So in my opinion the fix of your problem will be removing <font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">libmemcached.so.8</font><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; "> from
opensips modules directory, and then loading the module</span><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif"> localcache.so</font><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; "> in your </span><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">opensips.cfg</font><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; "> file as:</span></font></div><div style="font-family: tahoma, 'new york', times, serif; "><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; "><font class="Apple-style-span" size="2"><br></font></span></div><div><font class="Apple-style-span" size="2"><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">loadmodule "localcache.so" </font><br></font></div><div><font class="Apple-style-span" face="arial, helvetica,
sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">and then you can export any parameter that fullfills your requirement like </font></div><div><span class="Apple-style-span" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 13px; "><br></span></div><div><span class="Apple-style-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 class="Apple-style-span" size="2"><br></font></div><div style="font-family: tahoma, 'new york', times, serif; "><font class="Apple-style-span" size="2">Please run after that, I hope it will work :)</font></div><div style="font-family: tahoma, 'new york', times, serif; "><font class="Apple-style-span" size="2"><br></font></div><div style="font-family:
tahoma, 'new york', times, serif; "><font class="Apple-style-span" size="2"><br></font></div><div style="font-family: tahoma, 'new york', times, serif; "><font class="Apple-style-span" 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 size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Antonio Anderson Souza <antonio@vizir.com.br><br><b><span style="font-weight: bold;">To:</span></b> OpenSIPS users mailling list <users@lists.opensips.org><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
id="yiv1124921111">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 class="yiv1124921111Apple-style-span" 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 class="yiv1124921111Apple-style-span" 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 class="yiv1124921111Apple-style-span" 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 class="yiv1124921111Apple-style-span" 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" target="_blank" href="http://www.vizir.com.br">Vizir</a> - <a rel="nofollow" target="_blank" href="http://www.antonioams.com/" style="font-family: verdana, sans-serif; ">Blog</a> - <a rel="nofollow" target="_blank" href="http://twitter.com/antonioams">Twitter</a> - <a rel="nofollow" target="_blank" href="http://br.linkedin.com/in/antonioams">LinkedIn</a> - <a rel="nofollow" target="_blank" href="http://www.facebook.com/antonioams">Facebook</a> - (+55 11) 7525 7543</div>
<div><br></div><br>
</div>
</div><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" 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><br></div></div></div></div></body></html>