Victor Kimura
asked on
install apache 2.2.x on mac
Hi, I'm having some troulbe compiling apache on the mac 10.4.
This is what I tried:
make clean
./configure --prefix=/usr/local/apache 2 \
--enable-module=so \
--enable-module=rewrite \
--enable-mods-shared=all\
--enable-proxy=shared\
--enable-proxy_http=shared \
--enable-ssl=shared\
--enable-module=most \
--enable-shared=max\
--with-layout=Apache
...
make
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_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED _ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOG S
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/apache2"
-D SUEXEC_BIN="/apache2/bin/s uexec"
-D DEFAULT_PIDLOG="logs/httpd .pid"
-D DEFAULT_SCOREBOARD="logs/a pache_runt ime_status "
-D DEFAULT_LOCKFILE="logs/acc ept.lock"
-D DEFAULT_ERRORLOG="logs/err or_log"
-D AP_TYPES_CONFIG_FILE="conf /mime.type s"
-D SERVER_CONFIG_FILE="conf/h ttpd.conf"
However, I noticed the HTTPD ROOT is pointing to "/apache" and not "/usr/local/apache2".
How do I fix this?
Much thanks.
Vkimura
This is what I tried:
make clean
./configure --prefix=/usr/local/apache
--enable-module=so \
--enable-module=rewrite \
--enable-mods-shared=all\
--enable-proxy=shared\
--enable-proxy_http=shared
--enable-ssl=shared\
--enable-module=most \
--enable-shared=max\
--with-layout=Apache
...
make
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
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOG
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/apache2"
-D SUEXEC_BIN="/apache2/bin/s
-D DEFAULT_PIDLOG="logs/httpd
-D DEFAULT_SCOREBOARD="logs/a
-D DEFAULT_LOCKFILE="logs/acc
-D DEFAULT_ERRORLOG="logs/err
-D AP_TYPES_CONFIG_FILE="conf
-D SERVER_CONFIG_FILE="conf/h
However, I noticed the HTTPD ROOT is pointing to "/apache" and not "/usr/local/apache2".
How do I fix this?
Much thanks.
Vkimura
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/libpcre.la /usr/local/apache2/lib/libaprutil-1.la -lexpat -liconv /usr/local/apache2/lib/libapr-1.la -lpthread
libtool: link: warning: library `/usr/local/apache2/lib/libaprutil-1.la' was moved.
libtool: link: warning: library `/usr/local/apache2/lib/libapr-1.la' was moved.
libtool: link: warning: library `/usr/local/apache2/lib/libaprutil-1.la' was moved.
libtool: link: cannot find the library `/apache2/lib/libexpat.la' or unhandled argument `/apache2/lib/libexpat.la'
make[2]: *** [htpasswd] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You have to edir httpd.conf !
(the apache conf file)
Google for more advanced topics like setting up multiple virtual hosts.
(the apache conf file)
Google for more advanced topics like setting up multiple virtual hosts.
ASKER
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.
Cordially,
vkimura