c has asked for the wisdom of the Perl Monks concerning the following question:

i am using the CPAN module to install mod_perl on a linux box that has apache compiled from src rather than from a redhat rpm. when i run

cpan> install mod_perl

all runs well, however, i get

Can't locate object method "new" via package "URI::URL" (perhaps you forgot to load "URI::URL"?) at ../blib/lib/Apache/ line 252. make: *** run_tests Error 255 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force

however, when i check my file, it seems to be in good shape and has "new" defined accurately. it also appears that is up to date and current

cpan> install URI::URL
URI::URL is up to date.

any thoughts on how to see just why this isnt seeing the method from thanks -c

  • Comment on Installing mod_perl complains about URI::URL missing method

Replies are listed 'Best First'.
Re: Installing mod_perl complains about URI::URL missing method (URI not URI::URL)
by ybiC (Prior) on May 19, 2002 at 02:37 UTC

    I recently encountered this very same issue, and got good advice from the brethren.

    As brother Fletch suggested,
    my $url  = new URI($site);
    in my code instead of
    my $url  = new URI::URL($site);
    did the trick for me, and seemed to be the cleanest solution.
        striving toward Perl Adept
        (it's pronounced "why-bick")