Grey Matter Forums
« software error: can't find gm_constants.pm »

Welcome Guest. Please Login or Register.
May 24, 2013, 7:22pm



Greymatter: Free Personal Blogging Software

About Greymatter (including System Requirements)

Greymatter on FreshMeat

Download current version from:

News: Greymatter 1.8.2 is released! Read the announcement.

Got a minute? We want to know what's your preferred site navigation?

Please read the security announcement regarding author passwords.

Next Greymatter release will be 1.8.3


Grey Matter Forums :: Support :: Installation Issues :: software error: can't find gm_constants.pm
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: software error: can't find gm_constants.pm (Read 1,867 times)
billy
Guest
 software error: can't find gm_constants.pm
« Thread Started on Nov 20, 2006, 2:33am »

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)
Link to Post - Back to Top  IP: Logged
billy
Guest
 Re: software error: can't find gm_constants.pm
« Reply #1 on Nov 20, 2006, 4:04am »

maybe i should mention i am using GM version 1.6.1.....

i really need some advise with this.
Link to Post - Back to Top  IP: Logged
fixed it
Guest
 Re: software error: can't find gm_constants.pm
« Reply #2 on Nov 20, 2006, 4:14am »

i desided to remove 1.6 and use an older version

now it works
Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: software error: can't find gm_constants.pm
« Reply #3 on Nov 22, 2006, 11:34pm »

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?
Link to Post - Back to Top  IP: Logged
rocknation
New Member
*
member is offline





Joined: Dec 2006
Posts: 5
Karma: 0
 Re: software error: can't find gm_constants.pm
« Reply #4 on Dec 9, 2006, 2:56pm »


Quote:
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! :-/
Link to Post - Back to Top  IP: Logged
rocknation
New Member
*
member is offline





Joined: Dec 2006
Posts: 5
Karma: 0
 Re: software error: can't find gm_constants.pm
« Reply #5 on Dec 9, 2006, 4:51pm »


Quote:
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!
Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: software error: can't find gm_constants.pm
« Reply #6 on Dec 11, 2006, 12:02am »

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:

    [6a] The 'libs' directory should be uploaded to the cgi directory and all files in the libs directory (Gm_Storage.pm, etc.)should be CHMOD'ed to 755.

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).
« Last Edit: Dec 11, 2006, 12:06am by coldstone »Link to Post - Back to Top  IP: Logged
buppie
New Member
*
member is offline





Joined: Aug 2006
Posts: 19
Karma: 1
 Re: software error: can't find gm_constants.pm
« Reply #7 on Jan 5, 2007, 4:00pm »

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
Link to Post - Back to Top  IP: Logged
petefinnigan
Global Moderator
*****
member is offline




[homepage]

Joined: Aug 2006
Gender: Male
Posts: 219
Location: York, England
Karma: 18
 Re: software error: can't find gm_constants.pm
« Reply #8 on Jan 5, 2007, 5:28pm »


Quote:
[6a] The 'libs' directory should be uploaded to the cgi directory and all files in the libs directory (Gm_Storage.pm, etc.)should be CHMOD'ed to 755.


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
Link to Post - Back to Top  IP: Logged

--
Pete Finnigan (email:pete_at_petefinnigan_dot_com)
Oracle Security Web Site: http://www.petefinnigan.com
Oracle Security Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Book:Oracle security step-by-step Guide
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: software error: can't find gm_constants.pm
« Reply #9 on Jan 9, 2007, 4:41pm »

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.
Link to Post - Back to Top  IP: Logged
   [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile