|
Post by buppie on Dec 31, 2006 10:12:53 GMT -5
I tried to install 1.7.1 here at a local w2k machine for test purposes. Perl seems to be working alright but when I want to login I get the following message:
gm-karma.cgi is not executable. Please check the file permissions and make sure you CHMOD it to 755.
Yes it's a Windows machine and I changed the attributes from all the files but it doesn't help.
Thanks
Today I did a test and removed GM 1.7.1 and installed GM version 1.3.1 again at my W2K machine and everything is working alright with this version. What's wrong with 1.7.1?
|
|
|
Post by coldstone on Jan 1, 2007 23:24:38 GMT -5
What version of perl do you have? It might not like 'new' tests for if a file is executable. Perl 5.6 has a '-x' command you can use to test for the execute bit.
This may even just be an issue with the windows perl port. Please let me know the version, maybe the execute check isn't worth having it if causes problems.
|
|
|
Post by buppie on Jan 2, 2007 4:42:12 GMT -5
I use perl version: ActivePerl 5.8.8.817. How do I test for the execute bit, or what do I have to do to test perl?
|
|
|
Post by coldstone on Jan 2, 2007 16:13:36 GMT -5
I dug around on ActivePerls website and discovered that since the -x command is kinda Unixy, it _may_ not be supported. If you want, you could run this script (either from command line or as cgi):
#!/usr/bin/perl -w
use strict;
if( -x "$0" ){ print "$0 is executable!\n"; } else { print "$0 IS NOT executable!\n"; }
If the script says that it isn't executable, then it means that ActivePerl isn't correctly doing the executable test.
The offending code is Gm 1.6.1 and 1.7.1 is in libs/Gm_Storage.pm. Look for the text "@executable" and change the line (around line 81) from:
my @executable = qw(gm-karma.cgi gm-comments.cgi gm-upload.cgi gm.cgi);
to:
my @executable = qw();
And it should run without the error.
|
|
|
Post by sparky on Jan 5, 2007 14:23:40 GMT -5
That fixed it for me--I am also running ActivePearl 5.8.something on WinXP Pro. I removed the text between the brackets and I was good to go.
Thanks!
|
|