Skip to content

execution error #3

@dkengaroo

Description

@dkengaroo

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.

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