Comments (10)
Alas I don't have a Mac to test on, but I suspect the line that says...
"You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements."
...is the problem!
Did you try executing the command as suggested?
sudo xcodebuild -license
Hopefully that will fix the problem.
from libxsltjs.
Oh, yes, I should pay attention to that. Sorry about it. After run xcodebuild -license I get:
blagus@quirks:~$ sudo npm install libxsltjs
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/libxsltjs
npm http 304 https://registry.npmjs.org/libxsltjs
> [email protected] install /Users/blagus/node_modules/libxsltjs
> node-gyp rebuild
CXX(target) Release/obj.target/nodexsltjs/src/libxsltjs.o
clang: warning: -lxslt: 'linker' input unused
../src/libxsltjs.cc:1:10: fatal error: 'libxml/HTMLparser.h' file not found
#include <libxml/HTMLparser.h>
^
1 error generated.
make: *** [Release/obj.target/nodexsltjs/src/libxsltjs.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 12.5.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/blagus/node_modules/libxsltjs
gyp ERR! node -v v0.10.20
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
blagus@quirks:~$
from libxsltjs.
Are libxml2 and libxslt installed?
from libxsltjs.
Nopes. Here we go:
blagus@quirks:~$ sudo npm install libxml2
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/libxml2
npm http 404 https://registry.npmjs.org/libxml2
npm ERR! 404 'libxml2' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Darwin 12.5.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "libxml2"
npm ERR! cwd /Users/blagus
npm ERR! node -v v0.10.20
npm ERR! npm -v 1.3.11
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/blagus/npm-debug.log
npm ERR! not ok code 0
blagus@quirks:~$ sudo npm install libxslt
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/libxslt
npm http 404 https://registry.npmjs.org/libxslt
npm ERR! 404 'libxslt' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Darwin 12.5.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "libxslt"
npm ERR! cwd /Users/blagus
npm ERR! node -v v0.10.20
npm ERR! npm -v 1.3.11
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/blagus/npm-debug.log
npm ERR! not ok code 0
blagus@quirks:~$
from libxsltjs.
Sorry, these aren't node.js modules, they are libraries:
http://www.xmlsoft.org/downloads.html
libxsltjs is a (very basic) wrapper for the libxslt library. I found this on google but I have no idea if it will work for you:
sudo port install libxml2 libxslt
from libxsltjs.
Same as usual:
blagus@quirks:~$ sudo port install libxml2 libxslt
---> Computing dependencies for libxml2
---> Cleaning libxml2
---> Computing dependencies for libxslt
---> Cleaning libxslt
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.
blagus@quirks:~$ sudo npm install libxsltjs
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/libxsltjs
npm http 304 https://registry.npmjs.org/libxsltjs
> [email protected] install /Users/blagus/node_modules/libxsltjs
> node-gyp rebuild
CXX(target) Release/obj.target/nodexsltjs/src/libxsltjs.o
clang: warning: -lxslt: 'linker' input unused
clang: warning: -lxml2: 'linker' input unused
clang: warning: -lz: 'linker' input unused
clang: warning: -lpthread: 'linker' input unused
clang: warning: -liconv: 'linker' input unused
clang: warning: -lm: 'linker' input unused
../src/libxsltjs.cc:1:10: fatal error: 'libxml/HTMLparser.h' file not found
#include <libxml/HTMLparser.h>
^
1 error generated.
make: *** [Release/obj.target/nodexsltjs/src/libxsltjs.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 12.5.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/blagus/node_modules/libxsltjs
gyp ERR! node -v v0.10.20
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
from libxsltjs.
Sounds like libxml isn't being found. You could try:
find / -name "HTMLparser.h"
Then whatever directory that is in, edit the include line at the top of /src/libxsltjs.cc so it points to that place directly. (It's probably something like /usr/include/libxml2)
From a quick google, lots of people seem to have issues with libxml2 and xcode, so it's probably a Mac thing. :/
from libxsltjs.
Hey @RobeeeJay , happy to do Mac testing if you need it.
from libxsltjs.
Does that include the working-out-and-fixing? :)
from libxsltjs.
Maaaaybe? Depends on how tricky it is.
On 23 October 2013 14:00, RobeeeJay [email protected] wrote:
Does that include the working-out-and-fixing? :)
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-26898934
.
from libxsltjs.
Related Issues (2)
- Error handling? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libxsltjs.