-
Notifications
You must be signed in to change notification settings - Fork 62
Problem with installation #5
Comments
That's from installing/building contextify on a different version of node than you're trying to run it on (like the error you got later on says).
If you're in the jsdom folder and trying to include jsdom, you'd want to do: var jsdom = require('./lib/jsdom'), not require('jsdom').
Seems like contextify is working. I think this is an issue with the setup on your end. |
Is the contextify 0.0.5 compatible with nodejs 0.5.5? |
Yep, should work fine on 0.5.5. |
Strange, I've dowungraded to node 0.4.11 this time all installed as expected and works sleek. |
RRRGGGGHHH The same issue with node 0.6.8! 2 hours in row withou any result! |
I just tested on node 0.6.8 and Contextify builds and passes all of the tests for me. You need to rebuild the binary if you change node versions. What issue are you seeing specifically? |
Yep! I also build it and test it and all work fine. But when I trying to use it in node app always same issue. Error: /home/baio/node_modules/jsdom/node_modules/contextify/build/Release/contextify.node: undefined symbol: ev_default_loop_ptr I suppose there is some problem while module is building and linking, any guesses? |
Did you rebuild the Contextify version in |
Actually I check it thoroughly that I rebuild necessary contextify version, even in require path I include absolute path such as After node-waf distclean && node-waf configure build, I run tests (all ok) and then launching my node app, error persists - |
One thing is you don't want to require the .node file directly, you want to require either the contextify directory or contextify/lib/contextify, although I don't think that would cause the issue you're seeing. |
thanks will try at home |
neither work. ok will try capital repair - reinstall ubuntu, hehe. |
If that doesn't fix your issue, please send me an e-mail and we can chat over IRC and try to figure it out. |
Ok it's helped! Thank you. |
Hi! I've installed jsdom but it seems not working, actually something wrong with contextify.
Ubuntu 10.10
node v0.5.5
when use npm
baio@ubuntu:~$ npm install jsdom
Nothing to clean (project not configured)
Setting srcdir to : /home/baio/node_modules/jsdom/node_modules/contextify
Setting blddir to : /home/baio/node_modules/jsdom/node_modules/contextify/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /home/baio/local/node
'configure' finished successfully (0.047s)
Waf: Entering directory
/home/baio/node_modules/jsdom/node_modules/contextify/build' [1/2] cxx: src/contextify.cc -> build/Release/src/contextify_1.o [2/2] cxx_link: build/Release/src/contextify_1.o -> build/Release/contextify.node Waf: Leaving directory
/home/baio/node_modules/jsdom/node_modules/contextify/build''build' finished successfully (0.443s)
[email protected] ./node_modules/jsdom
├── [email protected]
├── [email protected]
└── [email protected]
====ERROR WHEN RUN APP
^
Error: /home/baio/node_modules/jsdom/node_modules/contextify/build/Release/contextify.node: undefined symbol: ev_default_loop_ptr
at Object..node (module.js:395:11)
at Module.load (module.js:315:31)
By git
baio@ubuntu:
$ git clone http://github.com/tmpvar/jsdom.git$ cd jsdomCloning into jsdom...
remote: Counting objects: 11234, done.
remote: Compressing objects: 100% (3703/3703), done.
remote: Total 11234 (delta 7229), reused 11000 (delta 7022)
Receiving objects: 100% (11234/11234), 4.71 MiB | 1.07 MiB/s, done.
Resolving deltas: 100% (7229/7229), done.
baio@ubuntu:
baio@ubuntu:~/jsdom$ npm link
Nothing to clean (project not configured)
Setting srcdir to : /home/baio/jsdom/node_modules/contextify
Setting blddir to : /home/baio/jsdom/node_modules/contextify/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /home/baio/local/node
'configure' finished successfully (0.051s)
Waf: Entering directory
/home/baio/jsdom/node_modules/contextify/build' [1/2] cxx: src/contextify.cc -> build/Release/src/contextify_1.o [2/2] cxx_link: build/Release/src/contextify_1.o -> build/Release/contextify.node Waf: Leaving directory
/home/baio/jsdom/node_modules/contextify/build''build' finished successfully (0.445s)
[email protected] ./node_modules/request
[email protected] ./node_modules/console.log
[email protected] ./node_modules/cssom
[email protected] ./node_modules/htmlparser
[email protected] ./node_modules/nodeunit
[email protected] ./node_modules/contextify
[email protected] ./node_modules/optimist
└── [email protected]
../local/node/lib/node_modules/jsdom -> /home/baio/jsdom
====ERROR WHEN RUN APP
^
Error: Cannot find module 'jsdom'
at Function._resolveFilename (module.js:299:11)
at Function._load (module.js:245:25)
baio@ubuntu:~$ which node
/home/baio/local/node/bin/node
And I made this also :
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'.
cd node_modules/jsdom/node_modules/contextify
node-waf distclean
node-waf configure build
Contextify test also ok.
baio@ubuntu:~/node_modules/jsdom/node_modules/contextify$ nodeunit test/
contextify
...
OK: 92 assertions (79ms)
What problem could be here?
Thanks.
The text was updated successfully, but these errors were encountered: