[OpenSIPS-Users] Memcached module

Antonio Anderson Souza antonio at vizir.com.br
Thu Sep 29 15:44:36 CEST 2011


I'm using the Opensips 1.6.4, memcached module is not compiled by default
you need to specify it during the make process.

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.

Thank you very much for your responses,

Antonio Anderson Souza
Vizir <http://www.vizir.com.br> - Blog <http://www.antonioams.com/> -
Twitter <http://twitter.com/antonioams> -
LinkedIn<http://br.linkedin.com/in/antonioams>
 - Facebook <http://www.facebook.com/antonioams> - (+55 11) 7525 7543




On Thu, Sep 29, 2011 at 5:24 AM, Vlad Paiu <vladpaiu at opensips.org> wrote:

> **
> Hello,
>
> 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.
>
> The main error you should try to fix is
>     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
>
> Is the libmemcached library properly installed ? Have you done a
>     ldconfig
> after installing to make sure is available for using ?
>
> Regards,
>
> Vlad Paiu
> OpenSIPS Developer
>
>
> On 09/29/2011 10:31 AM, Faisal Rehman wrote:
>
>  *Hi Souza,*
>
>  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 memcached.so module in the modules directory instead it is
> having a new module that performs the same function of memory caching known
> as "localcache.so".
>
>  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/usr/local/lib/opensips/modulesdirectory (Please be noted that the new releases are having modules in lib64
> instead of lib).
>
>  So in my opinion the fix of your problem will be removing
> libmemcached.so.8 from opensips modules directory, and then loading the
> module localcache.so in your opensips.cfg file as:
>
>  loadmodule "localcache.so"
>
>  and then you can export any parameter that fullfills your requirement
> like
>
>  modparam("localcache", "cache_table_size", 10)
>
>  Please run after that, I hope it will work :)
>
>
>  With Best Regards,
>
>  *Faisal Rehman*
>  ------------------------------
> *From:* Antonio Anderson Souza <antonio at vizir.com.br><antonio at vizir.com.br>
> *To:* OpenSIPS users mailling list <users at lists.opensips.org><users at lists.opensips.org>
> *Sent:* Thursday, September 29, 2011 4:19 AM
> *Subject:* [OpenSIPS-Users] Memcached module
>
> Dear All,
>
>  I am having problem to load memcached module on a CentOS 5.6 box, the
> message bellow are showed in the initialization logs:
>
>  Sep 29 04:18:34 [17945] DBG:core:yyparse: loading module
> /usr/local/lib/opensips/modules/memcached.so
> 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
> Sep 29 04:18:34 [17945] CRITICAL:core:yyerror: parse error in config file,
> line 65, column 13-14: failed to load module
>
>  I already tried to copy the libmemcached.so.8 form /usr/local/lib to /usr/local/lib/opensips/modules/
> but the problems still the same.
>
>  Does anybody has some idea to help me?
>
>  Best Regards,
>
>  Antonio Anderson Souza
> Vizir <http://www.vizir.com.br> - Blog <http://www.antonioams.com/> -
> Twitter <http://twitter.com/antonioams> - LinkedIn<http://br.linkedin.com/in/antonioams>
>  - Facebook <http://www.facebook.com/antonioams> - (+55 11) 7525 7543
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110929/075b37cf/attachment-0001.htm>


More information about the Users mailing list