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/modules directory (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.8from opensips modules directory, and then loading the modulelocalcache.soin your opensips.cfgfile 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 <[email protected]>
*To:* OpenSIPS users mailling list <[email protected]>
*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
[email protected] <mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to