joetesta has asked for the wisdom of the Perl Monks concerning the following question:
I inherited a windows-based program written in perl and using GTK. I'm trying to figure out how to install / recreate this system on a new Windows XP install.
I have the program running but when I try to set the printers, it fails to see any printers and the perl window shows the error:
*** unhandled exception in callback: *** Undefined subroutine &Win32::Printer::Enum::Printers called at Shi +p_program/Printing.pm line 513. *** ignoring at .\connect.pl line 17.
I tried to install Win32::Printer from CPAN, Win32-Printer-0.9.1, but it wasn't finding 'make' or 'nmake' so I installed 'nmake' and now nmake gives a fatal error, package 'cl' not found. I tried installing MinGW and Visual Studio but got frustrated with this avenue because I kept getting the same error no matter what.(clearly I am not a windows guy!!)
So I tried just copying over the Printer folder from the existing computer, which has the Enum.pm in there, from/to 'C:/Perl/site/lib/Win32/Printer', but it still gives me the same undefined sub when i hit printer preferences.
I tried copying over the PATH environment variables but still no luck.
Any ideas what's going wrong, any suggestions? Do I need to get Win32-Printer to install properly? thank you very much in advance for any help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: need help setting up an existing perl program in windows
by Corion (Patriarch) on Apr 12, 2013 at 17:50 UTC | |
by joetesta (Novice) on Apr 12, 2013 at 18:28 UTC | |
by MidLifeXis (Monsignor) on Apr 12, 2013 at 18:43 UTC | |
by joetesta (Novice) on Apr 12, 2013 at 18:47 UTC | |
|
Re: need help setting up an existing perl program in windows
by fishmonger (Chaplain) on Apr 12, 2013 at 18:45 UTC | |
by fishmonger (Chaplain) on Apr 12, 2013 at 18:46 UTC | |
by joetesta (Novice) on Apr 12, 2013 at 18:50 UTC |