<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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
class="yiv1124921111Apple-style-span" face="'courier new',
monospace"><br>
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>
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>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer</pre>
<br>
On 09/29/2011 10:31 AM, Faisal Rehman wrote:
<blockquote
cite="mid:1317281500.16136.YahooMailNeo@web46210.mail.sp1.yahoo.com"
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 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 face="Arial"
size="2">
<hr size="1"><b><span style="font-weight: bold;">From:</span></b>
Antonio Anderson Souza <a class="moz-txt-link-rfc2396E" href="mailto:antonio@vizir.com.br"><antonio@vizir.com.br></a><br>
<b><span style="font-weight: bold;">To:</span></b>
OpenSIPS users mailling list
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><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 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 moz-do-not-send="true" rel="nofollow"
target="_blank" href="http://www.vizir.com.br">Vizir</a>
- <a moz-do-not-send="true" rel="nofollow"
target="_blank" href="http://www.antonioams.com/"
style="font-family: verdana,sans-serif;">Blog</a> - <a
moz-do-not-send="true" rel="nofollow"
target="_blank"
href="http://twitter.com/antonioams">Twitter</a> - <a
moz-do-not-send="true" rel="nofollow"
target="_blank"
href="http://br.linkedin.com/in/antonioams">LinkedIn</a> - <a
moz-do-not-send="true" 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 moz-do-not-send="true"
ymailto="mailto:Users@lists.opensips.org"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
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 wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>