Subject: | Cannot found Win32::Exe::PE::Header::PE32Plus in win2003 R2 (X64) + CYGWIN |
Date: | Wed, 06 Sep 2006 18:49:17 +0800 |
To: | bug-Win32-Exe [...] rt.cpan.org |
From: | "john.xu" <john.xu [...] dothill.com> |
Message body not shown because it is not plain text.
Hi,
I am using the Win32::Exe module to get one exe file information. but I
encount below problem.
Here is the error message.
Can't locate object method "load" via package
"Win32::Exe::PE::Header::PE32Plus" at
/usr/lib/perl5/site_perl/5.8.0/Parse/Binary.pm line 484.
All I know information about the test:
my machine is win2k3 R2, and cpu is AMD64. I attached an snapshot of my
system info. I also attached the diskraid.exe file, but I renamed it to
diskraid.e_.
The Win32::Exe module version is: Win32-Exe-0.09.tar.gz, I download it
from CPAN.
$ uname -a
CYGWIN_NT-5.2 x64-w2k3-john 1.5.5(0.94/3/2) 2003-09-20 16:31 i686
unknown unknown Cygwin
root@x64-w2k3-john /cygdrive/f/workspace/si/vds_tester
$ perl -v
This is perl, v5.8.0 built for cygwin-multi-64int
Copyright 1987-2002, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
$ set
!D:='D:\cygwin\bin'
!EXITCODE=00000000
ALLUSERSPROFILE='D:\Documents and Settings\All Users'
APPDATA='D:\Documents and Settings\Administrator\Application Data'
BASH=/usr/bin/bash
BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release"
[5]="i686-pc-cygwin")
BASH_VERSION='2.05b.0(1)-release'
CLUSTERLOG='D:\WINDOWS\Cluster\cluster.log'
COLUMNS=95
COMMONPROGRAMFILES='D:\Program Files (x86)\Common Files'
COMMONPROGRAMFILES(X86)='D:\Program Files (x86)\Common Files'
COMMONPROGRAMW6432='D:\Program Files\Common Files'
COMPUTERNAME=X64-W2K3-JOHN
COMSPEC='D:\WINDOWS\system32\cmd.exe'
CVS_RSH=/bin/ssh
DIRSTACK=()
EUID=500
FP_NO_HOST_CHECK=NO
GROUPS=()
HISTFILE=/home/Administrator/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/Administrator
HOMEDRIVE=D:
HOMEPATH='\Documents and Settings\Administrator'
HOSTNAME=x64-w2k3-john
HOSTTYPE=i686
IFS=$' \t\n'
INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/inf
o:
JAVA_HOME='F:\j2sdk1.4.2'
LINES=33
LOGONSERVER='\\X64-W2K3-JOHN'
MACHTYPE=i686-pc-cygwin
MAILCHECK=60
MAKE_MODE=unix
MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/X11R6/man:/usr/ssl/man
NUMBER_OF_PROCESSORS=2
OLDPWD=/home/Administrator
OPTERR=1
OPTIND=1
OS=Windows_NT
OSTYPE=cygwin
PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/d/WINDOWS/system32:/cygdrive/d/WINDOWS:/
cygdrive/d/WINDOWS/System32/Wbem:/cygdrive/d/Program Files
(x86)/Microsoft Visual Studio 8/Common7/I
DE/:/cygdrive/f/j2sdk1.4.2/bin'
PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PIPESTATUS=([0]="0")
PKG_CONFIG_PATH=:/usr/X11R6/lib/pkgconfig
PPID=1
PRINTER='\\ROSE-TAN\hp LaserJet 1320 PCL 6'
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_ARCHITEW6432=AMD64
PROCESSOR_IDENTIFIER='AMD64 Family 15 Model 35 Stepping 2, AuthenticAMD'
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=2302
PROGRAMFILES='D:\Program Files (x86)'
PROGRAMFILES(X86)='D:\Program Files (x86)'
PROGRAMW6432='D:\Program Files'
PROMPT='$P$G'
PS1=$'\\[\\033]0;\\w\\007\n\\033[32m\\]\\u@\\h
\\[\\033[33m\\w\\033[0m\\]\n$ '
PS2='> '
PS4='+ '
PWD=/cygdrive/f/workspace/si/vds_tester
SESSIONNAME=Console
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=1
SYSTEMDRIVE=D:
SYSTEMROOT='D:\WINDOWS'
TEMP=/cygdrive/d/DOCUME~1/ADMINI~1/LOCALS~1/Temp
TERM=cygwin
TEXMF='{/usr/share/lilypond/2.0.1,/usr/share/texmf}'
TMP=/cygdrive/d/DOCUME~1/ADMINI~1/LOCALS~1/Temp
UID=500
USER=root
USERDOMAIN=X64-W2K3-JOHN
USERNAME=Administrator
USERPROFILE='D:\Documents and Settings\Administrator'
VS80COMNTOOLS='D:\Program Files (x86)\Microsoft Visual Studio
8\Common7\Tools\'
WINDIR='D:\WINDOWS'
X11PATH=/usr/X11R6/bin
_=-v
datadir=/usr/share/lilypond/2.0.1
f=
May perl code is:
use Win32::Exe
my $diskraid_exe =
Win32::Exe->new("/cygdrive/f/j2sdk1.4.2/bin/diskraid.exe");
my $currVer = $diskraid_exe->version_info->get('FileVersion');
And I found here no PE32Plus.pm file exist, here only PE32.pm exist.
Thanks,
John