I've updated my openshift vms to run neko 2 (and haxe3's fcgi). I couldn't use the precompiled binaries because they depend on glibc 2.14 but the vm has glibc 2.12. openshift doesn't give sudo or allow use of a package manager, so compiling neko was a little tricky. so I'm putting my notes down here for someone else (or myself in the future).
neko
----
build each dependency
- libgc
- libpcre
- libsqlite3
- libfcgi
put binaries in /path/to/local/lib
put headers in /path/to/local/include
on openshift /path/to/local/ is /var/lib/openshift/[hash]/app-root/data/
get neko
update neko/Makefile
add: CFLAGS += -I/path/to/local/include
add: EXTFLAGS += -L/path/to/local/lib
update neko/src/tools/install.neko
add to inc1 array: "/path/to/local/include"
add to libraries array: "/path/to/local/lib"
compile
cd neko
export LD_LIBRARY_PATH=/path/to/local/lib
make clean all
copy binaries
cp bin/neko bin/nekotools /path/to/local/bin
cp bin/*.ndll bin/libneko.so /path/to/local/lib
haxe-fcgi
---------
get haxe-fcgi
update haxe-fcgi/build/Makefile
add: CCFLAGS += -I/path/to/local/include
add: LDFLAGS += -L/path/to/local/lib
compile it
cd haxe-fcgi/build
make
copy binaries
cp ../library/ndll/Linux64/fcgi.ndll /path/to/local/lib