Got a little further....

Here's where I'm at - I copied the binaries to /usr/local/lib/neko
I created a symlink
ln -s /usr/local/lib/neko/libneko.dylib  /usr/lib/libneko.dylib

Apache gave same error as before

Library not loaded: @executable_path/libneko.dylib\n  ....


I created another symlink too
ln -s /usr/local/lib/neko/libneko.dylib  /opt/lib/libneko.dylib

Now the error is

Can't locate API module structure `mod_neko' in file /usr/local/lib/neko/mod_neko2.ndll: dlsym(0x100404db0, mod_neko): symbol not found


While the errors are changing it means I'm making progress :)
Thanks for the help.

Thanks,

I tried with r1883, I got this error:

(cd src; LD_LIBRARY_PATH=../bin:/opt/local/lib: NEKOPATH=../boot:../bin
../bin/neko nekoc tools/install.neko)
tools/install.neko(124): Unexpected !
make: *** [libs] Error 255

So in fact I edited install.neko and changed

if( system == "Mac"&&  !is64 )

to

if( system == "Mac"&&  is64==false )

- so now the 64 bit non universal version builds for the first time for me.

but I am still one step away from running mod_neko2

Apache now says -

Cannot load /Users/a/dev/workspaces/neko/nekovm/bin/mod_neko2.ndll into
server: dlopen(/Users/a/dev/workspaces/neko/nekovm/bin/mod_neko2.ndll,
10): Library not loaded: @executable_path/libneko.dylib\n  Referenced
from: /Users/a/dev/workspaces/neko/nekovm/bin/mod_neko2.ndll\n  Reason:
image not found

But I think I can fix this by making sure Apache can find libneko.dylib
right ? add to  DYLD_LIBRARY_PATH ?


Many Thanks,
Alex.




On 23/05/2012 10:17, Nicolas Cannasse wrote:
 Le 23/05/2012 01:14, Alexander Syed a écrit :
 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.

 Could you try to disable again OSX_UNIVERAL=1, and update latest SVN
 install.neko ? I disabled static linking of zlib on 64 bits systems,
 which might be your actual issue.

 Best,
 Nicolas



--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to