| 1 |
From: Brian Dunavant <brian@omniti.com> |
|---|
| 2 |
To: Clinton Wolfe <clinton@omniti.com> |
|---|
| 3 |
Subject: Mungo on Mac 10.5.8 |
|---|
| 4 |
Date: 08/13/2010 12:11:50 PM |
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
Just FYI, in case you want this for the docs on Mungo for installing it on MacOS. |
|---|
| 9 |
|
|---|
| 10 |
Get Mungo: |
|---|
| 11 |
|
|---|
| 12 |
new-host:mungo brian$ svn co https://labs.omniti.com/mungo/trunk . |
|---|
| 13 |
.... |
|---|
| 14 |
|
|---|
| 15 |
make worked fine. |
|---|
| 16 |
|
|---|
| 17 |
Make test failed: |
|---|
| 18 |
|
|---|
| 19 |
new-host:mungo brian$ make test |
|---|
| 20 |
/usr/bin/perl -Iblib/arch -Iblib/lib \ |
|---|
| 21 |
t/TEST -clean |
|---|
| 22 |
[warning] setting ulimit to allow core files |
|---|
| 23 |
ulimit -c unlimited; /usr/bin/perl /Users/bdunavant/mungo/t/TEST -clean |
|---|
| 24 |
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= APACHE_TEST_APXS= \ |
|---|
| 25 |
/usr/bin/perl -Iblib/arch -Iblib/lib \ |
|---|
| 26 |
t/TEST -bugreport -verbose=0 |
|---|
| 27 |
[warning] setting ulimit to allow core files |
|---|
| 28 |
ulimit -c unlimited; /usr/bin/perl /Users/bdunavant/mungo/t/TEST -bugreport -verbose=0 |
|---|
| 29 |
APXS (/usr/sbin) query for SBINDIR failed |
|---|
| 30 |
APXS (/usr/sbin) query for TARGET failed |
|---|
| 31 |
APXS (/usr/sbin) query for SYSCONFDIR failed |
|---|
| 32 |
[ error] You are using mod_perl response handlers |
|---|
| 33 |
[ error] but do not have a mod_perl capable Apache. |
|---|
| 34 |
make: *** [run_tests] Error 1 |
|---|
| 35 |
new-host:mungo brian$ make install |
|---|
| 36 |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|---|
| 37 |
ERROR: Can't create '/usr/local/share/man/man3' |
|---|
| 38 |
Do not have write permissions on '/usr/local/share/man/man3' |
|---|
| 39 |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|---|
| 40 |
at -e line 1 |
|---|
| 41 |
make: *** [pure_site_install] Error 13 |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
But I just sudo make installed it anyway. Restarted apache. |
|---|
| 45 |
|
|---|
| 46 |
MacOS 10.5.8 when you install it, the install will go fine, but runtime errors in the error_log will be: |
|---|
| 47 |
|
|---|
| 48 |
[Fri Aug 13 11:40:44 2010] [error] [client 127.0.0.1] failed to resolve handler `Mungo': Can't load '/Library/Perl/Updates/5.8.8/darwin-thread-multi-2level/auto/Data/Dumper/Dumper.bundle' for module Data::Dumper: dlopen(/Library/Perl/Updates/5.8.8/darwin-thread-multi-2level/auto/Data/Dumper/Dumper.bundle, 1): no suitable image found. Did find:\n\t/Library/Perl/Updates/5.8.8/darwin-thread-multi-2level/auto/Data/Dumper/Dumper.bundle: no matching architecture in universal wrapper at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/XSLoader.pm line 70.\n at /Library/Perl/Updates/5.8.8/darwin-thread-multi-2level/Data/Dumper.pm line 36\nCompilation failed in require at /Library/Perl/5.8.8/Mungo.pm line 258.\nBEGIN failed--compilation aborted at /Library/Perl/5.8.8/Mungo.pm line 258.\nCompilation failed in require at (eval 2) line 3.\n |
|---|
| 49 |
|
|---|
| 50 |
MacOS 10.5.8 uses perl 5.8.8 and only has 32bit versions of Data::Dumper. Attempting to download the CPAN module and recompile it doesn't appear to help. I'm not sure how to get a 64 bit version. |
|---|
| 51 |
|
|---|
| 52 |
10.5.8$ file Dumper.bundle |
|---|
| 53 |
Dumper.bundle: Mach-O universal binary with 2 architectures |
|---|
| 54 |
Dumper.bundle (for architecture ppc7400): Mach-O bundle ppc |
|---|
| 55 |
Dumper.bundle (for architecture i386): Mach-O bundle i386 |
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
This is because 10.5.8 Data::Dumper only compiles with 32bit versions but apache is running 64bit. This is NOT a problem on Snow Leopard (10.6) because Dumper has the 64 bit version already. |
|---|
| 59 |
|
|---|
| 60 |
10.6$ file Dumper.bundle |
|---|
| 61 |
Dumper.bundle: Mach-O universal binary with 3 architectures |
|---|
| 62 |
Dumper.bundle (for architecture x86_64): Mach-O 64-bit bundle x86_64 |
|---|
| 63 |
Dumper.bundle (for architecture i386): Mach-O bundle i386 |
|---|
| 64 |
Dumper.bundle (for architecture ppc7400): Mach-O bundle ppc |
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 |
To get it to work I had to force Apache to run in 32 bit mode (at Theo's suggestion) by following the 3 simple steps here: |
|---|
| 68 |
http://stackoverflow.com/questions/261927/force-apache-httpd-to-run-in-32bit |
|---|
| 69 |
|
|---|