Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execution error #3

Open
dkengaroo opened this issue Jul 9, 2014 · 0 comments
Open

execution error #3

dkengaroo opened this issue Jul 9, 2014 · 0 comments

Comments

@dkengaroo
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant