Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Strawberry cpan install modules

by Anonymous Monk
on Aug 30, 2014 at 17:59 UTC ( [id://1099080]=perlquestion: print w/replies, xml ) Need Help??

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

I use Strawberry Perl (Portable) and I'd like to install some extra modules from CPAN. I just use the command "cpan MODULE NAME", and it works fine. But por some modules, I get an error message saying the module is unknown.

This happens for example with Tk::SplitFrame which is surely in Cpan

Why it is so?

Replies are listed 'Best First'.
Re: Strawberry cpan install modules
by Anonymous Monk on Aug 31, 2014 at 02:09 UTC
Re: Strawberry cpan install modules
by Anonymous Monk on Aug 30, 2014 at 18:13 UTC

    cpan installs (if I am not mistaken) the distribution that a module is part of. If direct module installation fails, do do a search as i /Tk::SplitFrame/ within cpan client, or search on (meta|search.)cpan.org. Apparently that module is installed by Tk-DKW distribution.

      Thank you for your answer. I thought about it, and I tried it. But no results. WARNING: cannot install Tk::DKW, don't know what it is...

        Horrible! Makefile.PL sets the name "Tk", while also requiring 'Tk' => '800.005'. So I doubt without chanting perl Makefile.PL && make && make install yourself, you would be able to install it.

        I would be happy to be corrected.

Re: Strawberry cpan install modules
by f77coder (Beadle) on Aug 31, 2014 at 02:10 UTC

    Do you already have Tk installed?

      Good point. With Tk already installed, Tk::SplitFrame installed for me with no problems:

      13:58 >p5u v Tk Tk::SplitFrame Tk C:\Perl\Strawberry\strawberry-perl-5.20.0.1-64bit-PDL\perl\sit +e\lib\Tk.pm: 804.032 Tk::SplitFrame Not found 14:20 >cpanm Tk::SplitFrame --> Working on Tk::SplitFrame Fetching http://www.cpan.org/authors/id/D/DK/DKWILSON/Tk-DKW-0.02.tar. +gz ... OK Configuring Tk-DKW-0.02 ... OK ==> Found dependencies: Tk::TiedListbox --> Working on Tk::TiedListbox Fetching http://www.cpan.org/authors/id/A/AC/ACH/Tk-Contrib-0.07.tar.g +z ... OK Configuring Tk-Contrib-0.07 ... OK Building and testing Tk-Contrib-0.07 ... OK Successfully installed Tk-Contrib-0.07 Building and testing Tk-DKW-0.02 ... OK Successfully installed Tk-DKW-0.02 2 distributions installed 14:21 >p5u v Tk Tk::SplitFrame Tk C:\Perl\Strawberry\strawberry-perl-5.20.0.1-64bit-PDL\perl\sit +e\lib\Tk.pm: 804.032 Tk::SplitFrame C:\Perl\Strawberry\strawberry-perl-5.20.0.1-64bit-PDL\perl\sit +e\lib\Tk\SplitFrame.pm: 1.01 14:22 >

      I’m also using Strawberry Perl portable (on Windows 8.1, 64-bit):

      14:27 >perl -v This is perl 5, version 20, subversion 0 (v5.20.0) built for MSWin32-x +64-multi-thread

      Hope that helps,

      Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found