Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Installing mod_perl complains about URI::URL missing method

by c (Hermit)
on May 18, 2002 at 23:55 UTC ( #167580=perlquestion: print w/replies, xml ) Need Help??

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")

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://167580]
Approved by giulienk
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2023-02-04 22:55 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (31 votes). Check out past polls.