Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Installing modules

by frozenwithjoy (Priest)
on Jun 17, 2013 at 23:40 UTC ( [id://1039487]=note: print w/replies, xml ) Need Help??


in reply to Installing modules

I don't use windows, but on OS X or Linux, I'd write DBD::JDBC, not DBD-JDBC. Does Windows really require you to use a hyphen instead of double colons when installing modules?

Replies are listed 'Best First'.
Re^2: Installing modules
by zork42 (Monk) on Jun 18, 2013 at 02:13 UTC
    My understanding is that ActiveState's Active Perl 'ppm' installs CPAN modules that have been built/compiled by ActiveState. These compiled modules are stored in a special format in "repositories" which only work with Active Perl. This makes installing modules in Active Perl very easy. However not all CPAN modules are available.

    See:
    http://www.activestate.com/activeperl/ppm-perl-modules - some info about PPM & PPM Index
    http://code.activestate.com/ppm/ - PPM Index: lets you search to see if a specific CPAN module is available via ppm
    http://code.activestate.com/ppm/DBD-JDBC/ - indicates that "DBD-JDBC is unavailable in PPM, because there aren't any builds for it in the package repositories." ie all builds failed as indicated by the red icons.

    I don't see it in the list when running ppm, and "ppm install DBD-JDBC" doesn't find it.

    Explained by 3rd link above.

    I tried adding cpan to the repository list in ppm (http://www.cpan.org) but zero modules are added.

    Thats because CPAN does not provide a repository. CPAN provides modules in the form of source code for all platforms (but you have to build them), while repositories are provide a subset of CPAN's modules pre-built/compiled by ActiveState specifically for Active Perl.

    I'm afraid I don't know about the "authorization required" error.

    See this for some links that might be useful: Perl upgrade JComboBox alternative

    UPDATE: s/are/provide/
      (post moved down to end of comments. I clicked the wrong 'reply' link. Oops!)
Re^2: Installing modules
by dasgar (Priest) on Jun 18, 2013 at 01:37 UTC

    The PPM utility is trying install from .ppd files. In this case, the DBD::JDBC would have a file name of DBD-JDBC.ppd and the PPM utility would be referring to the module as DBD-JDBC (if I remember correctly). In Windows, you can't use the colon as part of a file or folder name.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found