|
Post by billy on Nov 20, 2006 2:33:19 GMT -5
When i run gm.cgi for the first time, i get this:
Software error:
Can't locate Gm_Constants.pm in @inc (@inc contains: libs /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at gm.cgi line 27. BEGIN failed--compilation aborted at gm.cgi line 27.
i have everything chmod'd correctly i have the formats correct Here is my general server info: Operating system Linux Kernel version 2.6.9-22.ELsmp Machine Type i686 Apache version 1.3.36 (Unix) PERL version 5.8.7 <b>Path to PERL /usr/bin/perl</b> Path to sendmail /usr/sbin/sendmail PHP version 5.1.4 MySQL version 5.0.24-standard cPanel Build 10.9.0-RELEASE 57 Theme cPanel X v2.6.0 cPanel Pro 1.0 (RC36)
|
|
|
Post by billy on Nov 20, 2006 4:04:11 GMT -5
maybe i should mention i am using GM version 1.6.1.....
i really need some advise with this.
|
|
|
Post by fixed it on Nov 20, 2006 4:14:52 GMT -5
i desided to remove 1.6 and use an older version
now it works
|
|
|
Post by coldstone on Nov 22, 2006 23:34:02 GMT -5
Just curious, but did you have your 'libs' directory in the cgi-bin directory? What were the permissions for the files in that directory?
Did you upgrade from an existing installation or was this a fresh install?
|
|
|
Post by rocknation on Dec 9, 2006 14:56:52 GMT -5
Just curious, but did you have your 'libs' directory in the cgi-bin directory? What were the permissions for the files in that directory? Did you upgrade from an existing installation or was this a fresh install? I'm having the exact same problem. Can't locate Gm_Constants.pm in @inc (@inc contains: libs /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at /client/home/rocknation/cgi-bin/gm.cgi line 27. BEGIN failed--compilation aborted at /client/home/mysite/cgi-bin/gm.cgi line 27. I'm doing a fresh install. The instructions don't specifically say what to do with the libs directory. Should it be uploaded as text or binary? Exactly where should it be placed, and what should the permissions be? I'm so close yet so far!
|
|
|
Post by rocknation on Dec 9, 2006 16:51:00 GMT -5
i desided to remove 1.6 and use an older version now it works I did the same--1.3 works fine. Apparently the problem is that my ISP is using a very early version of Perl 5. But trying 1.6 wasn't a complete waste of time--there was no CHMOD in the 1.3 libary.cgi file, so I tried the CHMOD in the 1.6 version (644--rw r r). So I'm on my way--thanks for just being there!
|
|
|
Post by coldstone on Dec 11, 2006 0:02:09 GMT -5
If you decide to go back to GM 1.6.1, I made a note about the libs directory under Upgrading (item 4). I would like to thank you for pointing out the lack of information in the Install section regarding this. For future reference though: If using an older version of perl ( pre 5.6 ) you will also have problems with the 'use warnings' statement in each file in the 'libs' directory. Remove this line from each file (there further information in the forums).
|
|
|
Post by buppie on Jan 5, 2007 16:00:44 GMT -5
Hi,
I have now the same problem at a windows server, I did everything alright, The libs in the cgi directory and set all the rights. But it gave me the same error: Can't locate Gm_Constants.pm in @inc (@inc contains: libs C:/Perl/site/lib C:/Perl/lib .) at d:\www\devrije.nl\www\cgi-bin\gm.cgi line 27. BEGIN failed--compilation aborted at d:\www\devrije.nl\www\cgi-bin\gm.cgi line 27. The windows server use perl 5.8.6.811. Someone knows what to do now, because I'm despared. In a other thread 'trouble..' I have made a post about the troubles I have with my hostingsprovider with 1.3.0. I just wanted to upgrade the log and I was hoping this will solve my problems.
Thanks
|
|
|
Post by petefinnigan on Jan 5, 2007 17:28:26 GMT -5
Because the libs are packages they dont need to be set to 0755, 0644 wil suffice. Mine are set to 0644 and work fine.
Also I note that the install instructions have changed from 1.3.1 to state (implicitly) that gm-library.cgi needs to be set to 755. This file used to be set to 0666 according to the old docs but it also is fine at 0644.
Thise files are not executed directly but included into other files so only need to be read by "group" and "world".
cheers
Pete
|
|
|
Post by coldstone on Jan 9, 2007 16:41:11 GMT -5
Good point. You caught me copying and pasting. I will have to update the doco for this.
The install actually gives conflicting instructions now for gm-library.cgi.
|
|