Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Win32::GUI on 64bit Windows?

by Art78 (Initiate)
on Nov 19, 2012 at 14:22 UTC ( #1004548=perlquestion: print w/ replies, xml ) Need Help??
Art78 has asked for the wisdom of the Perl Monks concerning the following question:

In order to virtualize some Servers, some perl scripts need to be moved. Unfortunately, the virtual machines have Windows Server 2008 R2 with 64 bit installed.

Is there any possibility to install the modul Win32::GUI on this system?

Actually activestate is installed and i have no idea how to make these scripts work without reinstalling a 32bit operating system or changing the scripts in total.

Can anyone help?

Many thanks and kind regards,

Art

Comment on Win32::GUI on 64bit Windows?
Re: Win32::GUI on 64bit Windows?
by bulk88 (Priest) on Nov 19, 2012 at 14:58 UTC
    What happens if you install a Win64 Perl?

    Win 32 vs 64 is supposed to be source compatible, unlike 16 vs 32. Did you OS come wit WOW64, and can you install WOW64?
Re: Win32::GUI on 64bit Windows?
by Anonymous Monk on Nov 19, 2012 at 14:58 UTC
      ppm upgrade -install Win32::GUI
        This worked like a charm!!
Re: Win32::GUI on 64bit Windows?
by sam_bakki (Pilgrim) on Nov 20, 2012 at 11:45 UTC

    Hi

    You can not install Win32 modules in x64 bit perl. I use Win32::Gui in Windows 7 machine (x64). What I did is,
    1. Install 32 bit perl 5.14 (ActivePerl)
    2. Install the compiled Win32::GUI via ActivePerl's PPM tool
    5. Enjoy.



    Thanks & Regards,
    Bakkiaraj M
    My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.

      A couple of comments:

      "2. You dont find Win32::Gui in Active Perl's PPM"

      True, thought it's available from other repositories. See PPM::Repositories to add more, or they could download directly and install via the instructions in the module README.

      "3. Setup MinGW GCC, dmake then compile Win32::GUI your self. Compilation perfectly works."

      ppm MinGW Will do the setup of MinGW and make tools to save the bother of doing it manually.

      Update: removing the points I quote achieves what exactly?

        Hi marto

        Yes. you are correct. I was thinking of Win32::GuiTest module while replying. Sorry. Indeed Win32 is available in PPM. I had corrected my post looks like some where it is still showing the old post.
        Thanks for letting me know x64 perl can have Win32 modules. I did not know.



        Thanks & Regards,
        Bakkiaraj M
        My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.

      You can not install Win32 modules in x64 bit perl.

      I beg to differ on that. It's been a while, but I seem to recall being able to install Win32 modules in 64-bit Perl before without any issues.

      Ok, so maybe you don't want to take my word for it. Here's some links to release notes of 64-bit Strawberry Perl that includes various Win32 modules in the list of included modules.

      If I remember correctly, ActiveState's releases of 64-bit version of their ActivePerl do not include Win32 modules. However, that does not mean that Win32 modules cannot be installed in 64-bit Perl.

        Hi dasgar

        Thanks for the information. I use only Active Perl in Windows. I was thinking Win32 modules are not supported in x64 perl.



        Thanks & Regards,
        Bakkiaraj M
        My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.

        64 bit ActivePerl comes with alot of Win32::* modules out of the box. Dumping my 64 bit ActivePerl's folders.
        API API.pm AuthenticateUser.pm ChangeNotify.pm Clipboard.pm Console Console.pm DBIODBC.pm Event.pm EventLog.pm File.pm FileSecurity.pm Internet.pm IPC.pm Job.pm Mutex.pm NetAdmin.pm NetResource.pm ODBC.pm OLE OLE.pm PerfLib.pm Pipe.pm Process.pm Registry.pm Semaphore.pm Service.pm Shortcut.pm Sound.pm TieRegistry.pm WinError.pm
        List of Win32::* XS modules.
        C:\Perl64\lib\auto\Win32>dir /b API AuthenticateUser ChangeNotify Clipboard Console Event EventLog File FileSecurity Internet IPC Job Mutex NetAdmin NetResource ODBC OLE PerfLib Pipe Process Registry Semaphore Service Shortcut Sound TieRegistry Win32.dll Win32.pdb WinError
      You can not install Win32 modules in x64 bit perl.

      What?

      The Win32::* modules in general compile and run on x64 Windows Perl. Properly written "Win32" C code compiles and runs transparently on x64. All Windows 64 bit Perls can have XS modules. XS and Dynaloader are not disabled as a security feature in Win64 Perls. Of course there are some Win32::* modules that have been abandoned for close to a decade and whether these will compile or not is random. The fixes are often small and easy if someone is inclined with C knowledge.
Re: Win32::GUI on 64bit Windows?
by denishowe (Acolyte) on May 31, 2013 at 14:35 UTC
    For Strawberry Perl, see http://www.nntp.perl.org/group/perl.win32.vanilla/2012/06/msg414.html which points to http://strawberryperl.com/package/kmx/perl-modules-patched/Win32-GUI-1.06_patched3.tar.gz

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1004548]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-12-25 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls