node-clips icon indicating copy to clipboard operation
node-clips copied to clipboard

execution error

Open dkengaroo opened this issue 12 years ago • 0 comments

I used node to run index.js (new file I created): var clips = require('node-clips'); var env = new clips.Environment();

env.initialize( function (){

// Load .clp file env.load(__dirname+'/animal.clp', function () {

// Reset environment and run 
env.reset(function(){

  // Rule firing limit set to 1000
  env.run(1000, function() {

    // Log fact list to console           
    console.log(env.facts());

    // Dispose of the CLIPS environment and free memory
    env.dispose(function(){

    });
  });
});

}); });

Then I also imported the animal.clp. I am running Mac OSX 10.9.2 and I receive the following error: dyld: lazy symbol binding failed: Symbol not found: __Z17CreateEnvironmentv Referenced from: //Documents/Node/node_modules/node-clips/build/Release/node_clips.node Expected in: dynamic lookup

dyld: Symbol not found: __Z17CreateEnvironmentv Referenced from: /Documents/Node/node_modules/node-clips/build/Release/node_clips.node Expected in: dynamic lookup

Trace/BPT trap: 5

The error is occurring with the load. I assume it will have issues with the others too.

dkengaroo avatar Jul 09 '14 17:07 dkengaroo