Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Problems with CGI.pm

by tachyon (Chancellor)
on Nov 23, 2004 at 03:50 UTC ( #409792=note: print w/replies, xml ) Need Help??


in reply to Problems with CGI.pm

Yep, I went to look if I had the Util.pm and I do.

You may have a Util.pm but according to perl you don't have one where it is supposed to be. (C:\Perl\lib\CGI\Util.pm) Perl *is* right about this, although you may possibly have a permissions problem.

So, don´t know what may be the problem.

See above, below, Simple Module Tutorial and A Guide to Installing Modules

This started happening when I replaced the CGI.pm for the new version (3.05)

In other words you have a broken install. Probably because you tried to cut and paste it, maybe for other reasons.

I suggest that the following simple steps will fix your problem. CGI.pm is CORE so its default location is C:\Perl\lib\CGI.pm with more stuff in C:\Perl\lib\CGI\*. Delete this file and directory. Your updgrade on the other hand probably got installed to C:\Perl\site\lib\CGI* so delete the file C:\Perl\site\lib\CGI.pm and directory C:\Perl\site\lib\CGI\* if they exist. If you use PPM also do ppm remove CGI which will complain about not finding stuff but will remove CGI from the install database. Now reinstall using either PPM or perl Makefile.PL && nmake && nmake test && nmake install. Do not try to cut and paste this module (and its ancillary bits). While it can be done correctly it is easy to do it wrong too.

cheers

tachyon

Replies are listed 'Best First'.
Re^2: Problems with CGI.pm
by jacques (Priest) on Nov 23, 2004 at 14:33 UTC
    I suggest that the following simple steps will fix your problem.

    I think they seem simple for people with enough experience, but for the uninitiated they may be intimidating.

    We often see broken installs on Win32 here. I wonder why. Did the OP cut and paste, as you suggest? Why would anyone do that? Perhaps the OP did so because the latest version of CGI.pm was not available in ActiveState's reposits? Do many PPM users even know that you can specify the path of the reposit with PPM? I would wager not. You bring up 'nmake', something I use all the time. But would casual users know what nmake is or where to download it? Isn't PPM suppose to simplify the installation and upgrade process for them?

    Sigh, Win32 Perl is such a mess.

      Thanks a lot, tachion. In fact I did some dirty installation with copy and paste. I´ve downloaded nmake and now it shall work fine. Your tutorial on installing modules is great, Im glad to find such focus on Win32 I didn´t find elsewhere in this kind of module tutorial. Hey, Jacques, you´re right. PPM sucks, and that´s why I went to do the dirty work. Guess what? They do not have the CGI.pm module to install! Im using ActiveState´s repositories. If someone can suggest me a real repository, it would be a great help. Anyway, now with nmake I can do it the other way, but PPM would be much pratical - if it worked. Thanks a lot guys! Cheers André PS: By the way, what´s "hubris"? My english dictionary doesn´t have this word Larry likes...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://409792]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2018-08-21 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (202 votes). Check out past polls.

    Notices?