From owner-freebsd-questions@FreeBSD.ORG Fri Oct 28 04:57:56 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2262616A41F for ; Fri, 28 Oct 2005 04:57:56 +0000 (GMT) (envelope-from npacemo@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id B042643D48 for ; Fri, 28 Oct 2005 04:57:55 +0000 (GMT) (envelope-from npacemo@gmail.com) Received: by zproxy.gmail.com with SMTP id o37so401463nzf for ; Thu, 27 Oct 2005 21:57:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mMEKT47NW+9gbR4kpErOHHGq5j46C/utJmGt0Q4trZdLcXChK4jABggbgXCEGBFY4Uo06hSideEtpgQuaPl2Vr40lZH5gcBf+pHDqJFqZ8BodvFXUP94UXdlpMutmWEal7p8LUuO0dtacr6igKdEMi6qjaSrdCf1vjO4NcP9EbA= Received: by 10.36.3.19 with SMTP id 19mr2560891nzc; Thu, 27 Oct 2005 21:57:55 -0700 (PDT) Received: by 10.36.250.38 with HTTP; Thu, 27 Oct 2005 21:57:55 -0700 (PDT) Message-ID: <666bdb140510272157p1e848ef3r@mail.gmail.com> Date: Fri, 28 Oct 2005 07:57:55 +0300 From: Vladimir Tsvetkov To: Cody Holland In-Reply-To: <4B3EE484EEA4F344BBB62F8316489986467D6F@corpsrv.RedMoon.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4B3EE484EEA4F344BBB62F8316489986467D6F@corpsrv.RedMoon.local> Cc: freebsd-questions@freebsd.org Subject: Re: Apache::DBI Problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 04:57:56 -0000 > I'm having some major issues with perl site I'm trying to get working. > I'm running FreeBSD 5.4 stable using Apache 2.0.55 and perl 5.8.7. The > error I'm getting is: > Can't locate object method "connect_on_init" via package "Apache::DBI" > (perhaps you forgot to load "Apache::DBI"?) > > I do have > LoadModule perl_module libexec/apache2/mod_perl.so > PerlModule Apache::DBI > in my httpd.conf file. I'm pretty new to perl and have no idea what > I've done wrong. Any help would greatly be appreciated. If you need > more info from me, don't hesitate to ask. Maybe you should inspect the Perl script you're trying to run, and you should look for the following Perl statement: use Apache::DBI; I think it's also good to read the documentation for the Apache::DBI module in CPAN: http://search.cpan.org/~pgollucci/Apache-DBI-0.9901/DBI.pm You could also try to add PerlModule Apache::DBI # this comes before all other modules using DBI to start.pl. You should pay attention to the comment!!! THIS MODULE SHOULD BE LOADED BEFORE ALL OTHER MODULES USING DBI. What can you do next if you had configured everything correctly and the Perl scripts are OK? Maybe you just dont't have the Apache::DBI module installed on your machine, and you should download it and install it then: % perl -MCPAN -e "shell" install Apache::DBI Best Regards, CASIUS