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/ 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

Replies are listed 'Best First'.
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?:

      Many TIA - Helen

        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.

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

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

    What to do?