kloni / node-prolog-swi Goto Github PK
View Code? Open in Web Editor NEWA node.js interface to the SWI-Prolog library
A node.js interface to the SWI-Prolog library
I'm trying to install it on windows, without luck. The latest swipl 6.2.6 doesn't have swipl.lib in lib folder, the 5.10.2 has, but I got other error messages when running node-gyp build
libswipl.obj : error LNK2001: unresolved external symbol PL_term_type [c:\node\prolog\node-prolog-swi\build\libswipl.vcxproj]
libswipl.obj : error LNK2001: unresolved external symbol PL_get_integer [c:\node\prolog\node-prolog-swi\build\libswipl.vcxproj]
Is there a recipe to make it work under windows (7 64bit)
The node-prolog-swi module is not accessible via npm :(
Try running the install command with npm and this is the output I get. SWI_HOME_DIR is set to the correct path. Any idea what could be the issue?
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:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/dragos/Workspace/hack/ArgTeach/node_modules/node-prolog-swi
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "node-prolog-swi"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-prolog-swi package,
npm ERR! not with npm itself.
http://showterm.io/91ba3e0062b797c0bcaa6
> var swipl = require('node-prolog-swi');
Error: Cannot find module 'libswipl'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/jan/Projects/jwar/server/node_modules/node-prolog-swi/swipl.js:24:13)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
I'm not exactly sure why this happens.
I've had a small trouble installing it where it wasn't enough to set SWI_HOME_LIB, I had to link the libswipl.dylib to /usr/local/lib in the end.
I've tried setting DYLD_LIBRARY_PATH and LD_LIBRARY_PATH to many different things, with no success.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.