problems installing and building on no.de [ Joyent node.js smartmachine ]

47 views
Skip to first unread message

gord

unread,
Mar 24, 2011, 6:24:13 PM3/24/11
to libxmljs

[ 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

Marco Rogers

unread,
Mar 24, 2011, 6:31:25 PM3/24/11
to libx...@googlegroups.com, gord
Thanks for the details. I've gotten a few reports about problems with libxmljs on no.de.  The environment has some key differences in the placement of various packages and build tools.  Unfortunately I'm also not a scons guru, so I'm not yet sure how to address this.  But I'll work on it as soon as I'm able.

:Marco
--
Marco Rogers
marco....@gmail.com

Life is ten percent what happens to you and ninety percent how you respond to it.
- Lou Holtz
Reply all
Reply to author
Forward
0 new messages