Hello,
I've run into a problem that seems specific to installing the Javascript.pm module.
I am trying to install the Javascript module from CPAN: here. I have Windows XP and use strawberry perl, so I used the CPAN client to install, but I run into some errors.
When the makefile.pl runs, it prompts me for some questions about spidermonkey. Then it returns some messages that says it can't locate some files. Here's what I get:
C:\strawberry\cpan\build\JavaScript-1.12-M_rctc>perl makefile.pl Is your SpiderMonkey compiled with JS_THREADSAFE (most things will fai +l if you answer wrong)? [y/N] Is your SpiderMonkey compiled with support for unicode (t/23-unicode.t + will fail if you answer wrong) ? [y/N] [N] N Do you want support for E4X (requires SpiderMonkey > 1.5) ? [y/N] [N] +N In file included from test_js.c:2: JavaScript_Env.h:8:19: error: jsapi.h: No such file or directory JavaScript_Env.h:9:22: error: jsdbgapi.h: No such file or directory JavaScript_Env.h:10:22: error: jsinterp.h: No such file or directory JavaScript_Env.h:11:19: error: jsfun.h: No such file or directory JavaScript_Env.h:12:19: error: jsobj.h: No such file or directory JavaScript_Env.h:13:19: error: jsprf.h: No such file or directory JavaScript_Env.h:14:21: error: jsscope.h: No such file or directory Failed compiling test_js.c. ABORTING
These files are located in my C:\strawberry\js\src directory. The js32.dll file from building spidermonkey is also there too in a subfolder. I tried moving the files into the Javascript-1.12-M_tcrc directory, but I still get the same problem. I tried to read the makefile.pl but I'm pretty new to perl and don't understand what the code does.
My guess is the files are in the wrong location, but I don't know where to put them to make makefile.pl work. Thanks for the help.
In reply to Installing Javascript.pm on XP by dogman1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |