bsuh / node_xslt

a simple XSLT addon for node
zlib License
71 stars 17 forks source link

Unable to install node_xslt on MacOS 10.7.5 #15

Open DavidEmo opened 11 years ago

DavidEmo commented 11 years ago

Hello. I'm trying to install node_xslt on MacOS 10.7.5 but it doesn't seem to work. The logs of the command : sudo npm install node_xslt npm http GET https://registry.npmjs.org/node_xslt npm http 304 https://registry.npmjs.org/node_xslt

node_xslt@0.1.7 preinstall /Users/.../node_modules/node_xslt node-waf distclean || (exit 0); node-waf configure build

'distclean' finished successfully (0.000s) 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/local Checking for library ['xml2', 'xslt', 'exslt'] : not found /Users/.../node_modules/node_xslt/wscript:12: error: the configuration failed (see '/Users/.../node_modules/node_xslt/build/config.log') npm ERR! node_xslt@0.1.7 preinstall: node-waf distclean || (exit 0); node-waf configure build npm ERR! sh "-c" "node-waf distclean || (exit 0); node-waf configure build" failed with 1 npm ERR! npm ERR! Failed at the node_xslt@0.1.7 preinstall script. npm ERR! This is most likely a problem with the node_xslt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-waf distclean || (exit 0); node-waf configure build npm ERR! You can get their info via: npm ERR! npm owner ls node_xslt npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 11.4.2 npm ERR! command "node" "/usr/local/bin/npm" "install" "node_xslt" npm ERR! cwd /Users/... npm ERR! node -v v0.8.11 npm ERR! npm -v 1.1.62 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/.../npm-debug.log npm ERR! not ok code 0

I installed libxml2 and libxslt thanks to macport and they are located in /usr/lib/.

Thanks for your help. Regards, David E.

DavidEmo commented 11 years ago

Another "problem". If I force the installation with the -f flag, it fails with these logs :

project noname (1.0) configured on Thu Jan 3 14:13:11 2013 by waf 1.5.16 (abi 7, python 20605f0 on darwin) using /usr/local/bin/node-waf configure build


Checking for program g++ or c++ find program=['g++', 'c++'] paths=[] var='CXX' -> '/usr/bin/g++'


Checking for program cpp find program=['cpp'] paths=[] var='CPP' -> '/usr/bin/cpp'


Checking for program ar find program=['ar'] paths=[] var='AR' -> '/usr/bin/ar'


Checking for program ranlib find program=['ranlib'] paths=[] var='RANLIB' -> '/usr/bin/ranlib'


Checking for g++ ok


Checking for node path ok /usr/local/lib/node


Checking for node prefix ok /usr/local


Checking for library ['xml2', 'xslt', 'exslt'] ==>

int main() { return 0; }

<== [1/2] ^[[32mcxx: build/.conf_check_0/test.cpp -> build/.conf_check_0/testbuild/Release/test_1.o ^[[0m['/usr/bin/g++', '-g', '../test.cpp', '-c', '-o', 'Release/test_1.o'] [2/2] ^[[33mcxx_link: build/.conf_check_0/testbuild/Release/test_1.o -> build/.conf_check_0/testbuild/Release/testprog ^[[0mld: warning: ignoring file Release/test_1.o, file was built for unsupported file format which is not the architecture being linked (i386) Undefined symbols for architecture i386: "_main", referenced from: start in crt1.10.6.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status ['/usr/bin/g++', 'Release/test_1.o', '-o', '/Users/.../node_modules/node_xslt/build/.conf_check_0/testbuild/Release/testprog', '-arch', 'i386', '-lxml2', '-lxslt', '-lexslt'] command returned 'Build failed: -> task failed (err #1): \n\t{task: cxx_link test_1.o -> testprog}'not found

My Mac has an x86_64 architecture.

Regards, David E.

tangrammer commented 11 years ago

Hello David, i am having the same problem, ¿do you have fixed it? or do you think that maybe is related to this closed issue https://github.com/bahblah/node_xslt/issues/15

Regards Juan

MartijnR commented 10 years ago

Can this be closed? Seems it's no longer relevant after switch to node-gyp.

tangrammer commented 10 years ago

Too long time from the last iteration with this lib, so i can't decide if it is relevant or not

2014-05-11 17:29 GMT+02:00 Martijn van de Rijdt notifications@github.com:

Can this be closed? Seems it's no longer relevant after switch to node-gyp.

— Reply to this email directly or view it on GitHubhttps://github.com/bsuh/node_xslt/issues/15#issuecomment-42773607 .