Solved

Permission denied to shared libraries and can't use yum

Posted on 2013-12-02
4
2,109 Views
Last Modified: 2013-12-09
I was notified on an issue with a Centos 6.3 server this past weekend. I've been looking around google for most of the morning trying to figure out what they did to the system, but haven't been successful in fixing it yet.

When trying to run yum I receive the following error:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /usr/lib64/python2.6/site-packages/pycurl.so: undefined symbol: CRYPTO_set_locking_callback

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jul 10 2013, 22:48:45)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]


When trying to start httpd/apache I get:
Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libpcre.so.0: failed to map segment from shared object: Permission denied

and when rebooting the server I receive the following:
/sbin/shutdown: error while loading shared libraries: libgcc_s.so.1: failed to map segment from shared object: Permission denied

To see if I could get httpd service to start, I tried disabling SELinux. The service DID start and reboot error message went away. Using Yum still is not working though. When apache did start the website displayed the following error:

"Message: preg_match(): Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0"

and reading this http://bsdsupport.org/fixing-pcre_utf8-errors-in-freebsd/ it points back to libpcre permission problem.

So how would I go about the fixing these issues? It looks like a permissions and python problems, but I don't know what to try next. Any ideas?

The only thing the user who reported problem said they did was change the username/group that apache uses in the httpd.conf file.
0
Comment
Question by:futureman0
  • 2
  • 2
4 Comments
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 39691970
On my system, I only have pycurl-7.19.0-py2.6-linux-i686.egg under /usr/lib/python2.6/site-packages. But under /usr/lib/python2.7/site-packages I have pycurl.so. I also have M2Crypto/__m2crypto.so, which has CRYPTO_set_locking_callback as an entry point. Maybe you need to get that package
0
 

Accepted Solution

by:
futureman0 earned 0 total points
ID: 39695950
It turns out all of the issues were related to another individual putting the Matlab directories into the system search path. The system was trying to use the Matlab libraries instead of the ones located at /usr/local/lib64. I ended up having to delete the following:

deleted /usr/local/MATLAB/R2013b/bin/glnxa64/libcurl.so.4 (yum)
deleted /usr/local/MATLAB/R2013b/bin/glnxa64/libpcre.so.0 (error message on website)
deleted /usr/local/MATLAB/R2013b/sys/os/glnxa64/libgcc_s.so.1 (reboot issue)
deleted /usr/local/MATLAB/R2013b/bin/glnxa64/libexpat.so.1 (httpd)
deleted /usr/local/MATLAB/R2013b/bin/glnxa64/libgmp.so.3 (httpd)
deleted /usr/local/MATLAB/R2013b/sys/os/glnxa64/libstdc++_.so.6 (mysql)

Or just remove the Matlab directories from the system search path.
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 39696724
Good pick up.
0
 

Author Closing Comment

by:futureman0
ID: 39705694
I figured out my own problem
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Samba Question 11 103
Granting root permissions to a user (in Debian Jessie) 17 47
Nee dhelp identifying the OS and how to access 7 36
Linux 3 33
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question