Skip to content

Loading…

Install on ARM platform #11

Closed
paultanner opened this Issue · 3 comments

3 participants

@paultanner

Hi,

I wanted to install this on a BeagleBone. Angstrom v2012.01-core - Kernel 3.2.5+
The build throws errors, apparently a missing dependency.
Not sure if this would be difficult to fix or if there's anything I can do to help.
BTW. NPM seems to work on some modules and not others.

Paul

root@beaglebone:/var/lib/cloud9# npm install libxml-to-js

libxmljs@0.5.4 install /var/lib/cloud9/node_modules/libxml-to-js/node_modules/libxmljs
node-waf configure build

Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr
Checking for program xml2-config : /usr/bin/xml2-config
'configure' finished successfully (2.208s)
Waf: Entering directory /var/lib/cloud9/node_modules/libxml-to-js/node_modules/libxmljs/build'
[ 1/10] cxx: src/libxmljs.cc -> build/default/src/libxmljs_1.o
[ 2/10] cxx: src/xml_attribute.cc -> build/default/src/xml_attribute_1.o
[ 3/10] cxx: src/xml_document.cc -> build/default/src/xml_document_1.o
[ 4/10] cxx: src/xml_element.cc -> build/default/src/xml_element_1.o
[ 5/10] cxx: src/xml_namespace.cc -> build/default/src/xml_namespace_1.o
[ 6/10] cxx: src/xml_node.cc -> build/default/src/xml_node_1.o
../src/xml_node.cc: In member function 'v8::Handle<v8::Value> libxmljs::XmlNode::get_type()':
../src/xml_node.cc:335:8: error: 'XML_DOCB_DOCUMENT_NODE' was not declared in this scope
Waf: Leaving directory
/var/lib/cloud9/node_modules/libxml-to-js/node_modules/libxmljs/build'
Build failed: -> task failed (err #1):
{task: cxx xml_node.cc -> xml_node_1.o}
npm ERR! error installing libxmljs@0.5.4 Error: libxmljs@0.5.4 install: node-waf configure build
npm ERR! error installing libxmljs@0.5.4 sh "-c" "node-waf configure build" failed with 1
npm ERR! error installing libxmljs@0.5.4 at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing libxmljs@0.5.4 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing libxmljs@0.5.4 at ChildProcess.onexit (child_process.js:192:12)

libxmljs@0.5.4 preuninstall /var/lib/cloud9/node_modules/libxml-to-js/node_modules/libxmljs
node-waf clean

'clean' finished successfully (0.064s)
npm ERR! error installing libxml-to-js@0.3.10 Error: libxmljs@0.5.4 install: node-waf configure build
npm ERR! error installing libxml-to-js@0.3.10 sh "-c" "node-waf configure build" failed with 1
npm ERR! error installing libxml-to-js@0.3.10 at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing libxml-to-js@0.3.10 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing libxml-to-js@0.3.10 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! libxmljs@0.5.4 install: node-waf configure build
npm ERR! sh "-c" "node-waf configure build" failed with 1
npm ERR!
npm ERR! Failed at the libxmljs@0.5.4 install script.
npm ERR! This is most likely a problem with the libxmljs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls libxmljs
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.2.5+
npm ERR! command "node" "/usr/bin/npm" "install" "libxml-to-js"
npm ERR! cwd /var/lib/cloud9
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/lib/cloud9/npm-debug.log
npm not ok

@SaltwaterC
Owner

libxml-to-js is a pure JS library that wraps libxmljs - the library that actually provides the libxml2 bindings. @polotek and @shtylman can help you with the build error.

@polotek

I have no idea what the current story is with compiling node addons on ARM. This looks like it's not linking to libxml2 properly. Can you look around on the node mailing list and if you don't find anything helpful, post this as a question? If we can provide a reasonable fix in libxmljs, we'll do it.

@paultanner
@SaltwaterC SaltwaterC closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.