Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Hacking Packages

by Kevin_Raymer
on Jul 09, 2007 at 17:30 UTC ( #625662=perlquestion: print w/ replies, xml ) Need Help??
Kevin_Raymer has asked for the wisdom of the Perl Monks concerning the following question:

Okay I am faced with a problem I can't seem to work through...I am trying to make my packages "clickable" so I can install them before running the script. My editor doesn't allow me to click on them. Here's where it gets tech - I run the script and get this error.....

Can't locate Sub/Multi.pm in @INC (@INC contains: /usr/lib64/perl5/5.8 +.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/si +te_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5. +8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64 +-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thr +ead-multi /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi +/usr/lib64/perl5/site_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/p +erl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/si +te_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl +/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/l +ib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/per +l5/vendor_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendo +r_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5 +.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.1/x86 +_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.0/x86_64-linu +x-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor +_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_pe +rl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/ +5.8.0 /usr/lib/perl5/vendor_perl .) at ./test line 5.

So basically my problem is that I cannot click on the packages to install them hence the script fails.

Thanks for any help you can give me. I think I formatted my write up correctly.

KEVIN RAYMER SENIOR PROGRAMMER

Comment on Hacking Packages
Download Code
Re: Hacking Packages
by talexb (Canon) on Jul 09, 2007 at 19:03 UTC

    Your formatting was OK -- it was between code tags -- but think about how readable it is. Not very. Something like this would have been better, I think:

    Can't locate Sub/Multi.pm in @INC (@INC contains: /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5. 8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./test line 5.
    So you need to install Sub::Multi, right?

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Re: Hacking Packages
by Anonymous Monk on Jul 10, 2007 at 08:43 UTC
    Perl is not in charge of clicking
      Perl is not in charge of clicking
      However, one can use the click() method provided by WWW::Mechanize.
      my $perl = WWW::Mechanize->new; $perl->get($something_interesting_from_the_net); $perl->click;
      Now, whether the clicking works or not, is another matter ;-)

      Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Re: Hacking Packages
by blazar (Canon) on Jul 10, 2007 at 10:14 UTC
    I am trying to make my packages "clickable" so I can install them before running the script.

    In which sense "clickable"? Generally packages are not "cliackable" and this does not have anything to do with installation. Which Perl distro are you using? Under which OS? You may set up a file association thingie for Perl packages to work on click under some file manager thingie and do something useful, but I've never heard anyone having such a need nor do I see it as a particularly useful "feature".

    Also, you say "my packages", but the one that appears to be missing is a CPAN one, namely Sub::Multi (unless you rewrote it yourself) thus you'd better install it by means of your distro's specific package management tool, most probably either CPAN.pm or ppm.

    My editor doesn't allow me to click on them.

    I have no notion of how an editor would allow one to click on a package. What do you mean exactly?

    So basically my problem is that I cannot click on the packages to install them hence the script fails.

    XY problem I guess: check the tutorials for Modules: How to Create, Install, and Use.

Re: Hacking Packages
by b10m (Vicar) on Jul 11, 2007 at 13:49 UTC

    You can always use lib if you installed the package at a "weird" location:

    use lib '/path/to/where/ever/you/installed/the/module';
    --
    b10m

    All code is usually tested, but rarely trusted.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-08-22 03:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (146 votes), past polls