in reply to Re^8: Installing Perl modules on Win64/Perl 5.8
in thread Installing Perl modules on Win64/Perl 5.8

I am assuming that the setenv command has executed correctly because I get the output "Targeting Windows XP X64 RETAIL" but there's a catch: The path is not getting updated. I don't know if it is enough to update it manually but this didn't seem to help.
  • Comment on Re^9: Installing Perl modules on Win64/Perl 5.8

Replies are listed 'Best First'.
Re^10: Installing Perl modules on Win64/Perl 5.8
by syphilis (Archbishop) on Mar 30, 2010 at 08:58 UTC
    Targeting Windows XP X64 RETAIL

    That looks right. It comes from this section of setenv.cmd:
    Echo Targeting Windows XP X64 %DEBUGMSG% Echo. Set Lib=%MSSdk%\Lib\AMD64;%MSSdk%\Lib\AMD64\atlmfc; Set Include=%MSSdk%\Include;%MSSdk%\Include\crt;%MSSdk%\Include\crt\sy +s;%MSSdk%\Include\mfc;%MSSdk%\Include\atl Set Path=%MSSdk%\Bin\Win64\x86\AMD64;%MSSdk%\Bin;%MSSdk%\Bin\WinNT;%pa +th% Set APPVER=5.02 Set TARGETOS=WINNT Title Microsoft Platform SDK XP X64-bit IE 6.0 %DEBUGMSG% Build Enviro +nment Goto Finish
    As you can see, there's more to it than setting just the path - it also sets the Lib and Include environment variables appropriately.
    What does the corresponding section of your setenv.cmd contain ?
    Is %MSSdk% being set correctly ? It should be the location you installed to. (For me it's C:\_64\Platform_SDK) Just put an "Echo" in front of the "Set Lib ..." command, and you'll see what %MSSdk% is set to when you run setenv.cmd. What does it produce ? Does it match an existing directory ?
    Could you put a copy of your setenv.cmd on your scratchpad - or even post it here ?
    As it stands, we've really very little to work with.

    Cheers,
    Rob
      OK so I have updated this post because it seems I am on the road to successfully building a test module.
        Right, I can see why it was failing before but working now. I need to run SetEnv.cmd before each time I try to build a module. If I restart the machine, it no longer works until I ran the command again. Any thoughts?