LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2014, 07:48 AM   #1
dmean
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
Apache apachectl-k start error while loading shared libraries: libpcre.so.1:


Running into an issue with an apache/php installation.

Redhat 6.5 Apache 2.4 PHP 5.6

Installed apache in a non-standard installation(did not use yum install httpd). I did so by: -placing the apache zip onto the server -./configure --prefix=/usr/dir/.... make make install

After this apache started and I was able to hit it on a browser. I then stopped apache to install php.

installed PHP and its dependencies which included: libxml2 python

then I ran ./configure --prefix=/usr/dir/util/php --with-libxml-dir=/usr/dir/uti/util/libxml2/ --with-apxs2=/usr/dir/uti/apache/bin/apxs

then I configured apache httpd.conf with LoadModule php5_module modules/libphp5.so

When I attempted to start apache I received the following error message

/httpd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
 
Old 09-05-2014, 08:15 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
You might need to add a LD_LIBRARY_PATH to the environment used for apache for the location of libpcre.so.1, or install it.
 
Old 09-05-2014, 08:18 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by dmean View Post
Running into an issue with an apache/php installation.
No, unfortunately your issue started before that. Because when you want to use RHEL you should use it like it should be used. Those Best Practices include not installing software from source. Unless you know what you are doing and will bear the consequences responsibly. Else you could use CentOS with the RPMForge, EPEL and other (relatively trustworthy wrt Quality Assurance) 3rd party repos.
*This may not be the answer you would have liked to read but without further explanation it certainly is the most suitable answer.
 
Old 09-05-2014, 08:20 AM   #4
dmean
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
No, unfortunately your issue started before that. Because when you want to use RHEL you should use it like it should be used. Those Best Practices include not installing software from source. Unless you know what you are doing and will bear the consequences responsibly. Else you could use CentOS with the RPMForge, EPEL and other (relatively trustworthy wrt Quality Assurance) 3rd party repos.
*This may not be the answer you would have liked to read but without further explanation it certainly is the most suitable answer.
Unfortunately I cannot have root access to this environment, so using the standard yum install httpd will not work.
 
Old 09-05-2014, 08:27 AM   #5
dmean
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jpollard View Post
You might need to add a LD_LIBRARY_PATH to the environment used for apache for the location of libpcre.so.1, or install it.
I apologize if this question is basic.. I assume the pcre library is found in the 'pear compatible regular expressions' which I installed into a directory /usr/util. Where would I reference this libpcre.so file?
 
Old 09-05-2014, 08:38 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by dmean View Post
Unfortunately I cannot have root access to this environment, so using the standard yum install httpd will not work.
If you aren't allowed root access to install software then you should ask responsible personnel to install software for you. If that's out of the question then know you may not even be able to run any service in a decent way anyway depending on the security posture of the machine. Should you remain adamant you should pursue this anyway then please explain why in detail. Maybe there's another way to do what you want.
 
Old 09-05-2014, 12:58 PM   #7
dmean
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Can I prefix the standard yum install httpd?

For example:
yum install httpd --prefix=/usr/dir
 
Old 09-05-2014, 05:59 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
No, but RPM can. Provided the package handles it, list the packages contents and for each distinctive directory use "--reloc".
 
Old 09-08-2014, 12:36 PM   #9
dmean
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
it looks like php cannot be relocated using rpm.

$ rpm -qpi php55-5.5.10-1.el6.x86_64.rpm | grep Relocations
Name : php55 Relocations: (not relocatable)
 
Old 09-08-2014, 12:42 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
So. Have you actually asked responsible personnel to install software for you?
Because else you may not even be able to run your self compiled software properly.
 
Old 09-08-2014, 01:43 PM   #11
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Not to mention the likelihood that it would violate site policy... Which would also explain why they wouldn't install it in the first place.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: vswapnasr@gmail.com Linux - Software 1 05-04-2013 06:49 AM
[SOLVED] error while loading shared libraries: libacl.so.1: cannot open shared object file: fl0 Slackware 4 03-22-2013 03:32 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
error while loading shared libraries: libhid.so.0: cannot open shared object file: No misungs Linux - Software 4 06-10-2009 12:05 PM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration