Find the answer to your Linux question:
Results 1 to 5 of 5
I am not able to install Apache 2.2.23 with OpenSLL on RHEL 6.3 64bit. I downloaded and installed openssl-1.0.1c using the following command and it gets installed successfully. Code: ./config ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2012
    Posts
    16

    Can not Install Apache 2.2.23 with OpenSLL on RHEL 6.3 64bit


    I am not able to install Apache 2.2.23 with OpenSLL on RHEL 6.3 64bit.


    I downloaded and installed openssl-1.0.1c using the following command and it gets installed successfully.

    Code:
    ./config
    make
    make test
    make install
    Then I tried installing apache using the following command:

    First Try.
    Code:
    /configure \
    --with-ssl=/usr/local/ssl \
    --enable-ssl \
    --enable-modules="all" \
    --enable-mods-shared="most" \
    
    I am getting the following error during the configure...
    configure: error: ... Error, SSL/TLS libraries were missing or unusable
    Second Try.
    Code:
    export LDFLAGS=-ldl
    /configure \
    --with-ssl=/usr/local/ssl \
    --enable-ssl \
    --enable-modules="all" \
    --enable-mods-shared="most" \
    
    configure goes through and I get the following error during the make command:
    
    /usr/bin/ld: /usr/local/ssl/lib/libssl.a(s2_srvr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
    /usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make[4]: *** [mod_ssl.la] Error 1
    make[4]: Leaving directory `/usr/local/src/httpd-2.2.23/modules/ssl'
    make[3]: *** [shared-build-recursive] Error 1
    make[3]: Leaving directory `/usr/local/src/httpd-2.2.23/modules/ssl'
    make[2]: *** [shared-build-recursive] Error 1
    make[2]: Leaving directory `/usr/local/src/httpd-2.2.23/modules'
    make[1]: *** [shared-build-recursive] Error 1
    make[1]: Leaving directory `/usr/local/src/httpd-2.2.23'
    make: *** [all-recursive] Error 1

    Please help.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,691
    When you run ./configure, by default the installation directory is /usr/local and your LD_LIBRARY_PATH is not setup to look there. You need to run configure like this (before building and installing): ./configure --prefix=/usr
    Then run make and make install.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Mar 2012
    Posts
    16
    Appreciate your response. I do not want to install apache in /usr directory. I would like to install it in a /usr/local/apache2 directory which is a default location. I also tried mentioning --prefix=/usr/local/apache2 but it did not help.

    How can i check what is the value of LD_LIBRARY_PATH and secondly, how to inform apache isntallation process about it?



    Quote Originally Posted by Rubberman View Post
    When you run ./configure, by default the installation directory is /usr/local and your LD_LIBRARY_PATH is not setup to look there. You need to run configure like this (before building and installing): ./configure --prefix=/usr
    Then run make and make install.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Mar 2012
    Posts
    16
    Come one Apache Gurus....!!! Anyone ...???

  6. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,691
    You need to set your LD_LIBRARY_PATH as well as other environment variables in order for your installation to work. The Apache documentation should help with this.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •