Dear Patrick,

To get a CGI working that web-enables MySQL (MySQL Data Manager--good
product--see www.edatanew.com), I installed the prerequisite PERL modules by
using fink. I was also getting "INC" errors, and I copied the following line
from someone else's CGI (Marc Liyanage's, I
think--www.entropy.ch/software/MacOSx/mysql/) into that provided by EDataNew
(inserted it as the first line of the CGI, to inform the script of the path
to the PERL libraries installed by Fink):

BEGIN {
    unshift (@INC, "/sw/lib/perl5/darwin");
}

My script saw the PERL modules and started working. Hope the same works for
you. (I'm a little out of my depth, so try it only if you think it makes
sense.)

Sincerely,

Marc
----
On 8/11/02 3:05 PM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> --__--__--
> 
> Message: 3
> Date: Fri, 8 Nov 2002 04:40:41 +0100
> From: =?ISO-8859-1?Q?Patrick_N=E4f?= <[EMAIL PROTECTED]>
> To: Fink <[EMAIL PROTECTED]>
> Subject: [Fink-users] OT: A little help with perl
> 
> I'm trying to get bugzilla up and running on my system. This requires
> that I install a number of perl modules first. I figured that I would
> 
> - use fink to install all the modules it provides
> - install the rest of the modules with /usr/bin/perl
> 
> Now, when I point my browser to the local URL where my bugzilla
> installation is, I get several error messsages looking similar to this
> (this is just one of them):
> 
> Can't locate Template.pm in @INC (@INC contains: .
> /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin
> /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl) at
> globals.pl line 1529.
> 
> 
> 
> As I understand it, @INC is some sort of search path that perl uses to
> locate its modules. Because I installed the Template module with fink,
> it resides in /sw/lib/perl5/darwin/Template.pm; it therefore makes
> sense that httpd must be told of this new location. Any ideas of how to
> do this?
> 
> What ***didn't*** work was
> 
> - setting PERL5LIB to /sw/lib/perl5/darwin and exporting it
> - apachectl stop (check that no httpd processes are left)
> - apachectl start (check that new httpd processes were created)
> 
> 
> What ***did*** work in the end was copying Template.pm and all the
> other perl modules from /sw/lib/perl5 to /Library/Perl. But as you can
> guess I don't like this approach - it stinks of defeat :-)
> 
> 
> Any enlightening words or a pointer to would be greatly appreciated
> Patrick
> 
> 
> OS X 10.2.1
> OS X provides perl 5.6.0
> OS X provides httpd 1.3.26
> fink 0.11.0, using distro 0.4.9.cvs
> 
> 
> ----------------------------------------------------------------------
> Patrick Naef                "The Queen of Hearts, she made some tarts,
> Lucerne, Switzerland                              All on a summer day:
> [EMAIL PROTECTED]        The Knave of Hearts, he stole those tarts,
> ICQ# 120279211                              And took them quite away!"
> 
> 
> 
> --__--__--

-- 
Marc C. Trudeau
Principal
M & T Solutions
2001 Donna Ave.
Endicott, NY 13760
Phone: 607-754-1500
FAX: 607-754-8891
[EMAIL PROTECTED]

"...I would give my life for the simplicity on the other side of
complexity." -- Oliver Wendell Holmes
--



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to