CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help:
GPL Perl App to be compiled in Windows .. Help

 



ohmygod
New User

Oct 12, 2005, 11:15 PM

Post #1 of 4 (8483 views)
GPL Perl App to be compiled in Windows .. Help Can't Post

Dear Gurus,

I've got a GPL Perl App that needs to be compiled in Windows. First of all, I would like to add that
1. this is my first ever program compile
2. this is my first ever plunge into Perl
3. this is my first ever coding experience

So you see, there are alot of firsts, so please be kind and gentle ... even if I made a glaring mistake!

I have been working on this for like the past 96 hours already

There are 5 PL files and 1 LIB file and I managed to dig out all the "use" information as follows:
use Carp::Heavy;
use Cwd;
use Cwd qw(chdir getcwd);
use Fcntl qw(:flock);
use File::Basename;
use File::Copy;
use File::Find;
use Getopt::Long;
use Net::Ping;
use POSIX qw(strftime mktime);
use Socket;
use strict;
use Tk;
use Tk::Button;
use Tk::Canvas;
use Tk::Checkbutton;
use Tk::DirSelect;
use Tk::DirTree;
use Tk::Entry;
use Tk::Event;
use Tk::Label;
use Tk::Listbox;
use Tk::Menu;
use Tk::Menubutton;
use Tk::NoteBook;
use Tk::Optionmenu;
use Tk::Pixmap;
use Tk::Radiobutton;
use Tk::Scrollbar;
use vars qw(%conf);
use vars qw/$gScriptRunFullPath $LastError/;
use vars qw ($key $working_dir $gui_text $finalfile $focusin_flag $user $hide $OEMencode $autoexit $backuptest);
use vars qw(%lang);
use vars qw ($sec $min $hour $mday $mon $year $wday $ydat $isdst);
use vars qw ($time %dir_list $value $dashdir);
use Win32;
use Win32API::File qw( :ALL );
use Win32::File;
use Win32::Internet;
use Win32::OLE;
use Win32::OLE qw( in );
use Win32::Process;
use Win32::TaskScheduler;
use Win32::TieRegistry;

Then I went to do this on a Windows 2000 machine

1. downlad active-state-perl from
http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.7.813-MSWin32-x86-148120.msi
and install ActivePerl-5.8.7.813-MSWin32-x86-148120.msi on a windows 2000 system

But after installing PAR and compiling, upon executing the EXEs, I got the errors
"The procedure entry point PL_memory_wrap could not be located in the dynamic link library perl58.dll"

So, I had to downlod the following and install instead
http://ftp.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.6.811-MSWin32-x86-122208.msi
and install ActivePerl-5.8.6.811-MSWin32-x86-122208.msi on a windows 2000 system

2. on the command prompt of the system, I ran the following ppm
install Tk::DirSelect
install Win32-Process-Perf
install Win32-TieRegistry
install Getopt-Long
install App-Packer
install App-Packer-Backend-Par
install http://www.bribes.org/perl/ppm/PAR.ppd
~or~ install http://theoryx5.uwinnipeg.ca/ppms/PAR.ppd
~or~ install http://crazyinsomniac.perlmonk.org/perl/ppm/5.8/PAR.ppd
install http://theoryx5.uwinnipeg.ca/ppms/Win32-Exe.ppd
install http://search.cpan.org/src/UNICOLET/Win32-TaskScheduler2.0.3/Win32-TaskScheduler-58/Win32-TaskScheduler.ppd
install http://www.bribes.org/perl/ppm/Tk.ppd
install http://www.bribes.org/perl/ppm/Win32-OLE.ppd
install http://www.bribes.org/perl/ppm/Win32Util.ppd
install http://www.bribes.org/perl/ppm/Win32-GUI.ppd
install http://www.bribes.org/perl/ppm/Win32-DDE.ppd
install http://www.bribes.org/perl/ppm/Win32-API.ppd
install http://www.bribes.org/perl/ppm/Win32-Internet.ppd
install http://www.bribes.org/perl/ppm/Win32-Process-Info.ppd
install http://www.bribes.org/perl/ppm/Win32-Process-List.ppd
install http://www.bribes.org/perl/ppm/Win32-Process-Memory.ppd
exit

Here's the major question
Notice that the "use" statements in my PL and LIB files do not tally with the ones that I have installed?
I have some missing ones that I cannot ever seem to find the PPD files. Eg.
"use Tk::Button"

Do I actually need to find every single PPD and install? I tried to search and search but really come up zero.

Would appreciate any help please?


rork
User

Oct 13, 2005, 7:54 AM

Post #2 of 4 (8480 views)
Re: [ohmygod] GPL Perl App to be compiled in Windows .. Help [In reply to] Can't Post

I advise you to run the script, if you get an error "Can't locate ****.pm in @INC..." it means the module (the thing you load with use) doesn't exist on your system and you'll have to install it.

Activestate perl comes with many modules and packages (a group of modules) so many of which you did install were allready installed.

You've found the two best sources (as far as I know) for ppd's so I think it's hard to find anymore ppd's. I think there aren't any missing modules in the case there are please tell us and we'll tell you how to install them.
--
Don't reinvent the wheel, use it, abuse it or hack it.


grafman
New User

Jun 5, 2007, 1:04 PM

Post #3 of 4 (7341 views)
Post deleted by grafman [In reply to]

 


KevinR
Veteran


Jun 5, 2007, 3:22 PM

Post #4 of 4 (7339 views)
Re: [grafman] GPL Perl App to be compiled in Windows .. Help [In reply to] Can't Post

rork

Oct 13, 2005, 7:54 AM

Crazy
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives