compiling neko without sudo or packages

65 views
Skip to first unread message

ianxm

unread,
Apr 13, 2014, 1:46:52 PM4/13/14
to haxe...@googlegroups.com
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

Laurence Taylor

unread,
Feb 15, 2016, 7:20:17 AM2/15/16
to haxe...@googlegroups.com
you wouldn't happen to have that binary around still? I'm in a similar situation.

regards,
Laurence

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages