Results 1 to 6 of 6

Thread: httpd-2.3.8 installation from source problem

  1. #1
    Join Date
    Dec 2010
    Beans
    6

    httpd-2.3.8 installation from source problem

    Hi,
    I installed apache2 (httpd-2.3.8) from source. Here is what I did, download the source package from the apache2 website. ./configure, installed all the package it depends on, and finally, configure successfully.
    make
    sudo make install

    I think it installed in
    /usr/local/apache2

    So I cd to /usr/local/apache2/bin
    try
    ./httpd start

    and it shows
    ./httpd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory

    ldd ./httpd
    it shows
    linux-gate.so.1 => (0xb7747000)
    libpcre.so.0 => not found
    libaprutil-1.so.0 => /usr/local/apr/lib/libaprutil-1.so.0 (0xb771b000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb76f9000)
    libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0xb76d1000)
    libuuid.so.1 => /lib/libuuid.so.1 (0xb76cd000)
    librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb76c4000)
    libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7692000)
    libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7679000)
    libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7675000)
    libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7526000)

    My libpcre.so.0 is located in /usr/local/lib/libpcre.so.0, I checked that

    How can I fix this problem?

    Thanks!
    Alfred

  2. #2
    Join Date
    Dec 2010
    Beans
    236
    Distro
    Ubuntu Development Release

    Re: httpd-2.3.8 installation from source problem

    Install the packages libpcrecpp0 and libpcre++0 in Synaptic.
    -PhantmKllr

    Dell Dimension 2400 (Upgraded, FTW!) -- Asus M4A785-M Motherboard -- AMD Phenom II x2 545 @ 3.00ghz -- 8gb RAM -- 500gb Samsung HDD -- Nvidia GeForce GTS 250 PNY XLR8

  3. #3
    Join Date
    Dec 2010
    Beans
    6

    Re: httpd-2.3.8 installation from source problem

    $ synaptic
    Segmentation fault

    it doesn't work...

    But I installed pcre-8.11 from source already, and it doesn't work

  4. #4
    Join Date
    Dec 2010
    Beans
    236
    Distro
    Ubuntu Development Release

    Re: httpd-2.3.8 installation from source problem

    "System -> Administration -> Synaptic Package Manager"
    -PhantmKllr

    Dell Dimension 2400 (Upgraded, FTW!) -- Asus M4A785-M Motherboard -- AMD Phenom II x2 545 @ 3.00ghz -- 8gb RAM -- 500gb Samsung HDD -- Nvidia GeForce GTS 250 PNY XLR8

  5. #5
    Join Date
    Feb 2010
    Location
    Kansas City, MO
    Beans
    30
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: httpd-2.3.8 installation from source problem

    This question was never really answered properly. I'm having the same problem and found the correct answer. First of all, you can see all the libraries and where they are with:
    cd /usr/local/apache2/bin
    ldd httpd
    Assuming you used the default settings for where httpd gets installed. When you do that, you should see everything's fine except:
    libpcre.so.1 => not found
    Now, to fix that, you have to delete the file where that library info is stored, and then rebuild the library info. These two commands will do that:
    sudo rm /etc/ld.so.cache
    sudo /sbin/ldconfig
    To double check it worked, you can run
    ldd httpd
    again and see that httpd now knows where all the libraries are.

  6. #6
    Join Date
    Feb 2008
    Beans
    1

    Re: httpd-2.3.8 installation from source problem

    Many thanks Colin for this spot on answer!
    Last edited by elracorey; January 19th, 2013 at 01:17 AM. Reason: to mention name

Bookmarks

Posting Permissions

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