Steny has asked for the wisdom of the Perl Monks concerning the following question:

Ok, please bare with me as I'm trying to setup a testing environment because I'm tired of having to upload files every few seconds to test them on my webspace.
Not only is it stupid and time consuming, but it's also a hazard for the site...

Anyway, I installed Apache, MySQL, phpMySQL, and Perl using PHPTriad.
I then updated the phpMySQL to the most recent version (no problems there) and then installed the most recent version of ActivePerl on my comp. The shebang in my scripts uses the ActivePerl installation that I did, not the one that was installed with Apache. Regardless, scripts that don't require special packages work fine.

I installed HTML::Template without any problems (after getting an error telling me it wasn't installed), and scripts that require it are working wonderfully.

I'm running into a problem with CGI::Session however. I installed it, but got errors. I'm trying to re-install it, but PPM just tells me that it's already installed.

Here's a sample bunch of errors I'm getting from one of my scripts...

Can't locate auto/CGI/Session/autosplit.ix in @INC (@INC contains: c:/Perl/lib c:/Perl/site/lib) at c:/Perl/lib/AutoLoader.pm line 158. at c:/Perl/lib/CGI/Session.pm line 9 syntax error at /apache/cgi-bin/leftmenu.cgi line 12, near "use DBI" Execution of /apache/cgi-bin/leftmenu.cgi aborted due to compilation errors

I've tried uninstalling the module using PPM, then re-installing it.

When I type:
ppm install CGI::Session

after uninstalling it, it installs CGI-Session-Remote Is this the same thing? Am I mis-typing something?

Last hurdle before I can start developing. Spent 2-3 hours tonight trying to figure this out, but I've beat.

If anyone could offer me some advice on how to fix this mess, it would be much appreciated.


Steny

2003-05-01 edit ybiC: retitle s/(plz help)//;

Replies are listed 'Best First'.
Re: CGI::Session - Installation Problem
by PodMaster (Abbot) on May 01, 2003 at 06:10 UTC
    Don't use PPM to install pure perl modules. Go to Tutorials and read A Guide to Installing Modules, then download the latest CGI::Session and run the test suite. Then, and only then, attempt running your program again.


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
    ** The Third rule of perl club is a statement of fact: pod is sexy.

      Thx a ton. Was trying to use make, rather then nmake, and got errors.. so turned to PPM.
      Will use nmake from now on.

      I appreciate all the help. CGI::Session seems to be working fine, finaly :-)

      Thanks for all the help & feedback guys.

      Steny
Re: CGI::Session - Installation Problem (plz help)
by benn (Vicar) on May 01, 2003 at 10:14 UTC
    I had a similar problem myself a little while back, but when I did a PPM 'search', CGI::kSession popped up, so I installed that instead - same functionality and pretty much the same syntax etc. (I kept meaning to get around to doing a 'proper' install of CGI::Session, but I still haven't done so...:))

    Cheers,
    Ben.

      I wouldn't reccomend CGI::kSession to anybody. It has no tests, and based on that fact alone is not worth much attention (but I looked anyway).

      Another big problem is it uses no locking mechanism whatsoever.

      And lastly, it's no replacement for CGI::Session (which is very actively maintained). CGI::Session can use various database backends, whereas CGI::kSession is limited to files.

      Like I said in the beginning, I wouldn't reccomend CGI::kSession to anybody.


      MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
      I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
      ** The Third rule of perl club is a statement of fact: pod is sexy.

        Fair 'nuff - thank-you. I was only playing anyway - I use CGI::Session on the *nix webservers, and was surprised that ActiveState had no 'easy-peasy-ppm' install of it, so took the best they offered...I'll try Somebody Else's Repository next time :)