ly ended up using "PerlSetEnv PERL5LIB" as per:
http://perl.apache.org/docs/1.0/guide/porting.html#_INC_and_mod_perl
--
Morbus Iff ( i put the demon back in codemonkey )
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005
ct that someone who intends to
>run your code under mod_perl will be able to either add a use lib
>statement to httpd.conf or put your libs in /lib/perl/ which
>is automatically added to @INC. Both of those avoid this issue
That's what I ended up deciding. :)
Thanks for all your help!
-
rowing it into a
BEGIN worked immediately thereafter, but I've not *extensively* tested
it out under mod_perl yet. And yes, I'm attempting under Registry.
--
Morbus Iff ( I'd prefer my past to be multiple choice. )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www
o do this instead:
BEGIN { unshift(@INC, qw(lib extlib)); }
--
Morbus Iff ( take this ming! i'm sick of your dynasty! )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.o
At 7:53 PM -0500 2/19/04, petersm wrote:
>Morbus Iff wrote:
>> So, in my case, it appears that eval'ing the module in the .cgi script
>> is my only solution, based on this bit from the porting guidelines:
>>
>> When running under mod_perl, once the server is up @
At 6:27 PM -0500 2/19/04, Morbus Iff wrote:
>>You are either getting the wrong module name in some cases, or it is not
>>able to read the module file for some reason. Just check $@ for the
>>message and find out.
>
> Can't locate LibDB/DB/MySQL.pm in @INC (@INC con
s I intended,
since the top of all my .cgi scripts include:
use lib 'lib';
use lib 'extlib';
/me heads off to read more.
--
Morbus Iff ( i put the demon back in codemonkey )
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
Spidering Hacks: http://amazon.com/exe
,
a "use the database" call to that process fails because
LibDB::DB::MySQL isn't part of that cache. Refreshing
like mad eventually brings me to a child that has not
previously cached things, and thus, LibDB::DB::MySQL
is loaded and cached.
If that's the case, then I sh
a) the eval fails or it gets cached or whatever, then
b) I'd be returning a blessed object for a module that hasn't
been loaded. *That* could cause the ->connect to not exist,
thus causing my error. Right?
/me searches the mod_perl docs for mentions of eval.
--
Morbus Iff ( i put the d
get the error [1]. From ignorance, this
*can't* be related to globals or caching, right (since it is
reporting the correct package name, and a cache wouldn't
suddenly "remove" a function)? What should I look for?
[1] http://groups.yahoo.com/group/modperl/message/57303
Progr
to poke around with
a little more understanding before I bug you again .
[1] Program fragment delivered error ``Can't locate object
method "connect" via package "LibDB::DB::MySQL".
--
Morbus Iff ( i put the demon back in codemonkey )
Culture: http://www.disobey.com/ and ht
o.com/group/modperl/message/57303
--
Morbus Iff ( i put the demon back in codemonkey )
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005776/disobeycom
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
--
R
problem repeatable, and you will have a hard time
>solving it if you can't come up with a way to repeat it.
Gotcha.
--
Morbus Iff ( i reserve the right to kill you if i get pissed. )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene
>startup. Throw in a log statement where you connect to the database and
>make sure it doesn't happen before you send in a request.
I'm not, but realize that it's never getting to the actual database
connection: instead, it's telling me that the ->connect routine
doe
.
* You're starting a new project under mod_perl.
What would your starting configuration look like,
recognizing the PerlRun and Registry are "horrible hacks"?
--
Morbus Iff ( i put the demon back in codemonkey )
Culture: http://www.disobey.com/ and http://www.gamegrene.com
onfirm children caching?
What would I learn from confirming or denying the behavior
under -X?
Thanks for the reply.
--
Morbus Iff ( i put the demon back in codemonkey )
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
Spidering Hacks: http://amazon.com/exec/obidos/ASIN/059600577
s. Why it can't be
found perplexes me: enough reloads later, and database access
is working just fine. This doesn't sound like caching whatsoever.
Any ideas? I'm stymied.
--
Morbus Iff ( i put the demon back in codemonkey )
Culture: http://www.disobey.com/ and http://www.gamegren
17 matches
Mail list logo