in reply to Re^2: Installing Javascript.pm on XP
in thread Installing Javascript.pm on XP

I stopped using minGW because when I tried to run Makefile.pl I was prompted that I needed perl version 5.8 and minGW only had 5.6.1 or something. So I'm now just using the windows command prompt.

I can't make much out of that. It sounds like perl-5.6.1 was found, but perl-5.8.x is needed - however, that would have nothing to do with MinGW (or any other compiler).

When you ran 'perl Makefile.PL' which version of perl was being run (running 'perl -v' will tell you) ? Do you have more than one perl installed on your machine ?

Also, the actual output of 'perl Makefile.PL' might help us determine the problem and solution.

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: Installing Javascript.pm on XP
by dogman1 (Novice) on Aug 06, 2009 at 02:28 UTC

    The MinGW was in the "Mozilla Build 1.14" package that I needed to build Spidermonkey. The package also included Perl v 5.6.1, so when I tried to run Makefile.pl in MinGW, it would say that I needed v5.8. I figured this wasn't a big deal though b/c I wanted to install Javascript.pm into the strawberry folder anyway. I guess that little note was irrelevant.

    perl -v in MinGW returns 5.6.1
    perl -v in the windows command line says 5.10.0

    Looking at makefile.pl, it creates a JavaScript_Env.h file. It also creates a test_js.c file which is supposed to do a small compile to see if libs and headers can be located. It then outputs a gcc command to the command line. I think the gcc command is causing a problem. Here is what the gcc command I'm sending looks like:

    gcc -LC:\strawberry\js\src\WINNT5.1_OPT.OBJ -ljs32 -o C:\DOCUME~1\Stev +e\LOCALS~1\Temp\b4to8dFiQI -IC:\strawberry\js\src test_js.c

    dunno if that helps.

      gcc -LC:\strawberry\js\src\WINNT5.1_OPT.OBJ -ljs32 -o C:\DOCUME~1\Steve\LOCALS~1\Temp\b4to8dFiQI -IC:\strawberry\js\src test_js.c

      Should not produce the error you're getting - assuming that the import library identified by '-ljs32' exists in C:\strawberry\js\src\WINNT5.1_OPT.OBJ. What filename(s) matching /js32/ do you find in that directory ?

      Cheers,
      Rob
        I have js32.dll, js32.dll.manifest, js32.exp, js32.lib.
Re^4: Installing Javascript.pm on XP
by Anonymous Monk on Aug 06, 2009 at 03:23 UTC
    It sounds like he is trying to build JavaScript from within MSYS (which he used to compile SpiderMonkey). MSYS comes with perl 5.6.1.
      MSYS comes with perl 5.6.1

      Aaah, yes - MSYS perl is still stuck at 5.6.1.

      <waffle>
      One often finds that a native Win32 perl (eg ActivePerl or Strawberry Perl) works quite well in the MSYS shell. If perl gets presented with the unix-style MSYS paths (eg /usr/local) then the MSYS perl is needed. Otherwise a native Win32 perl seems to be fine.

      I've even found that, to build openssl-0.9.8g in the MSYS shell (which requires that a perl installation be available), the MSYS perl is no good and one *has* to use a native Win32 perl instead.
      </waffle>

      Cheers,
      Rob