Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bundling sourcefile.pl with module for pp packager

Status
Not open for further replies.

Cybershmuck

Technical User
Jan 21, 2005
21
Hi all,

I need to add a module called Thread::Queue into my perl script to form an executable file.
I've already included it in my sourcefile.pl through the:

use Thread::Queue;

statement.

I tried running the command line:

C:\Perl\bin>pp -M Thread::Queue -o output.exe sourcefile.pl

I then ran the command line:

output.exe

but I got the following error:

"Can't locate attributes.pm in @INC (@INC contains: CODE(0xc3b1d0) CODE(0xd2abbc)
.) at C:/Perl/lib/Thread/Queue.pm line 69.
BEGIN failed--compilation aborted at C:/Perl/lib/Thread/Queue.pm line 69."

However, if I just run the stand alone perl script sourcefile.pl without creating an executable, then the file works fine.

What am I doing wrong?

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top