While trying to load .so file manually using command its failing

Hi all,

I am newbie to linux environment. I was trying to run an .so file manually which in turn call a method in bin folder.

Command given,

XXX_MODULES=libxxx.so /opt/servicename/bin/methodname -Le -c /opt/servicename/etc/methodname/methodname.conf -n -C -t -m ""

When i tried to execute the command its giving error as

" Initialization of module 'libxxx.so' failed with error code -1
Loading module libxxx.so failed, Continuing anyway. "

What would be the issue. Kindly help me with this...

Regards,
Sharath.

That is not what I perceive. It looks like you are setting variable XXX_MODULES to value of libxxx.so and then invoking (running) /opt/servicename/bin/methodname with a number of arguments.