Windows 7

Tk build issue on Windows 7

I just upgraded to Win 7 x64 & am trying to build Tk-804.028 using Microsoft Visual Studio 9.0, I have tried setting up the enviornment using vsvars32.bat, but Tk::X fails with:
X.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

while seting the enviornment with vcvarsx86_ia64.bat results in:
X.obj : fatal error LNK1112: module machine type 'IA64' conflicts with target machine type 'x64'

Any suggestions would be appreicated...

printing in word 2007 fails

I'm trying to print every second page from all word documents in the current working directory.

When I excecute my script $! gives me the error "No such file or directory".

I've got the values for the PrintOut method by excecuting a macro in microsoft Word.

Has anyone any ideas?

tnx! Bram

use Win32::OLE;
use Win32::OLE::Const 'Microsoft Word';
use Cwd;
use File::Find;

my $Word = Win32::OLE->new('Word.Application', 'Quit');
$Word->{Visible}=1;
#print $Word;
my $dir = getcwd;
#print $dir;

@directories=();
push @directories, $dir;

find(\&wanted, $dir);

Tcl wasn't installed properly on Windows 7

I recently installed ActiveTCL on a Windows 7 host. However, I have the following problems:

  1. Starting Tclsh85 produces the following errors:

    application-specific initialization failed: Can't find a usable init.tcl in the following directorie
    s:
    {C:\Tcl\lib\tcl8.4} C:/Tcl/lib/tcl8.5 C:/Tcl/lib/tcl8.5 C:/Tcl/lib/tcl8.5 C:/lib/tcl8.5 C:/Tcl/library C:/library C:/tcl8.5.8/library C:/tcl8.5.8/library

    This probably means that Tcl wasn't installed properly.
    %

Advanced workaround for PDK 8.2.1 on Windows 7

Question: 

My PDK Start menu items and file associations don't work on Windows 7. The Release Notes just say to use the command line. Isn't there a better alternative to get these working?

Answer: 

Let's start with PerlApp, since that's the most widely used application.

To fix your Start menu icon, go to Start|All Programs|ActiveState Perl Dev Kit 8.2.1 Build 292072. Right click on PerlApp and select Properties. Go to the Target box and change the text from "...\bin\perlapp-gui.exe" to "...\bin\perlapp.exe" (in other words, just delete -gui from the entry). Select OK. The PerlApp Start menu icon will now work.

To fix your .perlapp file association you will need a command line with Administrator priviledge. This can be done by navigating to Start|All Programs|Accessories and right clicking Command Prompt. Select Run as Administrator. If your PDK is installed on the default path, enter the following command:
C:\> ftype perlappfile="C:\Program Files\ActiveState Perl Dev Kit 8.2.1\bin\perlapp.exe" --interactive "%1"
If you installed PDK on a different path, adjust the command above to match your installation. Your perlapp associations are now corrected.

If they are present in your version of PDK, the Start Menu icons for PerlCtrl, PerlNET, PerlSvc, and PerlTray can all be corrected as you have just done for PerlApp by deleting "-gui" from the Target box. (64-bit PDK versions will not have a Start Menu icon for PerlNET.)

Again, your version of PDK may not have all of the following tools. Repair the ones you have and use. If you installed on a different path, modify the command to match your installation.
Fix the association for .perlctrl by:
C:\> ftype perlctrlfile="C:\Program Files\ActiveState Perl Dev Kit 8.2.1\bin\perlctrl.exe" --interactive "%1"

Fix the association for .perlnet by:
C:\> ftype perlnetfile="C:\Program Files\ActiveState Perl Dev Kit 8.2.1\bin\plc.exe" --interactive "%1"
(PerlNet is only available in 32-bit versions of the PDK)

Fix the association for .perlsvc by:
C:\> ftype perlsvcfile="C:\Program Files\ActiveState Perl Dev Kit 8.2.1\bin\perlsvc.exe" --interactive "%1"

Fix the association for .perltray by:
C:\> ftype perltrayfile="C:\Program Files\ActiveState Perl Dev Kit 8.2.1\bin\perltray.exe" --interactive "%1"

Forum

Their are problems with these forums http://jamesmsingleton.com/websitewidgets.html

Wondering if ppm GUI defaults to --nodeps

Hi,

I'm using ActivePerl v5.8.9 built for MSWin32-x86-multi-thread. I am only using one ppm repo, the default ActiveState one for this build:

http://ppm4.activestate.com/MSWin32-x86/5.8/827/package.xml

I am trying to write a batch script that will install all required modules to run Catalyst. If I use ppm at the command line to install Catalyst-Runtime, for example, I get a dependency error:

ppm instal Catalyst-Runtime
ppm install failed: Can't find any package that provides namespace::clean version 0.13 for Catalyst-Runtime

5.10 x64 repo not found

I am trying to install modules on activestate perl 5.10 build 1007 x64 and cannot get the repository to download. Any ideas why?

I get the following error when syncing through ppm:

Downloading ActiveState Package Repository packlist ... not found

I am trying to connect to http://ppm4.activestate.com/MSWin32-x64/5.10/1007/package.xml.

I would rather not have to manually compile all of the modules that I need to install for my project from cpan. Your help is much appreciated.

Thanks,
Troy

POSIX::strftime problem with %e (numeric day of the month)

Hi,

I encounter some problems with the POSIX::strftime function using %e in the date format under my ActivePerl (5.10.1.1007 Win32).

While in 5.8.8 it caused perl to hang up completely it's now just giving an curious error message:

use strict;
use warnings;

use POSIX ();
use Time::HiRes ();

 my $now = Time::HiRes::time;
#printf POSIX::strftime("%c",localtime($now));
printf POSIX::strftime("%b %e %H:%M",localtime($now));

Output:

Use of uninitialized value in printf at C:/Users/lemke/workspace/SA/test.pl line 9.

PerlApp can´t unpack Moduls ( IPC-Filter )

Every time I want to build an executable I get this error-message and no executable:

Unpacking IPC-Filter-0.002...Could not open file 'C:\Users\p\AppData\Local\Temp\ppm-AQx6k5\IPC-Filter-0.002\blib\libdoc\IPC::Filter.3': Invalid argument at /ActivePerl/PPM/Client.pm line 1141
Can't extract to C:\Users\p\AppData\Local\Temp\ppm-AQx6k5/IPC-Filter-0.002/blib/libdoc/IPC::Filter.3 at /ActivePerl/PPM/Client.pm line 1123.

ActiveTcl / Expect in Windows 7

I have a problem with Expect in Windows 7

1) Install Telnet client (http://www.leateds.com/2009/telnet-for-windows-vista-windows-7/)
2) Install ActiveTcl
3) "teacup install Expect"
4) launch Tclsh85
5) package require Expect
6) spawn telnet someipaddress

Observed:
"The system cannot find the file specified"

I search the whole internet for information, and the only advice they have is "install telnet client" which I already did.

I am starting to think it is a bug with ActiveTcl.

Anyone have advice for me?