|
Post by JR on Nov 19, 2006 3:47:52 GMT -5
Software error: Can't locate warnings.pm in @inc (@inc contains: libs /usr/local/lib/perl5/alpha-dec_osf/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/alpha-dec_osf /usr/local/lib/perl5/site_perl .) at libs/Gm_Constants.pm line 19.
Please advise.
|
|
|
Post by coldstone on Nov 20, 2006 1:16:43 GMT -5
This is an issue with the new code in GreyMatter.
To fix this: You will want to edit every file in the 'libs' directory (Gm_Constants.pm, etc.) and remove the line:
use warnings;
Some detail if you are interested: The pragma 'warning' was introduced with perl 5.6.0, since it looks like you are using perl 5.0 it is complaining since it doesn't have this feature.
Basically perl has a '-w' option you can specify on the sh-bang line to tell Perl to be very picky about how the code is written. Unfortunately, if just one file has '-w' you will get errors/warnings for every single file (e.g. if file A has '-w' then you will get warnings from files B, C, and D, this is very uncool).
That is why 'use warnings' is cool, because it will only warn about issues with the file its included in (e.g. only file A could generate warnings). I realize that not everyone will have Perl 5.6 (which was released in 2000) or later.
|
|
|
Post by JR on Nov 28, 2006 12:40:18 GMT -5
Find it hard to believe that Perl 5.6 has not been installed after being available for so long.
Is there any way to verify or check which version of Perl is installed ?
|
|
|
Post by coldstone on Nov 28, 2006 18:57:37 GMT -5
Yeah, that would be kinda weird.
I am guessing you are using Perl 5.0 because of the line above: "...lib/perl5/alpha-dec_osf/5.00404..."
If you have command line access to your webserver you can type 'perl -v' to get the version.
Also, you can ask your ISP/web host. They may give you a path to a new version of perl, in which case you need to update the first line of a few files. I am guessing that the new perl is located in a non-standard location.
|
|
|
Post by JR on Nov 29, 2006 1:25:37 GMT -5
Called the helpline folk and they only support 5.004 <sigh> Removing the warnings from the .PM files did the trick Of course, it should have been documented. Spent two hours installing and uninstalling and checking the permissions and ASCII assuming it was some error on my part because there was no reference to the software error in the troubleshooting section of the manual
|
|
|
Post by coldstone on Nov 29, 2006 14:06:38 GMT -5
Software would work correctly with a less than six year version of perl Since this is an open project, feel free to help make it better. The requirement for the perl will be listed in future versions. I didn't realize that that was a 'new' feature of Perl, since I first started using perl in 2000 and it already had it. Glad to hear it works.
|
|
|
Post by JR on Nov 30, 2006 1:07:41 GMT -5
When pressuring my provider to upgrade to Perl5.6, their response was to provide me with instructions on how to install Perl.
Where does one find a Perl5.6 library ?
|
|
|
Post by coldstone on Nov 30, 2006 17:14:50 GMT -5
I googled and came up with this: www.perl.com/download.csp#binaryPerl.com is pretty good. It almost sounds as if they gave you directions for installing a specific perl library rather than the whole perl program. Once you install that perl, you have to change several of the .cgi files to 'point' to that perl. The gm-install file has some info at the begining on that.
|
|