[ fyi, Joyents
no.de is a nice virtual host for Node.js.
Based on a solaris Zone, it has XFS and DTrace goodness,
with some nice analytics thrown into the
no.de web console.
Ask the guys nicely they'll send you a coupon, Im sure ]
Anyway..
First I installed scons and libxml2, and checked xml2-config --cflags
works ok.
npm install libxmljs fails with :
Checking for C++ library xml2... no
Did not find libxml2, exiting!
So.. I grabbed a copy of libxmljs from git.
make fails for same reason.
btw, gcc/cc lives in '/home/node/local/bin/cc'
which is weird but kind of logical, as Im logged in as node user to
this environment.
To get past this initial problem I edited SConstruct scons make file
to fix path, replacing this :
#env = Environment(BUILDERS = {'Test' : testBuilder})
env = Environment(BUILDERS = {'Test' : testBuilder}, ENV = {'PATH' :
os.environ['PATH']})
So now it builds the cc files in src, but gives warnings '-KPIC
ignored' which I guess is meant to be -fPIC for gcc ?
Probably because of this, make test crashes with seg fault/core dump.
Not being an scons guru, I cant guess where to set -fPIC versus -
KPIC .. ideas ?
many thanks,
gord.
quantblog.wordpress.com