|
Post by P on Oct 4, 2006 20:13:20 GMT -5
I'm having trouble configuring the local paths. I've tried every combination and I get an error every time.
Error Notice Can't read /www/cgi-bin/gm/gm-authors.cgi. Make sure this file is in the same directory as all your Greymatter CGI files and is CHMODed to 666, and that your Local CGI Path is pointing to the correct place.
|
|
|
Post by coldstone on Oct 6, 2006 15:11:07 GMT -5
Are you able to use command line tools on you account? Maybe run pwd to see what your path is.
Basically, it needs the gm-authors.cgi file to be in the location: /www/cgi-bin/gm/gm-authors.cgi If your file is actually under /jsmith/www/cgi-... then GM will not be able to find it. I know the field is called the local path, but its really the fully qualified path.
Looking at your path I would guess when you login you see the www directory, but you are not at the top level directory. How do you upload GM or modify your files?
Also, once GM can find the file, you need to make sure it is readable by GM, hence the chmod command.
|
|
|
Post by jet on Nov 28, 2006 9:01:25 GMT -5
Hi,
I've just tried doing the upgrade from 1.3.1 (which has been running fine) to 1.6.1. Far as I can tell, all the .cgi and libs file are CHMODed properly. I get the following error when trying to access gm.cgi:
Software error: Can't locate warnings.pm in @inc (@inc contains: libs /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at libs/Gm_Constants.pm line 20. Please send mail to this site's webmaster for help. Content-type: text/html
Software error: [Tue Nov 28 05:50:45 2006] warnings.pm: Can't locate warnings.pm in @inc (@inc contains: libs /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at libs/Gm_Constants.pm line 20. BEGIN failed--compilation aborted at libs/Gm_Constants.pm line 20. Please send mail to this site's webmaster for help. Content-type: text/html
Software error: [Tue Nov 28 05:50:45 2006] Gm_Constants.pm: [Tue Nov 28 05:50:45 2006] warnings.pm: Can't locate warnings.pm in @inc (@inc contains: libs /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at libs/Gm_Constants.pm line 20. [Tue Nov 28 05:50:45 2006] Gm_Constants.pm: BEGIN failed--compilation aborted at libs/Gm_Constants.pm line 20. Please send mail to this site's webmaster for help. Content-type: text/html
Software error: [Tue Nov 28 05:50:45 2006] Gm_Constants.pm: [Tue Nov 28 05:50:45 2006] Gm_Constants.pm: [Tue Nov 28 05:50:45 2006] warnings.pm: Can't locate warnings.pm in @inc (@inc contains: libs /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at libs/Gm_Constants.pm line 20. [Tue Nov 28 05:50:45 2006] Gm_Constants.pm: [Tue Nov 28 05:50:45 2006] Gm_Constants.pm: BEGIN failed--compilation aborted at libs/Gm_Constants.pm line 20. BEGIN failed--compilation aborted at ./gm.cgi line 27. Please send mail to this site's webmaster for help.
ANy help would be appreciated. Thanks.
|
|
|
Post by coldstone on Nov 28, 2006 18:54:35 GMT -5
Looks like you are using perl 5.0, which does not support the new code. Look for and remove the line in each file in libs:
use warnings;
You may run into other problems though.
Also, the default path to Perl (located at the top of the gm.cgi file, etc.) may not be pointing to the correct/newest version of Perl on your webserver (since it all depends on where people install Perl). I would check with your ISP/Web Host and see what Perl path you should be using (the GreyMatter files default to "#!/usr/bin/perl").
The gm-install.html file talks about setting your Perl path.
|
|