title: While apachectl start getting open shared object file
body: <p>I try to  install apache webserver using tar file. So, I have download httpd-2.4.tar file and extract.</p>
  
  <p>then, I <strong>try to install</strong></p>
  
  <pre><code> 1. ./configure --prefix=/usr/local/apache
  </code></pre>
  
  <p>but, throw, this error</p>
  
  <pre><code> configure: error: APR not found.  Please read the documentation.
  
   configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
  </code></pre>
  
  <p>so, follow this link and fix this <a href="https://stackoverflow.com/questions/9436860/apache-httpd-setup-and-installation">issue1</a> and <a href="https://stackoverflow.com/questions/10663180/http-install-error-in-libpcre">issue2</a></p>
  
  <p>Then, <strong>run</strong> following command:</p>
  
  <pre><code>1.  $./configure \
  --with-included-apr \
  --with-pcre=/usr/local/pcre/bin/pcre-config \
  --prefix=/usr/local/apache
  
  
  2. $ make 
  
  3. $ make install
  </code></pre>
  
  <p>After that / I go to /usr/local/apache/</p>
  
  <p><strong>Start the Service</strong>:</p>
  
  <pre><code> $  bin/apachectl -k start 
  </code></pre>
  
  <p>Throw  below error:</p>
  
  <pre><code>    httpd: Syntax error on line 66 of /usr/local/apache/conf/httpd.conf: Cannot load modules/mod_authn_file.so into server: /usr/local/apache/modules/mod_authn_file.so: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>go to <strong>apache/modules/</strong> </p>
  
  <p>*.so files not there, only *.a and *.la file are there, </p>
  
  <p>Reference:</p>
  
  <p><a href="https://i.stack.imgur.com/FAj7q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FAj7q.png" alt="enter image description here"></a></p>
  
  <p>I follw this <a href="https://stackoverflow.com/questions/17683738/during-apachectl-start-getting-open-shared-object-file-no-such-file-or-director">link</a> to <strong>Search *.so files , is not there. So, I resinstalled</strong> but same issue only <strong>create *.la and *.a files instead of *.so files,</strong> </p>
  
  <p>Then, I try to change <strong>/apache/conf/httpd.conf</strong></p>
  
  <p><strong>LoadModule authn_core_module modules/mod_authn_core.so</strong> to <strong>LoadModule authn_core_module modules/mod_authn_core.la</strong></p>
  
  <p>after Change, </p>
  
  <pre><code> httpd: Syntax error on line 66 of /usr/local/apache/conf/httpd.conf: Cannot load modules/mod_authn_file.la into server: /usr/local/apache/modules/mod_authn_file.la: invalid ELF header
  </code></pre>
  
  <p>Suggest me, How can i fix this issue and why, create *.a, *.la file instead of *.so. </p>
  
  <p>*.so files updated to *.la files?, if latest means why cannot support?</p>