Giter Club home page Giter Club logo

node-prolog-swi's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-prolog-swi's Issues

on Windows?

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)

Publish on NPM

The node-prolog-swi module is not accessible via npm :(

node-gyp rebuild failed on OSX

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.

Runtime problem: Cannot find module 'libswipl'

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.