While trying to load .so file manually is failing

If it doesn't fit in another category, ask it here.
Post Reply
sharath
Posts: 3
Joined: 2014/04/18 12:33:18

While trying to load .so file manually is failing

Post by sharath » 2014/04/18 12:56:53

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.

User avatar
TrevorH
Forum Moderator
Posts: 26915
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: While trying to load .so file manually is failing

Post by TrevorH » 2014/04/18 13:10:32

A .so file is like a Windows dll file so it's a library and not intended to be executed directly.

Obscuring the names of what you're trying to run only serves to make life confusing for anyone trying to help you so posting the actual commands and output that you receive is more likely to obtain help.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 5 - Miscellaneous Questions”