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

error on execute helloworld.js #7

Closed
aoopvn opened this Issue May 14, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@aoopvn

aoopvn commented May 14, 2012

Sorry for naive question.

I followed the installation guide but I got issue on executing the helloworld.js.

Here is the trace:

**root@userver11:~/node-webkit# node-waf configure 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 /usr/local
Checking for gtk+-2.0 : yes
Checking for glib-2.0 : yes
Checking for webkitnode-1.0 : yes
'configure' finished successfully (0.048s)
Waf: Entering directory /root/node-webkit/build' Waf: Leaving directory/root/node-webkit/build'
'build' finished successfully (0.005s)

root@userver11:~/node-webkit# node tests/helloworld.js tests/testfs.html

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '../build/Release/nwebkit'
at Function._resolveFilename (module.js:326:11)
at Function._load (module.js:271:25)
at require (module.js:355:19)
at Object. (/root/node-webkit/lib/index.js:24:15)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at require (module.js:355:19)
at Object. (/root/node-webkit/tests/helloworld.js:2:11)

root@userver11:~/node-webkit/build# ls
c4che config.log default

Thanks for your support.

@rogerwang

This comment has been minimized.

Member

rogerwang commented May 14, 2012

Thanks for the report. This could be a little bug in lib/index.js, where it cannot find the built binary module 'nwebkit'.

Could you please try to edit lib/index.js and point it to the right path of the binary module?

Roger

@aoopvn

This comment has been minimized.

aoopvn commented May 17, 2012

I saw then edited lib/index.js that point to the nwebkit.node in build/default/ folder but still does not work.

I only saw the nwebkit.node file in build/default/ folder.

Where do I should looking the binary module of nwebkit?

what I saw in the wscript file is:

srcdir = "."
blddir = "build"
VERSION = "0.0.1"

Thanks for your support

@rogerwang

This comment has been minimized.

Member

rogerwang commented May 17, 2012

to identify the problem could you attach your index.js and the output file '/tmp/trace.log' of the following command?

strace -f -o /tmp/trace.log node tests/helloworld.js tests/testfs.html

and what's your node version?

@zcbenz

This comment has been minimized.

Contributor

zcbenz commented Aug 7, 2012

Old webkit module will not be maintained, so I close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment