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

Not finding node.js on my system #35

Closed
stepthom opened this issue May 14, 2014 · 2 comments
Closed

Not finding node.js on my system #35

stepthom opened this issue May 14, 2014 · 2 comments
Labels

Comments

@stepthom
Copy link

I'm getting the following error from cldoc when adding the --static flag:

[dev@ubuntu:/tools/spifftools_ast (develop)] $ make doc
cldoc generate -std=c++11 -Wall -O0 -ggdb -fPIC  -I include -I ../spifftools_utils/include -- --output docs --static src/./spifftools_ast_atribute.cpp src/./spifftools_ast.cpp src/./spifftools_ast_iterator.cpp src/./spifftools_ast_node.cpp src/./spifftools_ast_node_type.cpp src/./spiff_tools_asts.cpp src/./spifftools_ast_serializer.cpp src/./spifftools_asts_loader.cpp include/*.h
Processing `spifftools_ast_atribute.cpp'
Processing `spifftools_ast.cpp'
Processing `spifftools_ast_iterator.cpp'
Processing `spifftools_ast_node.cpp'
Processing `spifftools_ast_node_type.cpp'
Processing `spiff_tools_asts.cpp'
Processing `spifftools_ast_serializer.cpp'
Processing `spifftools_asts_loader.cpp'
Processing `ast_node_id_not_unique_exception.h'
Processing `key_not_found_exception.h'
Processing `source_location.h'
Processing `source_range.h'
Processing `spifftools_ast.h'
Processing `spifftools_ast_attribute.h'
Processing `spifftools_ast_iterator.h'
Processing `spifftools_ast_node.h'
Processing `spifftools_ast_node_type.h'
Processing `spifftools_ast_serializer.h'
Processing `spifftools_asts.h'
Processing `spifftools_asts_loader.h'
Generated `/tmp/tmpuu6zPv/xml'
Generated `/tmp/tmpuu6zPv/index.html'
Generating static website...

Failed to call static site generator. The static site generator uses node.js (http://nodejs.org/). Please make sure you have node installed on your system and try again.
make: *** [doc] Error 1

However, I have node.js installed on my machine:

[dev@ubuntu:/tools/spifftools_ast (develop)] $ which nodejs
/usr/bin/nodejs
[dev@ubuntu:/tools/spifftools_ast (develop)] $ nodejs --version
v0.6.19

Any ideas what I'm doing wrong?

@jessevdk
Copy link
Owner

No idea really. Maybe you can try debugging this a little bit? The relevant code is in:

https://github.com/jessevdk/cldoc/blob/master/cldoc/cmdgenerate.py#L46

@jessevdk
Copy link
Owner

I've pushed something on master that should give more details on why nodejs fails (if there is some error message). Could you please try again and see if you get more information?

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

No branches or pull requests

2 participants