[one-users] libxmlrpc_client++.so.3: cannot open shared object file

Coram, Michael mcoram at sandia.gov
Mon Apr 20 12:15:33 PDT 2009


I meant to respond to this earlier.  I ran into the same problem a few weeks back and isolated it to RedHat's SELinux module.  Here is what I did to get around this:

If you are running SELinux in Enforcing mode, you need to allow XMLRPC to do text relocation.  Since SELinux is a good thing, put in the necessary overrides just for the appropriate libraries.  If you don't do this, you'll get a cryptic error saying "cannot restore segment prot after reloc: Permission denied" and the SELinux star at the top of the desktop will tell you the chcon command you need to run.  But, this should be the set of them. 
chcon -t textrel_shlib_t '/usr/local/lib/libxmlrpc++.so.3.06' 
chcon -t textrel_shlib_t '/usr/local/lib/libxmlrpc_server++.so.3.06' 
chcon -t textrel_shlib_t '/usr/local/lib/libxmlrpc_server_abyss++.so.3.06' 
chcon -t textrel_shlib_t '/usr/local/lib/libxmlrpc_client++.so.3.06'
 

Your other option is to run SELinux in Permissive mode, which will then just log warnings.  You should be able to run in Enforcing mode, though.  

Hope this helps,
Mike


-----Original Message-----
From: Javier Fontan [mailto:jfontan at fdi.ucm.es] 
Sent: Monday, April 20, 2009 6:51 AM
To: Wei Wan
Cc: users at lists.opennebula.org
Subject: Re: [one-users] libxmlrpc_client++.so.3: cannot open shared object file


Hello,

The problem you have is so strange. Please issue an ldd command to oned executable to see what it is trying to link. It can also happen that /usr/local/lib is not in the library load path. You can add it easily add it modifying LD_LIBRARY_PATH environment variable:

$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

If your problem is not solved with that send me the output of the ldd command.

Bye

On Apr 14, 2009, at 4:08 AM, Wei Wan wrote:

> Hi, I am using OpenNebula for my rearch work, My OS is RedHat Server
> 5 with Kernel 2.6.18, When I start to run "one start", There comes the 
> error message which seems like below, is it the reason that the 
> libxmlrpc-c package is not installed correctly? I installed it from 
> source package(xmlrpc-1.06.tgz)(1.06.
> 10) in /usr/local/     Any suggestion?  looking forward to recieving  
> your kind reply.
> ####################################################################
> [oneadmin at server bin]# one start
> /opt/nebula/ONE//bin/oned: error while loading shared libraries:  
> libxmlrpc_client++.so.3: cannot open shared object file: No such file 
> or directory Error executing /opt/nebula/ONE//bin/oned.
> ####################################################################
>                                                                                      
> Wei  from China _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

--
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher DSA Research Group: http://dsa-research.org Globus GridWay Metascheduler: http://www.GridWay.org OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org






More information about the Users mailing list