install apache 2.2.x on mac

Posted on 2009-02-22
Last Modified: 2013-11-23
Hi, I'm having some troulbe compiling apache on the mac 10.4.

This is what I tried:

make clean
./configure --prefix=/usr/local/apache2 \
                    --enable-module=so \
                    --enable-module=rewrite \
            --enable-module=most \
sudo make install

Upon sudo make install I receive this error:

I don't know why the lib was moved.

When I type in httpd -V I receive this (from an already installed apache). Just fyi I'm recompiling since I couldn't get the apache to work on my mac so this info is gleaned from a prior apache install:
Server version: Apache/2.2.11 (Unix)
Server built:   Feb  8 2009 09:09:57
Server's Module Magic Number: 20051115:21
Server loaded:  APR 1.3.3, APR-Util 1.3.4
Compiled using: APR 1.3.3, APR-Util 1.3.4
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D HTTPD_ROOT="/apache2"
 -D SUEXEC_BIN="/apache2/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

However, I noticed the HTTPD ROOT is pointing to "/apache" and not "/usr/local/apache2".
How do I fix this?

Much thanks.

Making install in srclib

Making install in pcre

Making install in os

Making install in unix

Making install in server

Making install in mpm

Making install in prefork

Making install in modules

Making install in aaa

Making install in filters

Making install in loggers

Making install in metadata

Making install in http

Making install in generators

Making install in mappers

Making install in support

/usr/local/apache2/build/libtool --silent --mode=link gcc -g -O2        -o htpasswd  htpasswd.lo    /Users/victorkimura/documents/downloads/computing/development/apache/httpd-2.2.11/srclib/pcre/ /usr/local/apache2/lib/ -lexpat -liconv /usr/local/apache2/lib/ -lpthread

libtool: link: warning: library `/usr/local/apache2/lib/' was moved.

libtool: link: warning: library `/usr/local/apache2/lib/' was moved.

libtool: link: warning: library `/usr/local/apache2/lib/' was moved.

libtool: link: cannot find the library `/apache2/lib/' or unhandled argument `/apache2/lib/'

make[2]: *** [htpasswd] Error 1

make[1]: *** [install-recursive] Error 1

make: *** [install-recursive] Error 1

Open in new window

Question by:Victor Kimura
    LVL 4

    Accepted Solution

    Well if you're setting up a development box, I'd suggest the easy path and surf to:

    and install XAMPP for Mac.

    "XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start."


    Author Comment

    by:Victor Kimura
    Hi davidsperling,

    Thank you for the link. Didn't know this existed? I'd still like to know how to change the HTTPD ROOT though just for my info. I'll have to search online for it.

    LVL 4

    Expert Comment

    You have to edir httpd.conf !

    (the apache conf file)

    Google for more advanced topics like setting up multiple virtual hosts.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    If you other experts are anything like me you are always looking into and testing out new features. While I was doing some research one day I ran across an app that I installed on my Mac and used as a security system. Mac OS X: SecureHome uses your …
    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now