Skip to content

Runtime problem: Cannot find module 'libswipl' #4

@jansegre

Description

@jansegre

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions