Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Internal Contextify Error #15

Closed
TheCodeBuccaneer opened this issue Jan 23, 2012 · 4 comments
Closed

Internal Contextify Error #15

TheCodeBuccaneer opened this issue Jan 23, 2012 · 4 comments

Comments

@TheCodeBuccaneer
Copy link

I suddenly get the following error (suddenly, because I didn't do any updates on the version of node or something like that):

Internal Contextify ERROR: Make sure Contextify is built with your current version. To rebuild, go to the contextify root folder and run 'node-waf distclean && node-waf configure build'.

Error: untable to load ............\nodejs\node_modules\contextify\build\Release\contextify .node

The version of node is 0.6.7 and it is running on Windows. One of the latest thing I did was installing the jquery plug in, but I am not sure if that was the reason.

I tried the node-waf, but is says is node-waf not recognized as an internal or external command, operable program or batch file.

Please let me know how I can fix this. Thanks in advance!

@brianmcd
Copy link
Owner

As you've found out, node-waf (the built-in way of compiling C++ addons for Node) isn't available on Windows. The jquery module depends on JSDOM, which uses Contextify, which is written in C++. Unfortunately, Contextify can't install via npm on Windows due to the lack of node-waf. I haven't tried running on Windows, but there are some instructions to get it working here: #12 .

@TheCodeBuccaneer
Copy link
Author

Ok, thanks

@amolc
Copy link

amolc commented Feb 21, 2012

Hi,

I get the same error on mac..

The "sys" module is now called "util". It should have a similar interface.
Internal Contextify ERROR: Make sure Contextify is built with your current Node version.
To rebuild, go to the Contextify root folder and run 'node-waf distclean && node-waf configure build'.

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Unable to load shared library /Users/user/projects/iitscrawler/node_modules/crawler/node_modules/jsdom/node_modules/contextify/build/Release/contextify.node
at Object..node (module.js:472:11)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object. (/Users/user/projects/iitscrawler/node_modules/crawler/node_modules/jsdom/node_modules/contextify/lib/contextify.js:2:22)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)

Kindly advise.

@brianmcd
Copy link
Owner

Is this an error occurring after the project has worked before, or has it never worked for you? Did you recently upgrade node? If so, which versions did you go between? Contextify needs to be rebuilt if you change node versions (go into the contextify folder and node-waf distclean && node-waf configure build. It's also possible there's a bug with the mac version (#19).

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

No branches or pull requests

3 participants