Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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/test.pm 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 URL.pm file, it seems to be in good shape and has "new" defined accurately. it also appears that URL.pm 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 URL.pm? 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.
        cheers,
        Don
        striving toward Perl Adept
        (it's pronounced "why-bick")

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2021-06-23 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (122 votes). Check out past polls.

    Notices?