Unpack the downloaded archive and edit the files ‘config.layout’ you will find there in the following locations:
- ./config.layout
- ./srclib/apr/config.layout
- ./srclib/apr-util/config.layout
Add the following lines to the file at the bottom:
prefix: /usr/local/apache2
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/bin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/modules
mandir: ${prefix}/man
sysconfdir: /etc/httpd
datadir: /Library/Documents
installbuilddir: ${datadir}/build
errordir: ${datadir}/error
iconsdir: ${datadir}/icons
htdocsdir: /Library/WebServer/Documents
manualdir: ${datadir}/manual
cgidir: /Library/WebServer/CGI-Executables
includedir: ${prefix}/include
localstatedir: /var
runtimedir: ${localstatedir}/run
logfiledir: ${localstatedir}/log/httpd
proxycachedir: ${localstatedir}/proxy
</Layout>
When you saved the additional Layout which defines what goes where you’re ready to continue. I’ll explain what we have defined here, in this layout we decide what goes where when you install Apache. The software (binaries and such) go into ‘/usr/local/apache2‘. All the log-files go into ‘/var/log/httpd‘. The runtime dependancies (like the pid file) go into ‘/var/run‘ and I’ve decided to re-use the original Mac OSX directories for the websites and the CGI files. They will end up in ‘/Library/WebServer/‘
Open a Terminal session enter the directory in which you extracted the archive and edited the ‘config.layout’. Use a normal user to execute the following the commands, please note difference for Intel or PowerPC based Mac’s:
For Intel:
./configure -enable-layout=DIYMacServer \
-enable-mods-shared=all \
-with-ssl=/usr \
-with-mpm=prefork \
-enable-ssl \
-enable-dav \
-enable-cache \
-enable-proxy \
-disable-unique-id \
-enable-logio \
-enable-deflate \
-with-included-apr \
-enable-cgi \
-enable-cgid \
-enable-suexec
For PowerPC:
./configure -enable-layout=DIYMacServer \
-enable-mods-shared=all \
-with-ssl=/usr \
-with-mpm=prefork \
-enable-ssl \
-enable-dav \
-enable-cache \
-enable-proxy \
-disable-unique-id \
-enable-logio \
-enable-deflate \
-with-included-apr \
-enable-cgi \
-enable-cgid \
-enable-suexec
and follow with:
If these processes end without error you are ready to install Apache. To make sure you get the new version 2 configuration set please copy the original configuration to a safe place using:
Then complete the install using the following command:
Apache is now installed in ‘/usr/local/apache2‘, your websites html and php should be located in ‘/Library/WebServer/Documents‘. You can configure your web server with the ‘httpd.conf‘ located in ‘/etc/httpd‘
To start the new webserver, make sure the default Mac OS X version is turned off, use:
Next step: Configuring Apache on Tiger



9:17 pm
sudo /usr/local/apache2/bin/apachectl start
httpd: Syntax error on line 207 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/httpd/mod_log_config.so into server: Symbol not found: _ap_month_snames\n Referenced from: /usr/libexec/httpd/mod_log_config.so\n Expected in: flat namespace\n
I followed this setup from beginning till starting Apache on Mac mini intel duo core, Mac os X 10.4.8
Any idea why I have problems with mod_log_config.so ?
10:22 pm
Do you still have the original httpd.conf from the original Apache
install or did you upgrade that as well. You are including Apache 1.x
modules from the old configuration.
I missed that in the documentation (will correct it), please copy from
the Apache source directory httpd-2.2.4/docs/conf into /etc/httpd (make
a copy of the originals for safekeeping)
PS. Christophe, my email to you is getting bounced ?
9:04 pm
It works now, what I did before the make command:
> mv /etc/httpd /etc/httpd.old
> make
> sudo make install
> sudo /usr/local/apache2/bin/apachectl start
No more errors
It seems that the install won’t overwrite your initial config files pointing to the older modules used by the default apache delivered with OS X.
5:43 pm
If you get a CFLAGS error, be sure you’re in the bash shell and not tcsh (and have the latest XCODE installed)
5:39 pm
Why enable some modules (ie: dav & ssl) when they are alrady enabled by using –enable-mods-shared=all?
6:00 pm
Really don’t know anymore, so it’s a good question. I’ll look into it…
10:34 pm
How do we compile in such a way that we get mod_unique_id as a module installed?
7:46 pm
Add –enable-unique-id to the configure statement and re-compile.
5:47 pm
Ok, got enable-unique-id installed trying to install mod_security2 and I’m having problems
i think it’s a problem with libxml2
Cannot load /usr/lib/libxml2.so into server: cannot create object file image or add library
any thoughts?
2:24 pm
To make it compile under 10.5, one must change the -isysroot flag to “/Developer/SDKs/MacOSX10.5.sdk”, and set the APR_HAS_SENDFILE to 0 (line 220) in the file srclib/apr/include/apr.h before configuring & making binaries.
4:12 pm
Julien, you just beat me to it, I was going change the documentation to reflect these issues. I will do this later.
9:15 am
Hi there,
I made the change to -isysroot flag as I’m running 10.5, but I couldn’t find the file “srclib/apr/include/apr.h” I decided to try it like this but I got an error, so I went back and rename “srclib/apr/include/apr.h.in” to “srclib/apr/include/apr.h” and uncomment the APR_HAS_SENDFILE and set it’s value to cero; but again I got the same error.
/config.pld: line 2:
# Classical Apache path layout.: command not found
./config.pld: line 23: unexpected EOF while looking for matching `”
./config.pld: line 24: syntax error: unexpected end of file
checking for chosen layout… Alberto
checking for working mkdir -p… yes
checking build system type… i386-apple-darwin9.0.0
checking host system type… i386-apple-darwin9.0.0
checking target system type… i386-apple-darwin9.0.0
Configuring Apache Portable Runtime library …
configuring package in srclib/apr now
configure: error: expected an absolute directory name for –bindir: NONE/bin
configure failed for srclib/apr
d142-179-120-244:httpd-2.2.6 alberto$
I need some help, please.
9:57 am
First run the configure statement, then change the apr.h and then run make!
4:06 am
Ok, I found one of the errors… don’t use TextEdit for editting your file or your end of line are going to be totally different!
I finally saw some progress but still is not running. Here are the steps that I’m following:
1) config.layout
prefix: /usr/local/apache2
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/bin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/modules
mandir: ${prefix}/man
sysconfdir: /etc/httpd
datadir: /Library/Webserver
installbuilddir: ${datadir}/build
errordir: ${datadir}/error
iconsdir: ${datadir}/icons
htdocsdir: ${datadir}/Documents
manualdir: ${datadir}/manual
cgidir: ${datadir}/CGI-Executables
includedir: ${prefix}/include
localstatedir: /var
runtimedir: ${localstatedir}/run
logfiledir: ${localstatedir}/log/httpd
proxycachedir: ${runtimedir}/proxy
2) execute command:
CFLAGS=”-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk” \
./configure –enable-layout=DIYMacServer \
–enable-mods-shared=all \
–with-ssl=/usr \
–with-mpm=prefork \
–enable-ssl \
–enable-dav \
–enable-cache \
–enable-proxy \
–enable-shared \
–disable-static \
–disable-unique-id \
–disable-ipv6 \
–enable-logio \
–enable-deflate \
–with-ldap \
–with-ldap-include=/usr/include \
–with-ldap-lib=/usr/lib \
–with-included-apr \
–enable-ldap \
–enable-auth-ldap \
–enable-cgi \
–enable-cgid \
–enable-suexec
3) Edit apr.h:
Change #define APR_HAS_SENDFILE 1 to #define APR_HAS_SENDFILE 0 in line 220
4) make
5) sudo make install
7) sudo /usr/local/apache2/bin/apachectl start
httpd: Syntax error on line 207 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/httpd/mod_log_config.so into server: cannot create object file image or add library
8)sudo cp docs/conf/httpd.conf /etc/httpd/
d142-179-120-244:httpd-2.2.6
9)sudo /usr/local/apache2/bin/apachectl start
httpd: Syntax error on line 29 of /etc/httpd/httpd.conf: ServerRoot must be a valid directory
At this point I don’t know how my installation is, which files have been modified, which ones I have moved :_(
I’m totally lost, what should I do next? uninstall and reinstall? how do I uninstall a program in Mac?
I really appreciate all the help that you are giving me
PS: I try to run the configure process again and this is the error that I get
-bash: ./configure: No such file or directory
8:26 am
I’ve send you an email describing the process step by step again, I’ve even made a separate blogpost to describe the compilation of Apache on Leopard.
8:04 pm
Thank you very much Richard for all this help. Would you mind to resend me the email, I didn’t receive it and is not even in my junk mail box.
The other blogpost that are you talking about is “Compiling Apache on Leopard : 11/17″?
8:55 pm
It’s been resend, and yes you are correct on the blogpost!
12:12 am
I am trying to get apache 2.2.8 compiled on mac os x 10.4.11 and when I run the PPC CFLAGS stuff I get the following:
./configure: line 1: Â : command not found
./configure: line 2: Â : command not found
./configure: line 3: Â : command not found
./configure: line 4: Â : command not found
./configure: line 5: Â : command not found
./configure: line 6: Â : command not found
./configure: line 7: Â : command not found
./configure: line 8: Â : command not found
./configure: line 9: Â : command not found
./configure: line 10: Â : command not found
./configure: line 11: Â : command not found
./configure: line 12: Â : command not found
./configure: line 13: Â : command not found
./configure: line 14: Â : command not found
./configure: line 15: Â : command not found
./configure: line 16: Â : command not found
./configure: line 17: Â : command not found
./configure: line 18: Â : command not found
./configure: line 19: Â : command not found
./configure: line 20: Â : command not found
checking for chosen layout… DIYMacServer
checking for working mkdir -p… yes
checking build system type… powerpc-apple-darwin8.11.0
checking host system type… powerpc-apple-darwin8.11.0
checking target system type… powerpc-apple-darwin8.11.0
Configuring Apache Portable Runtime library …
configuring package in srclib/apr now
configure: error: expected an absolute directory name for –bindir: NONE/bin
configure failed for srclib/apr
12:43 pm
Gidday,
When I ran make (i386, Tiger 10.4, Apache 2.2.9) it failed with errors on util_ldap.c:
util_ldap.c:41:2: error: #error mod_ldap requires APR-util to have LDAP support built in
util_ldap.c: In function
6:45 am
I am running OS X 10.4.11 on a Quicksilver 2002 800 mhz. I have been having a hard time getting –enable-ldap to work with apache 2.2.8, then ran into an article ( http://marc.info/?l=apache-httpd-users&m=116109145131564&w=2 ) that said you had to install apr and apr-util first. The included apr will not work. The apr-util has to be configured –with-ldap. I did it and apache 2.2.8 installed fine.
You can also start apache with the preference panel.
cd /usr/sbin.
mv apachctl apachctl.org
ln -s /usr/local/sbin/apachctl apachctl
In httpd.conf file go to the bottom and uncomment
Include etc/httpd/extra/httpd-mpm.conf
in httpd-mpm.conf change
PidFile “var/run/httpd.pid” to PidFile “/var/run/httpd.pid”.
httpd-mpm.conf is located in the extra folder
Go to the preference pane and start Personal Web Sharing.
The below file structure is how I set up my config.layout
prefix: /usr/local
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/sbin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/libexec/httpd
mandir: ${prefix}/share/man
sysconfdir: ${prefix}/etc/httpd
datadir: /Library/WebServer
installbuilddir: ${prefix}/share/httpd/build
errordir: ${prefix}/share/httpd/error
iconsdir: ${prefix}/share/httpd/icons
htdocsdir: ${datadir}/Documents
manualdir: /Library/Documentation/Services/apache
cgidir: ${datadir}/CGI-Executables
includedir: ${prefix}/include/httpd
localstatedir: ${prefix}/var
runtimedir: ${localstatedir}/run
logfiledir: ${localstatedir}/logs
proxycachedir: ${localstatedir}/proxy
6:58 am
Dowload the current apr and apr-util from the apache web site.
Uncompress the files.
cd apr-1.?.? folder.
CFLAGS=”-arch ppc” ./configure –quiet && make && sudo make install
make note of where apr is installed!
cd ../apr-util-1.?.?
CFLAGS=”-arch ppc” \
./configure –quiet \
–with-apr=’the folder where apr was installed’ \
–with-ldap \
–with-ldap-include=/usr/include \
–with-ldap-lib=/usr/lib
make && sudo make install
you can then configure apache with –enable-ldap
12:39 am
-bash: ./configure: No such file or directory
I am a novice, and this is my first time trying to do any programming, beside small scripts years ago on IRC. any way, I have tried entering your code copy and paste, typing all by hand, line by line. I have no idea what I’m doing. I thought this $60 book was going to make me and expert programmer, and I can’t even install the software.
5:20 am
Hey there. I’m trying to set this up on a Power Mac G4 DA running 10.4.11 but have run into a spot of trouble:
configure: error: in `/Users/G4Admin/Desktop/httpd-2.2.11/srclib/apr’:
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details.
configure failed for srclib/apr
Can anyone help please? Thanks
7:34 am
@Stephen, please install the XCode development tools and all will work.
10:57 pm
Hello. I am also a complete newbie to this stuff. I have been trying for over a week to get all of this up and running. I am just using the Apache 1.3.41 that came with OS Tiger 10.4.11 (I just want to run a simple test server to do some PHP stuff – I thought learning PHP was going to be the hard part and I can’t even get the server up and running!). Anyway, right now, I have been trying to just get my “localhost” to read my test page. I put it into my “User” account under “Sites” like I’ve read to in a hundred different places and, no matter what I do, I just get the 404 error message (not found on this server). Does anyone have any idea what is going on? I just spent three days completely reloading all of my software and reconfiguring the mess I had built up. Still, it’s the same damn error message!!
12:40 am
Hello Richard,
Thank you for the guidance on the website, clear and easy to follow.
I hope that you might be able to point me in the right direction. Using your previous advice from the old website [using 'Richard5'(I've only just got to this site, the differences in the recommendation seem only to be in some of the locations and one of the modules)], I have downloaded and installed Apache2.2.11. All seemed to go well until I tried to ’start’, httpd is looking for a WebObjects Adaptor file:
fopen: No such file or directory
httpd: could not open document config file /System/Library/WebObjects/Adaptors/Apache/apache.conf
I am unable to locate the reason for it searching for this file, do you have any ideas as to why httpd is looking for it? is it a standard file that I’ve omitted?
My system is a G4 ppc running OS X 10.4.11.
My /System/Library/WebObjects file only contains Java and Frameworks files.
Thanks
9:04 pm
Jeff started the wrong apachectl, forgetting the “./”. He is a very happy user now.
12:43 am
Where does one find XCode for Tiger?
Jz.
6:12 am
@Joel, On the installation disk you received with your computer or you can download one from developer.apple.com (free registration required). The latest version for Tiger is XCode 2.5
10:17 pm
Hi Richard,
Thanks so much. I found an error on the “For PowerPC” section of this page. It says:
CFLAGS=”-arch ppc -isysrootv/Developer/SDKs/MacOSX10.4u.sdk” \
There is a “v” at the end of “-arch ppc -isysrootv” instead of a space.
Thanks,
Andrew
10:41 pm
@Andrew, thanks I’ve just corrected it.
6:28 pm
I am still having troubles getting past the “expected absolute directory for -bindir” error when trying Apache 2.2.13 on a PPC and OS X 10.4.11:
BRTF-Inventory-Development-Server:~/Desktop/httpd-2.2.13 admin$ CFLAGS=”-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk” \
> ./configure -enable-layout=DIYMacServer \
> -enable-mods-shared=all -with-ssl=/usr \
> -with-mpm=prefork \
> -enable-ssl -enable-dav -enable-cache -enable-proxy \
> -disable-unique-id -enable-logio -enable-deflate -with-included-apr -enable-cgi -enable-cgid -enable-suexec
./configure: line 1: ?: command not found
./configure: line 2: ?: command not found
./configure: line 3: ?: command not found
./configure: line 4: ?: command not found
./configure: line 5: ?: command not found
./configure: line 6: ?: command not found
./configure: line 7: ?: command not found
./configure: line 8: ?: command not found
./configure: line 9: ?: command not found
./configure: line 10: ?: command not found
./configure: line 11: ?: command not found
./configure: line 12: ?: command not found
./configure: line 13: ?: command not found
./configure: line 14: ?: command not found
./configure: line 15: ?: command not found
./configure: line 16: ?: command not found
./configure: line 17: ?: command not found
./configure: line 18: ?: command not found
./configure: line 19: ?: command not found
./configure: line 20: ?: command not found
checking for chosen layout… DIYMacServer
checking for working mkdir -p… yes
checking build system type… powerpc-apple-darwin8.11.0
checking host system type… powerpc-apple-darwin8.11.0
checking target system type… powerpc-apple-darwin8.11.0
Configuring Apache Portable Runtime library …
configuring package in srclib/apr now
configure: error: expected an absolute directory name for –bindir: NONE/bin
configure failed for srclib/apr
Not sure where I am going wrong. There also seems to be no apr.h file in the source code directory. I ran MD5 checksum against the download to ensure it arrived correctly. Now I am stumped. Any thoughts?
with thanks,
Byron
8:14 pm
update to above: It would seem the   (non-breaking space) used to make it look pretty in the HTML is the culprit.
By typing in the DIYMacServer configuration manually and appending it to all the requisite config.layout files, it works fine.
Sure would be nice to have the website more accessible (i.e. get rid of the less-than-necessary nbsp tags) though
3:57 am
when I run ‘make’ the system goes into a loop and keeps checking again and again for the same things. part of the loop looks like this:
checking whether the g++ linker (/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld) supports shared libraries… yes
checking dynamic linker characteristics… darwin8.10.0 dyld
(cached) (cached) checking how to hardcode library paths into programs… immediate
appending configuration tag “F77″ to libtool
checking for gcc… (cached) gcc
checking whether we are using the GNU C compiler… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking for gcc option to accept ISO C89… (cached) none needed
checking for a BSD-compatible install… /usr/bin/install -c
checking for ANSI C header files… (cached) yes
checking fcntl.h usability… yes
checking fcntl.h presence… yes
checking for fcntl.h… yes
checking for unistd.h… (cached) yes
checking for string.h… (cached) yes
checking whether byte ordering is bigendian… yes
checking for an ANSI C-conforming const… yes
checking for off_t… yes
checking for size_t… yes
checking for working memcmp… yes
checking for stdlib.h… (cached) yes
checking for unistd.h… (cached) yes
checking for getpagesize… yes
checking for working mmap… yes
checking for memmove… yes
checking for bcopy… yes
configure: creating ./config.status
CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh config.status
config.status: creating Makefile
config.status: WARNING: ‘Makefile.in’ seems to ignore the –datarootdir setting
running CONFIG_SHELL=/bin/sh /bin/sh /Users/littleNothing/Desktop/httpd-2.2.14/srclib/apr-util/xml/expat/configure –disable-option-checking -enable-suexec –srcdir=/Users/littleNothing/Desktop/httpd-2.2.14/srclib/apr-util –with-apr=../apr –libdir=${prefix}/lib –bindir=${prefix}/bin –cache-file=/dev/null –srcdir=/Users/littleNothing/Desktop/httpd-2.2.14/srclib/apr-util/xml/expat –prefix=/usr/local/apache2 –exec-prefix=/usr/local/apache2 –libdir=/usr/local/apache2/lib –includedir=/usr/local/apache2/include –bindir=/usr/local/apache2/bin –no-create –no-recursion
It ran this loop for close to 3 hours and I had to stop it… The thing that concerns me is the WARNING it gives…. any idea what this is?
5:21 pm
configuring package in srclib/apr now
checking build system type… powerpc-apple-darwin8.11.0
checking host system type… powerpc-apple-darwin8.11.0
checking target system type… powerpc-apple-darwin8.11.0
Configuring APR library
Hi,
I’m very new at this and loving getting this setup,
But when i get errors, I just get stuck and don’t know where to go, I have tried to compile apache but get this result with two errors, is anyone able to help me resolve this.
Platform: powerpc-apple-darwin8.11.0
checking for working mkdir -p… yes
APR Version: 1.3.9
checking for chosen layout… DIYMacServer
checking for gcc… gcc
checking for C compiler default output file name…
configure: error: in `/Users/Thomas/desktop/httpd-2.2.14/srclib/apr’:
configure: error: C compiler cannot create executables
See `config.log’ for more details.
configure failed for srclib/apr
Thank You Ever So Much
10:30 am
@Tom, did you install XCode?
I do not support Tiger anymore. If you need help please upgrade to Leopard as it is impossible for me to support all versions with limited time and hardware.
8:02 am
I knew this would happen lol.
configure: error: in `/Users/me/documents/apr-1.3.9′:
configure: error: C compiler cannot create executables
See `config.log’ for more details.
## ———– ##
## Core tests. ##
## ———– ##
configure:3774: checking build system type
configure:3788: result: powerpc-apple-darwin8.11.0
configure:3808: checking host system type
configure:3821: result: powerpc-apple-darwin8.11.0
configure:3841: checking target system type
configure:3854: result: powerpc-apple-darwin8.11.0
configure:3917: checking for working mkdir -p
configure:3933: result: yes
configure:4025: checking for chosen layout
configure:4027: result: apr
configure:4292: checking for gcc
configure:4308: found /usr/bin/gcc
configure:4319: result: gcc
configure:4548: checking for C compiler version
configure:4557: gcc –version >&5
powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc. build 4061)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:4568: $? = 0
configure:4557: gcc -v >&5
Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs
Configured with: /private/var/tmp/gcc/gcc-4061.obj~8/src/configure –disable-checking –prefix=/usr –mandir=/share/man –enable-languages=c,objc,c++,obj-c++ –program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ –with-gxx-include-dir=/include/gcc/darwin/4.0/c++ –build=powerpc-apple-darwin8 –host=powerpc-apple-darwin8 –target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
configure:4568: $? = 0
configure:4557: gcc -V >&5
gcc: argument to `-V’ is missing
configure:4568: $? = 1
configure:4557: gcc -qversion >&5
powerpc-apple-darwin8-gcc-4.0.0: unrecognized option `-qversion’
powerpc-apple-darwin8-gcc-4.0.0: no input files
configure:4568: $? = 1
configure:4590: checking for C compiler default output file name
configure:4612: gcc -arch ppc conftest.c >&5
conftest.c:9:19: error: stdio.h: No such file or directory
conftest.c: In function ‘main’:
conftest.c:13: error: ‘FILE’ undeclared (first use in this function)
conftest.c:13: error: (Each undeclared identifier is reported only once
conftest.c:13: error: for each function it appears in.)
conftest.c:13: error: ‘f’ undeclared (first use in this function)
configure:4616: $? = 1
configure:4653: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE_URL “”
| /* end confdefs.h. */
| #include
| int
| main ()
| {
| FILE *f = fopen (“conftest.out”, “w”);
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:4659: error: in `/Users/me/documents/apr-1.3.9′:
configure:4663: error: C compiler cannot create executables
Farout i just want to run the latest greatest you beaut Apache
on my dinasaur ppc G5 mac and fair dinkum it’s easier getting emergency dental care
Mumble mumble snarl.
8:14 am
@Advisor, download the latest version of XCode for Tiger form developer.apple.com and you should be allright. I’ve got an old G4 that still does it’s tricks without any problem.
Upgrading to Leopard is also advisable as Tiger is no longer supported…
9:07 am
Many thanks for the rapid response.
I had a gut feeling i was close glad i didn’t chuck in the towel.
Thanks again muchly appreciated shall keep you posted.
10:55 am
Silly me i should have seen the post you put mentioning 2.5
i scrolled past that duh on my behalf.
Ok i’m about to build apr again i was just thinking the above mentioned
example was for ldap what parts need turfing for just a stock install?
I’ve got a rough idea but rather than cactus a fresh install i thought i best check.
11:06 am
I’m guessing it’s the last 3 lines that i can turf i’m feeling game lol
the ./configure part took a couple minutes but it’s looking good.
11:08 am
Oh another silly question sorry to be a pest where in the tons of stuff that scrolled in terminal when apr was configuring.
Where do i find where it installed what should i look for?
Thanks again in advance phew almost there.
11:48 am
I reckon this chunk contains what i’m looking for:
/Users/me/documents/apr-1.3.9/build/mkdir.sh /usr/local/apr/lib /usr/local/apr/bin /usr/local/apr/build-1 \
/usr/local/apr/lib/pkgconfig /usr/local/apr/include/apr-1
mkdir /usr/local/apr
mkdir /usr/local/apr/lib
mkdir /usr/local/apr/bin
mkdir /usr/local/apr/build-1
mkdir /usr/local/apr/lib/pkgconfig
mkdir /usr/local/apr/include
mkdir /usr/local/apr/include/apr-1
/usr/bin/install -c -m 644 /Users/main/documents/apr-1.3.9/include/apr.h /usr/local/apr/include/apr-1
for f in /Users/main/documents/apr-1.3.9/include/apr_*.h; do \
/usr/bin/install -c -m 644 ${f} /usr/local/apr/include/apr-1; \
done
/bin/sh /Users/main/documents/apr-1.3.9/libtool –mode=install /usr/bin/install -c -m 755 libapr-1.la /usr/local/apr/lib
/usr/bin/install -c -m 755 .libs/libapr-1.0.3.9.dylib /usr/local/apr/lib/libapr-1.0.3.9.dylib
(cd /usr/local/apr/lib & })
(cd /usr/local/apr/lib & })
/usr/bin/install -c -m 755 .libs/libapr-1.lai /usr/local/apr/lib/libapr-1.la
/usr/bin/install -c -m 755 .libs/libapr-1.a /usr/local/apr/lib/libapr-1.a
chmod 644 /usr/local/apr/lib/libapr-1.a
ranlib /usr/local/apr/lib/libapr-1.a
ranlib: file: /usr/local/apr/lib/libapr-1.a(epoll.o) has no symbols
ranlib: file: /usr/local/apr/lib/libapr-1.a(kqueue.o) has no symbols
ranlib: file: /usr/local/apr/lib/libapr-1.a(poll.o) has no symbols
ranlib: file: /usr/local/apr/lib/libapr-1.a(port.o) has no symbols
ranlib: file: /usr/local/apr/lib/libapr-1.a(builtins.o) has no symbols
ranlib: file: /usr/local/apr/lib/libapr-1.a(ia32.o) has no symbols
ranlib: file: /usr/local/apr/lib/libapr-1.a(mutex.o) has no symbols
ranlib: file: /usr/local/apr/lib/libapr-1.a(s390.o) has no symbols
ranlib: file: /usr/local/apr/lib/libapr-1.a(solaris.o) has no symbols
———————————————————————-
Libraries have been installed in:
/usr/local/apr/lib
Am i on the right track ?
Tell ya what after all this has finished and all working etc.
If you want you can delete anything non relevent in my previous
posts or even the whole lot and just make a footnote for people
like myself *nix challenged grabbing any relevant bits and turfing the rest.
That helps keep the chaff down on my behalf.
Awaiting further instructions.
Sorry readers i didn’t mean for it to drag out like this my bad.
6:27 am
Great i’ve had to install 2 extra bits of software just to get one not even working.
How absurd it installs all in one go in windows why the heck couldn’t
APR be builtin with Apache seeing as it’s crucial just to build the dam thing in *nix.
RRrrr and the only solution is get new machines & get new OS’s pffft.
That or you have spend more retrofitting old to new on “legacy gear”
VBA
Absolutely no joy for something that once upon a time used to install from
source straight of the bat.
Gotta love progress not.
What a nuisance.
All this for apache !!! not even anything else yet cripes i best get a degree in *nix if i want to proceed how daft.