Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: FW: Problem Building exes on Win32: msg#00026

lang.perl.par

Subject: Re: FW: Problem Building exes on Win32

Shaffer, Chris wrote:

Sure.... I can execute this script (as perl):

#!C:/Perl/bin/perl.exe

print "Hello World!";

exit();

I'm trying to build an exe with this command:

C:\Dev>pp -o out.exe test.pl

I get this from pp:

Can't locate Cwd.pm in @INC (@INC contains: CODE(0xa20874) .) at
C:/Perl/lib/File/Spec/Win32.pm line 4.
BEGIN failed--compilation aborted at
C:/Perl/lib/File/Spec/Win32.pm line 4.
Compilation failed in require at C:/Perl/lib/File/Spec.pm line
15.
Compilation failed in require at C:/Perl/lib/IO/File.pm line
113.
BEGIN failed--compilation aborted at C:/Perl/lib/IO/File.pm line
113.
Compilation failed in require at -e line 305.

Where should par be installed? Right now, I've just have it installed
in C:\Perl, and I've added C:\Perl\script to my PATH. Could that be
causing my problems?

Chris Shaffer
Application Developer, BSTCAD/BSTProcess
BSTCAD Support Forums
chris.shaffer@xxxxxxxxxxxxx
(404) 927-1227


-----Original Message-----
From: the.noonings [mailto:the.noonings@xxxxxxxxxxx] Sent: Wednesday, December 22, 2004 7:26 PM
To: Shaffer, Chris
Cc: par@xxxxxxxx
Subject: Re: Problem Building exes on Win32


Shaffer, Chris wrote:


Yes, I can run it as a perl script... Like I said, this happens even
if I'm NOT using Cwd...

Chris Shaffer


-----Original Message-----
From: the.noonings [mailto:the.noonings@xxxxxxxxxxx]
Sent: Wednesday, December 22, 2004 1:57 PM
To: Shaffer, Chris
Cc: par@xxxxxxxx
Subject: Re: Problem Building exes on Win32


Shaffer, Chris wrote:




I'm having problems getting pp to build an executable on WindowsXP. When I execute:

pp -o output.exe input.pl

I get this:

Can't locate Cwd.pm in @INC (@INC contains: CODE(0xa20874) .) at





C:/Perl/lib/File/Spec/Win32.pm line 4.
BEGIN failed--compilation aborted at


C:/Perl/lib/File/Spec/Win32.pm



line 4.
Compilation failed in require at C:/Perl/lib/File/Spec.pm line


15.



Compilation failed in require at C:/Perl/lib/IO/File.pm line

113.

BEGIN failed--compilation aborted at C:/Perl/lib/IO/File.pm line

113.

Compilation failed in require at -e line 305.

Doesn't matter what's in 'input.pl'. Could just be a 'hello world' type program. It will fail. Any ideas what I'm missing?

Chris Shaffer


Chris Shaffer
Application Developer, BSTCAD/BSTProcess
BSTCAD Support Forums <http://forums.ecars.bst.bls.com/viewforum.php?f=2>
chris.shaffer@xxxxxxxxxxxxx
(404) 927-1227


*****
"The information transmitted is intended only for the person or entity



to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination



or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is





prohibited. If you received this in error, please contact the sender and delete the material from all computers." 118






It cannot find Cwd.pm, but that you know. Can you your script as a perl file? Do you have your perl library or Cwd.pm in a non-standard place?


*****
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is



prohibited. If you received this in error, please contact the sender and delete the material from all computers. 162





Hmmm. I am using Windows XP, and also Windows Millenium. I created my

executable on XP and ran it, and also ran it on my Millenium machine. BTW my Millenium machine does not have perl installed. I have perl v5.8.4 on my XP machine. I know this does not really help much. Can you post a simple script that shows the symptoms you described?

*****
"The information transmitted is intended only for the person or entity to which it
is addressed and may contain confidential, proprietary, and/or privileged material. Any
review, retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and delete the
material from all computers." 118



I spotted something. Namely, your INC path. If par/pp is installed correctly, then the executable that is created, when it executes for the first time, it creates a cache directory. I put in a fake "use ka4k;" in the test.pl code so the out.exe would fail. It gave me
:
Can't locate ka4k.pm in @INC (@INC contains: CODE(0xd8d08c) C:\DOCUME~1\malcolm\LOCALS~1\Temp\par-malcolm\cache-af1dd249
c8f8ef3e86132e16fda49a1fcea0df2a/inc CODE(0xd34858) .) at script/test.pl line 2.
BEGIN failed--compilation aborted at script/test.pl line 2.

Notice the long cache name. The exe should be using the perl files of the cache directory. NOT the perl files under c:\Perl. The exe should run without perl being installed on your machine at all.

Here is something you can try. Go back to whatever directory you used to download, unpack and test par. Somewhere under there (the contrib directory, I think) is a file called automated_pp_test.pl that you can run. Try to run it and see if everything that should pass, does pass. If not, there is a problem with the installation. If they do pass, then I would be at a loss as to what to do next. Except possibly reinstall par from a fresh directory.






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe