23 May 2012 01:14
mod_neko2 with Apache 2.2.1 on Os X 10.6
Alexander Syed <alexksyed <at> gmail.com>
2012-05-22 23:14:52 GMT
2012-05-22 23:14:52 GMT
Hi,
so, I'm still trying to get mod_neko2 running with my Apache installation.
With the prebuilt neko-1.8.2-osx binaries I was getting this error.
httpd: Syntax error on line 118 of /opt/local/apache2/conf/httpd.conf: Cannot load /Users/a/dev/bin/neko-1.8.2-osx/mod_neko2.ndll into server: dlopen(/Users/a/dev/bin/neko-1.8.2-osx/mod_neko2.ndll, 10): no suitable image found. Did find:\n\t/Users/a/dev/bin/neko-1.8.2-osx/mod_neko2.ndll: mach-o, but wrong architecture
With my own binaries built today from trunk r1882
I am getting this error.
Cannot load /Users/a/dev/workspaces/neko/nekovm-read-only/bin/mod_neko2.ndll into server: dlopen(/Users/a/dev/workspaces/neko/nekovm-read-only/bin/mod_neko2.ndll, 10): no suitable image found. Did find:\n\t/Users/a/dev/workspaces/neko/nekovm-read-only/bin/mod_neko2.ndll: no matching architecture in universal wrapper
My apache is:
httpd -V
Server version: Apache/2.2.21 (Unix)
Server built: Dec 5 2011 20:56:38
Server loaded: APR 1.3.8, APR-Util 1.3.9
Compiled using: APR 1.3.8, APR-Util 1.3.9
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
The error I described earlier (zlib) ...
../bin/neko nekoml -nostd neko/Main.nml nekoml/Main.nml core/*.nml -pack ../bin/nekoml.std
dyld: lazy symbol binding failed: Symbol not found: _deflateInit_
Referenced from: /Users/a/dev/workspaces/neko/nekovm-read-only/bin/zlib.ndll
Expected in: dynamic lookup
dyld: Symbol not found: _deflateInit_
Referenced from: /Users/a/dev/workspaces/neko/nekovm-read-only/bin/zlib.ndll
Expected in: dynamic lookup
Called from tools/install.neko line 411
Uncaught exception - Error 5 : aborted
make: *** [libs] Error 1
.......was while trying to build with these settings in the Makefile
# For OSX
#
MACOSX = 1
# For OSX Universal Binaries
#
# OSX_UNIVERSAL = 1
# For 64 bit
#
CFLAGS += -D_64BITS
i.e. Not the universal binaries.
I then did get the build working by un-commenting
OSX_UNIVERSAL = 1
but as stated earlier the mod_neko2 that built still does not play nice with my macports apache.
My next plan is to move over to homebrew package manager and see if that fairs any better. I also suspect that my PATH is total mayhem and may have stuff on it that is not helping.
Anyone who has managed to build a mod_neko2 that works on OS X (64 bit apache) - please speak up ! :)
I'm far from a make / configure expert so any tips are welcome.
A.
so, I'm still trying to get mod_neko2 running with my Apache installation.
With the prebuilt neko-1.8.2-osx binaries I was getting this error.
httpd: Syntax error on line 118 of /opt/local/apache2/conf/httpd.conf: Cannot load /Users/a/dev/bin/neko-1.8.2-osx/mod_neko2.ndll into server: dlopen(/Users/a/dev/bin/neko-1.8.2-osx/mod_neko2.ndll, 10): no suitable image found. Did find:\n\t/Users/a/dev/bin/neko-1.8.2-osx/mod_neko2.ndll: mach-o, but wrong architecture
With my own binaries built today from trunk r1882
I am getting this error.
Cannot load /Users/a/dev/workspaces/neko/nekovm-read-only/bin/mod_neko2.ndll into server: dlopen(/Users/a/dev/workspaces/neko/nekovm-read-only/bin/mod_neko2.ndll, 10): no suitable image found. Did find:\n\t/Users/a/dev/workspaces/neko/nekovm-read-only/bin/mod_neko2.ndll: no matching architecture in universal wrapper
My apache is:
httpd -V
Server version: Apache/2.2.21 (Unix)
Server built: Dec 5 2011 20:56:38
Server loaded: APR 1.3.8, APR-Util 1.3.9
Compiled using: APR 1.3.8, APR-Util 1.3.9
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
The error I described earlier (zlib) ...
../bin/neko nekoml -nostd neko/Main.nml nekoml/Main.nml core/*.nml -pack ../bin/nekoml.std
dyld: lazy symbol binding failed: Symbol not found: _deflateInit_
Referenced from: /Users/a/dev/workspaces/neko/nekovm-read-only/bin/zlib.ndll
Expected in: dynamic lookup
dyld: Symbol not found: _deflateInit_
Referenced from: /Users/a/dev/workspaces/neko/nekovm-read-only/bin/zlib.ndll
Expected in: dynamic lookup
Called from tools/install.neko line 411
Uncaught exception - Error 5 : aborted
make: *** [libs] Error 1
.......was while trying to build with these settings in the Makefile
# For OSX
#
MACOSX = 1
# For OSX Universal Binaries
#
# OSX_UNIVERSAL = 1
# For 64 bit
#
CFLAGS += -D_64BITS
i.e. Not the universal binaries.
I then did get the build working by un-commenting
OSX_UNIVERSAL = 1
but as stated earlier the mod_neko2 that built still does not play nice with my macports apache.
My next plan is to move over to homebrew package manager and see if that fairs any better. I also suspect that my PATH is total mayhem and may have stuff on it that is not helping.
Anyone who has managed to build a mod_neko2 that works on OS X (64 bit apache) - please speak up ! :)
I'm far from a make / configure expert so any tips are welcome.
A.
-- -- Neko : One VM to run them all (http://nekovm.org)
RSS Feed