LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 09-15-2016, 08:03 AM   #1
thebob
LQ Newbie
 
Registered: Jan 2010
Location: France
Posts: 10

Rep: Reputation: 0
libssl.so.1.0.0: cannot open shared object file: No such file or directory


Hi,

I'm trying to upgrade and compile OpenSSL and httpd on a centos 6.5. Even if the compilation doesn't provide any errors for both OpenSSL and httpd, I cannot start httpd anymore.
Below the entire steps I did:

1 - Compile and install OpenSSL
Code:
$ ./config --prefix=/usr/local --openssldir=/usr/local/openssl shared
$ make
$ make install
The result is a success and OpenSSL is upgraded to the latest version:

Code:
OpenSSL> version
OpenSSL 1.0.2h  3 May 2016
2 - Compile and install httpd

Code:
$ vi config.nice

write the below in the config.nice file:
#! /bin/sh
#
# Created by configure

LDFLAGS="-L/usr/local/lib64"; export LDFLAGS
"./configure" \
"--enable-so" \
"--with-included-apr" \
"--enable-ssl" \
"--with-ssl=/usr/local/openssl" \
"LDFLAGS=-L/usr/local/lib64" \
"$@"

$ ./config.nice
$ make
$ make install
Again, success as my version has been upgraded:
Code:
$ apachectl -v
Server version: Apache/2.4.23 (Unix)
Server built:   Sep 15 2016 12:45:48
3 - Try to start httpd

Code:
$ apachectl start
httpd: Syntax error on line 129 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/mod_ssl.so into server: libssl.so.1.0.0: cannot open shared object file: No such file or directory
However I correctly have the mod_ssl.so file but when I use ldd I have this information:
Code:
$ ldd /usr/local/apache2/modules/mod_ssl.so
        linux-vdso.so.1 =>  (0x00007fffbe5b7000)
        libssl.so.1.0.0 => not found
        libcrypto.so.1.0.0 => not found
        librt.so.1 => /lib64/librt.so.1 (0x00007fb54166a000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fb541433000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb541215000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fb540e81000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb541ab8000)
        libfreebl3.so => /lib64/libfreebl3.so (0x00007fb540c7e000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fb540a79000)
Do you have any idea what could be the issue? I believe I gave all necessary information to compile so I don't know what could be wrong.

Thank you for your help.

Last edited by thebob; 09-15-2016 at 08:05 AM.
 
Old 09-15-2016, 08:09 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,042

Rep: Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708
probably you can set LD_LIBRARY_PATH to /usr/local/lib64 or /usr/local/openssl before start
 
Old 09-15-2016, 09:09 AM   #3
thebob
LQ Newbie
 
Registered: Jan 2010
Location: France
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you for your answer.
I did what you suggested but it gives me the same error:

Code:
$ LD_LIBRARY_PATH=/usr/local/lib64
$ apachectl start
httpd: Syntax error on line 129 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/mod_ssl.so into server: libssl.so.1.0.0: cannot open shared object file: No such file or directory
Code:
$ LD_LIBRARY_PATH=/usr/local/openssl
$ apachectl start
httpd: Syntax error on line 129 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/mod_ssl.so into server: libssl.so.1.0.0: cannot open shared object file: No such file or directory
Any other idea?
 
Old 09-15-2016, 09:11 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,042

Rep: Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708
http://wiredrevolution.com/system-ad...d_library_path
probably you have forgotten to export
 
Old 09-15-2016, 09:37 AM   #5
thebob
LQ Newbie
 
Registered: Jan 2010
Location: France
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you very much pan64, the link you gave me solved the issue!
To be honest, I don't really understand why I should use that but the fact is that everything works and Apache can start !
 
Old 09-16-2016, 03:37 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,042

Rep: Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708Reputation: 3708
you are welcome
that is quite simple: the lib is located in an "unusual" directory, so you need to tell the system where to look for it.
(If you really want to say thanks just click on yes)
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-config:error while loading shared libraries: libgcc_s.so.1 cannot open shared object file: No such file or directory wenyumei Ubuntu 1 07-20-2016 11:58 AM
libssl.so.10: cannot open shared object file: No such file or directory Iyyappan Linux - Server 5 07-20-2012 06:19 PM
[SOLVED] libssl.so.10: cannot open shared object file: No such file or directory sanjay87 Linux - Server 1 04-27-2012 01:14 AM
libssl.so.0.9.7: cannot open shared object file mr.sambo Linux - Kernel 2 12-03-2009 12:59 PM
libssl.so.5: cannot open shared object file chandramani Linux - Server 2 03-15-2007 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 02:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration