gokuraku has asked for the wisdom of the Perl Monks concerning the following question:

Just a general question to all Monks....

Has anyone tried running the ActiveState Perl install on a Windows 2003 64 bit machine? I've been trying to get some things working on the 64 bit side, and it seems like most of the repositories do not show much for 64 bit available. Or there is just a problem with the way PPM is working on Windows 2003 (which I have noticed since some things are not working right like the GUI).

Right now I'm just looking to see what people have done, or know about as gotchas, as I am still setting up the environment and have hit a few things.

1. PPM repositories always show 0 packages available, and this is with default ActiveState, ppm4 ActiveState and UWinniPeg.

2. I have a Win32 install on C and a Win64 install on E, to support either version, and C has plenty of modules, E not so much (well not any really, other than default install)

3. Can't do much with nmake yet, still trying to work through cl issues, but getting there.

If anyone has anything to share in set up I'll be glad to hear it.

Replies are listed 'Best First'.
Re: Running PPM on Win 2k3 64b
by syphilis (Archbishop) on Jan 07, 2008 at 17:47 UTC
    I don't know of any PPM repositories for 64-bit builds of perl.

    On Vista 64 I find that "Microsoft Platform SDK for Windows Server 2003 R2" (which is freely available) works quite well with ActiveState's 64-bit builds. No surprise there, as that's what ActiveState use to build their 64-bit perl. I recommend that you get hold of that compiler.

    Cheers,
    Rob

      Same here, although I did have some luck getting perl -MCPAN -e shell to work on my machine, took some configuration especially with the Visual Studio paths so it could find Nmake. But at least this way I can get the CPAN modules in place without having to worry about what ActiveState has. I already have the SDK installed, but thanks, that was a good tip.

      What I'd really like is a 64 bit version of Socket6 for some IPv6 work I am trying to do, but its not out there and I don't know enough C level stuff to even know where to being porting it to 64 bit land.

      If I get any more good tips or ideas about what to do I'll add it here.

        Socket6-0.19 (from cpan) builds fine for me on ActiveState's 64-bit version of build 822 (perl 5.8.8), and passes the test suite.

        I used the previously-mentioned SDK (which comes with its own nmake). I don't have Visual Studio at all.

        If you want the build, /msg me your email address and I'll send it over. Or do you need a version suitable for use with 5.10 ?

        Cheers,
        Rob

        Some other things I found out, when trying to compile Socket6 (whether using CPAN or manually running the module make and compile) be sure that the compiler that was used to install Perl is on the path. If the make cannot find the same compiler the make will choke, this happened to me on a couple of Solaris boxes and on AIX. To find out what compiler was used for Perl run:

        perl -V

        Yes, that is an upper case V, you should see something like:

        Compiler: cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO',

        If that does not match what the Makefile has there will be problems, the solution that was necessary for me on Solaris and AIX is that we needed to adjust the paths in my shell to avoid use of gcc which was not used for the perl compiles but was getting picked up in my environment. In addition, on AIX it will sometimes be configured to have something like cc_r as the base compiler, which is a link to xlc, and the way they are called can be hairy. There is more information on this here - Embedded Perl on AIX

        Sorry to mix stuff here, but I was working on multiple platforms and I ended up wanting to keep this all together.