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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.