Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Unable to install DBI on WIndows 10

by *alexandre* (Scribe)
on Jan 02, 2023 at 16:00 UTC ( [id://11149291]=perlquestion: print w/replies, xml ) Need Help??

*alexandre* has asked for the wisdom of the Perl Monks concerning the following question:

Hi again, I cannot install anymore DBI related module within Windows 10, I tried within cpan> install TIMB::DBI than ^
cpan> install TIMB CPAN::SQLite not installed, trying to work without Reading 'C:\STRAWB~1\cpan\Metadata' Database was generated on Sun, 01 Jan 2023 22:54:07 GMT Don't be silly, you can't install Tim Bunce ;-) cpan> cpan> install DBI Running install for module 'DBI' TIMB/DBI-1.643.tar.gz Has already been unwrapped into directory C:\STRAWB~1\cpan\build\DBI +-1.643-7 TIMB/DBI-1.643.tar.gz Has already been prepared TIMB/DBI-1.643.tar.gz Could not make: Unknown error
But impossible to install the module.

Replies are listed 'Best First'.
Re: Unable to install DBI on WIndows 10
by syphilis (Archbishop) on Jan 02, 2023 at 23:21 UTC
    I cannot install anymore DBI related module within Windows 10

    Yes, I face a similar problem using the cpan utility on Windows 11. It might even be the very same problem - and it seems to be preventing me from installing all modules.
    I haven't worked out why this is happening, but I've found that using cpanm still works fine, so try running cpanm DBI.
    DBI-1.643 was already installed on my Strawberry Perl build, so I had to use force to get it to re-build and re-install:
    D:\sp\_64\sp-5.32.1>cpanm DBI DBI is up to date. (1.643) D:\sp\_64\sp-5.32.1>cpanm -fi DBI --> Working on DBI Fetching http://www.cpan.org/authors/id/T/TI/TIMB/DBI-1.643.tar.gz ... + OK Configuring DBI-1.643 ... OK Building and testing DBI-1.643 ... OK Successfully reinstalled DBI-1.643 1 distribution installed
    Cheers,
    Rob
      Thanks for your help I putted libmysql__.dll inside the Strawbery lib everything work fine now
Re: Unable to install DBI on WIndows 10
by haj (Vicar) on Jan 02, 2023 at 21:06 UTC
    Erm.... Strawberry Perl comes with DBI already included, in its current version, so there's no good reason to install it. The release notes of Strawberry Perl are really helpful for finding out which CPAN distributions and which external libraries are included. You might want to "Expand" the "List of distributions installed on top of Perl 5.32.1" or the "List of external tools and libraries included in Strawberry Perl" for details. It's amazing!
Re: Unable to install DBI on WIndows 10
by Corion (Patriarch) on Jan 02, 2023 at 16:35 UTC

    Have you set up the PATH environment variable properly such that the gmake tool can be found?

    In a command prompt, type gmake to check whether the tool can be found.

    If it is not found, you will need to set up the PATH environment variable to also add the path to the gmake tool that is distributed with Strawberry Perl. Most likely, something like this will fix it for the current session:

    path C:\Strawb~1\c\bin;%PATH%
Re: Unable to install DBI on WIndows 10
by Polyglot (Chaplain) on Jan 03, 2023 at 13:04 UTC
    This turns out to be the same problem I have been facing and have still not solved. My thread on this question can be seen here: Perl XAMPP DB Connect issue (Windows/Strawberry?).

    I will be watching this thread now to see if any solution appears. The path fixes do not seem sufficient to solve it--there are missing files in the installation, such as "mysqlclient.lib" and a host of extras which must be installed just to try to compile the Makefile.PL.

    Blessings,

    ~Polyglot~

Log In?
Username:
Password:

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

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

    No recent polls found