Trying running the example in your README.md and got this error
Closed this issue · 2 comments
blacktop commented
/V/D/P/node-capstone ❯❯❯ node test.js
/Volumes/Data/Projects/node-capstone/node_modules/capstone/node_modules/ffi/lib/dynamic_library.js:74
throw new Error('Dynamic Linking Error: ' + err)
^
Error: Dynamic Linking Error: dlopen(libcapstone.dylib, 2): image not found
at new DynamicLibrary (/Volumes/Data/Projects/node-capstone/node_modules/capstone/node_modules/ffi/lib/dynamic_library.js:74:11)
at Object.Library (/Volumes/Data/Projects/node-capstone/node_modules/capstone/node_modules/ffi/lib/library.js:45:12)
at Object.<anonymous> (/Volumes/Data/Projects/node-capstone/node_modules/capstone/lib/capstone.js:432:20)
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)
at require (module.js:380:17)
at Object.<anonymous> (/Volumes/Data/Projects/node-capstone/test.js:1:78)
parasyte commented
@blacktop node-capstone
does not include the Capstone library, so you'll have to install it separately: http://www.capstone-engine.org/download.html The preferred install method on OSX is with homebrew:
brew install capstone
blacktop commented
That was a dumb mistake on my part. Works great thank you!