If you’re installing mod_neko, you might be somewhat confused as to what works and what doesn’t. The documentation actually overstates what you need to do in order to run mod_neko. Here are the steps:

  1. Extract a neko distribution to your Apache root folder (I use XAMPP in this case)
    • If you have a previous neko distribution on your system, do not copy the files from it to your Apache directory, as it will give the dreaded ApacheCore.dll error no matter what you compile.
    1. Add the following lines after all the LoadModule directives (for Apache 2.x):

      LoadModule neko_module “C:/xampp/neko/mod_neko2.ndll”
      AddHandler neko-handler .n

    2. That’s it! To test it, compile the following:

      $print(”Hello World!”);

    After you’ve done that, grab this triad of useful (for the lazy, anyway) .bat files for Neko development. Make sure your PATH variable is set properly and place these files in your root Neko directory. Then use Run and enter nkx, nkc, or nks to use the files.

    nkx.bat – converts .n files to .exe files; enter the filename without the .n

    set /p ntb=.n to .exe:
    nekotools boot %ntb%.n

    nkc.bat – converts .neko files to .n files; enter the filename without the .neko

    set /p c=.neko to .n:
    nekoc %c%.neko

    nks.bat – starts the mod_neko emulator webserver

    nekotools server

    A note about the nekotools server: you have to go to http://localhost:2000/server:config to configure your web root.



    One Response to “mod_neko and 3 Neko batch files”  

    1. 1 niels

      Maybe that suggestions work for MS Windows but for MacOS they don’t ):


    Leave a Reply