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

CPANP (CPAN Plus) failing?

by HelenCr (Monk)
on Mar 04, 2013 at 14:00 UTC ( #1021646=perlquestion: print w/ replies, xml ) Need Help??
HelenCr has asked for the wisdom of the Perl Monks concerning the following question:

Dear esteemed Monks

I an running Strawberry Perl 5.14.2 on severl PC's (on Windows). On two of them (one running XP SP3, the other Win7 64b) CPANP works fine, and usually, I install a module this way (assume the module is called: "ModuleX"):

cpanp CPAN Terminal>m ModuleX CPAN Terminal>i 5

(in case the second command resulted in a list where ModuleX was number 5).

The problem is, after installing Strawberry Perl on yet another Win7 PC, when going:

CPAN ternimal>m ModuleX

It returns with the following error:

CPAN Terminal> m ModuleX [ERROR] DBI connect('dbname=D:\MyPrograms\Technical\Perl\Dwimperl\cpan +plus\db.sql','',...) failed: unable to open database file at :/MyPrograms/Technical/Perl/Dwimperl/p +erl/lib/CPANPLUS/Internals/Source/SQLite.pm line 48

Notes: 1. I did run the console with administrator prvileges;

2. The file db.sql is indeed not there.

What to do?

Many TIA - Helen

Comment on CPANP (CPAN Plus) failing?
Select or Download Code
Re: CPANP (CPAN Plus) failing?
by marto (Chancellor) on Mar 04, 2013 at 14:11 UTC
Re: CPANP (CPAN Plus) failing?
by Corion (Pope) on Mar 04, 2013 at 14:13 UTC

    Note that the referenced directory from the error message mentions Dwimperl while you claim to use Strawberry Perl. The two are not the same.

    If you eliminated Dwimperl from your machine, this may be a symptom of some configuration files having been left around with misleading entries. If so, hunt them down and delete them or alternatively reconfigure cpanp to use the appropriate configuration values.

      Corion: indeed, that PC has two different installations of Perl.

      So, should I go:

      perl -MCPANPLUS::Configure::Setup -e 'CPANPLUS::Configure::Setup->init()'

      like it says here?: http://cpanplus.sourceforge.net/faq.html#r

      Many TIA - Helen

        I wouldn't know. I don't use cpanplus. But if their FAQ suggests it, I would investigate that way of solving things.

        I suggest you stick to using one Perl distribution to avoid confusion. Different distros have different modules packaged. Recently this problem. Note that both Strawberry Perl and DWIM perl have a C compiler. Consider thoroughly reading the docuemntation for modules before attempting to install them, or their prerequisites.

Re: CPANP (CPAN Plus) failing?
by Anonymous Monk on Mar 04, 2013 at 22:44 UTC

    What to do?

    Upgrade

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-04-19 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls