I don't use DBI::Gofer, but according to cpan
DBI::Gofer::Transport::mod_perl is in a different package (not DBI). Try
installing "GoferTransport-http".

Hendrik

> Tim Bunce escribío:
>> On Mon, Jul 28, 2008 at 07:11:04AM -0500, Brian Millett wrote:
>>> I've looked at the DBI::Gofer::Transport::mod_perl to setup a
>>> connection
>>> pooling server, but to be honest, I just can not grok it.  How is it
>>> setup?
>>
>> The docs could certainly use some expansion to 'connect the dots'.
>>
>>>  So my question is has anyone set it up?
>>
>> Er, yes, me! :)
>>
>>> How, or what are the
>>> configuration files.  In the cpan docs, it has
>>>
>>> http://search.cpan.org/~timb/GoferTransport-http-1.015/lib/DBI/Gofer/Transport/mod_perl.pm
>>>
>>> add_configurations
>>>
>>>   DBI::Gofer::Transport::mod_perl->add_configurations( \%hash_of_hashes
>>> );
>>>
>>> Takes a reference to a hash containing gofer configuration names and
>>> their
>>> corresponding configuration details.
>>>
>>> What configurations??  The reference is vague.
>>
>> These:
>> http://search.cpan.org/~timb/DBI/lib/DBI/Gofer/Execute.pm#CONFIGURATION
>>
>> For simple cases you don't need any configuration.
>>
>>> Any pointers on how to setup a simple stateless proxy with
>>> DBI::Gofer::mod_perl would be nice.
>>
>> The docs say:
>>
>> ---snip---
>> The most simple configuration looks like:
>>
>>     <Location /gofer>
>>         SetHandler perl-script
>>         PerlHandler DBI::Gofer::Transport::mod_perl
>>     </Location>
>> ---snip---
>>
>> did you try that?
>>
>
> Yes I did and got an error:
>
> [Sun Jul 27 18:21:46 2008] [error] [client 127.0.0.1] failed to resolve
> handler
> `DBI::Gofer::Transport::mod_perl': Can't locate
> DBI/Gofer/Transport/mod_perl.pm in @INC
> (@INC contains: /home/bpm/development/modperl/_Inline/lib
> /home/bpm/development/modperl/_Inline/lib /home/bpm/development/modperl
> /home/bpm/development/perl/DBI
> /usr/lib/perl5/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.10.0 .
> /etc/httpd) at (eval 22) line 3.\n
>
>
> I'm using fedora 9 with perl-DBI-1.601-4.fc9.
>
> The DBI::Gofer::Transport::mod_perl does not seem to be installed.
>
> [bpm]$ rpm -ql perl-DBI-1.601-4.fc9.i386 | grep Gofer
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer/Policy
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer/Policy/Base.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer/Policy/classic.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer/Policy/pedantic.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer/Policy/rush.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer/Transport
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer/Transport/Base.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer/Transport/null.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer/Transport/pipeone.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/Gofer/Transport/stream.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Execute.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Request.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Response.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Serializer
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Serializer/Base.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Serializer/DataDumper.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Serializer/Storable.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Transport
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Transport/Base.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Transport/pipeone.pm
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBI/Gofer/Transport/stream.pm
> /usr/share/man/man3/DBD::Gofer.3pm.gz
> /usr/share/man/man3/DBD::Gofer::Policy::Base.3pm.gz
> /usr/share/man/man3/DBD::Gofer::Policy::classic.3pm.gz
> /usr/share/man/man3/DBD::Gofer::Policy::pedantic.3pm.gz
> /usr/share/man/man3/DBD::Gofer::Policy::rush.3pm.gz
> /usr/share/man/man3/DBD::Gofer::Transport::Base.3pm.gz
> /usr/share/man/man3/DBD::Gofer::Transport::null.3pm.gz
> /usr/share/man/man3/DBD::Gofer::Transport::pipeone.3pm.gz
> /usr/share/man/man3/DBD::Gofer::Transport::stream.3pm.gz
> /usr/share/man/man3/DBI::Gofer::Execute.3pm.gz
> /usr/share/man/man3/DBI::Gofer::Request.3pm.gz
> /usr/share/man/man3/DBI::Gofer::Response.3pm.gz
> /usr/share/man/man3/DBI::Gofer::Serializer::Base.3pm.gz
> /usr/share/man/man3/DBI::Gofer::Serializer::DataDumper.3pm.gz
> /usr/share/man/man3/DBI::Gofer::Serializer::Storable.3pm.gz
> /usr/share/man/man3/DBI::Gofer::Transport::Base.3pm.gz
> /usr/share/man/man3/DBI::Gofer::Transport::pipeone.3pm.gz
> /usr/share/man/man3/DBI::Gofer::Transport::stream.3pm.gz
>
>
> --
> Brian Millett - [ Elric and Sheridan, "The Geometry of Shadows"]
> "We are dreamers, shapers, singers, and makers. We study the mysteries
>      of laser and circuit, crystal and scanner, holographic demons and
>      invocations of equations. These are the tools we employ, and we know
>      many things."
> 'Such as?'
> "The true secrets. The important things. Fourteen words to make someone
> fall
>      in love with you forever, seven words to make them go without pain,
> how
>      to say good-bye to a friend who is dying, how to be poor, how to be
>      rich, how to rediscover dreams when the world has stolen them from
> you.
>
>
>


Reply via email to