Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: New to the whole BINARIES-thingy

by MZSanford (Curate)
on Feb 07, 2002 at 08:49 UTC ( #143817=note: print w/ replies, xml ) Need Help??


in reply to New to the whole BINARIES-thingy

If you are on windows, and are using ActiveState perl, and have ppm, then this is much easier. you simply use the command :

C:\WINDOWS>ppm install DBD::MySql
Now, DBD::MySql does require DBI, so you may also have to do ppm install DBI first. I did this on my pc, with no prior mysql installs, and it looked like this :
C:\WINDOWS>ppm install DBD::MySql Installing package 'DBD-MySql'... Bytes transferred: 126147 Installing C:\Perl\site\lib\auto\DBD\mysql\mysql.bs Installing C:\Perl\site\lib\auto\DBD\mysql\mysql.dll Installing C:\Perl\site\lib\auto\DBD\mysql\mysql.exp Installing C:\Perl\site\lib\auto\DBD\mysql\mysql.lib Installing C:\Perl\html\site\lib\Mysql.html Installing C:\Perl\html\site\lib\Bundle\DBD\mysql.html Installing C:\Perl\html\site\lib\DBD\mysql.html Installing C:\Perl\site\lib\Mysql.pm Installing C:\Perl\site\lib\Mysql\Statement.pm Installing C:\Perl\site\lib\DBD\mysql.pm Installing C:\Perl\site\lib\Bundle\DBD\mysql.pm Installing C:\Perl\bin\dbimon Installing C:\Perl\bin\dbimon.bat Writing C:\Perl\site\lib\auto\DBD\Mysql\.packlist C:\WINDOWS>
And, Ta-Da, from the next snippet you can see the library loads fine :
C:\WINDOWS>perl -MDBD::MySql -e 1 C:\WINDOWS>

from the frivolous to the serious


Comment on Re: New to the whole BINARIES-thingy
Select or Download Code
Replies are listed 'Best First'.
Re: Re: New to the whole BINARIES-thingy
by S_Shrum (Pilgrim) on Feb 07, 2002 at 08:59 UTC

    That's what I thought...but here's what I get:

    PPM - Programmer's Package Manager version 3.0 beta 2. Copyright (c) 2001 ActiveState SRL. All Rights Reserved. Entering interactive shell. Using Term::ReadLine::Stub as readline lib +rary. Profile tracking is not enabled. If you save and restore profiles manu +ally, your profile may be out of sync with your computer. See 'help profile' + for more information. Type 'help' to get started. ppm> install DBD::MySql Error: Package 'DBD::MySql' not found. Please 'search' for it first. ppm>

    Any ideas?

    ======================
    Sean Shrum
    http://www.shrum.net

      The module name is DBD::mysql, lowercase 'mysql'.

      After Compline,
      Zaxo

        Wish that was the case. I have installed various other modules today with various case (mostly all lowercase) and haven't seen a problem there.

        After doing a search, it appears that the dbd::mysql module isn't even listed. As for not being able to install modules, I provide the following account that shows that I can.

        PPM - Programmer's Package Manager version 3.0 beta 2. Copyright (c) 2001 ActiveState SRL. All Rights Reserved. Entering interactive shell. Using Term::ReadLine::Stub as readline lib +rary. Profile tracking is not enabled. If you save and restore profiles manu +ally, your profile may be out of sync with your computer. See 'help profile' + for more information. Type 'help' to get started. ppm> install DBD::Mysql Error: Package 'DBD::Mysql' not found. Please 'search' for it first. ppm> install DBD::mysql Error: Package 'DBD::mysql' not found. Please 'search' for it first. ppm> install DBD::MYSQL Error: Package 'DBD::MYSQL' not found. Please 'search' for it first. ppm> search dbd Searching in repository 2 (ActiveState Package Repository) 1. DBD-CSV [0.1025] DBI driver for CSV files 2. DBD-DB2 [0.74] DataBase Driver for DB2 UDB 3. DBD-JDBC [0.63] JDBC proxy driver for the DBI module 4. DBD-ODBC [0.28] ODBC Driver for DBI 5. DBD-Oracle [1.06] Oracle database driver for the DBI module 6. DBD-Ovrimos [0.12] DBI Driver for Ovrimos (formerly Altera S +QL Server) 7. DBD-pNET [0.1003] Perl network database driver for the DBI +module 8. DBD-RAM [0.072] a DBI driver for files and data structure +s 9. DBD-Recall [1.8] Database fault tolerance through replicat +ion. 10. DBD-Sprite [0.13] Modified version of Sprite to manipulate +text delimited 11. DBD-SQLrelay [0.1] perl DBI driver for SQL Relay 12. DBD-Sybase [0.91] Sybase database driver for the DBI module 13. DBD-XBase [0.161] Perl module for reading and writing the d +bf files 14. DBI [1.14] Database independent interface for Perl 15. DBIx-AnyDBD [1.98] DBD independant class ppm> install dbd::db2 ==================== Install 'DBD-DB2' version 0.75 in ActivePerl 630. ==================== Downloaded 65356 bytes. Extracting package. This may take a few seconds. Extracting 34/34: blib/lib/DBD/DB2.pod Installing C:\Perl\site\lib\auto\DBD\DB2\DB2.bs Installing C:\Perl\site\lib\auto\DBD\DB2\DB2.dll Installing C:\Perl\site\lib\auto\DBD\DB2\DB2.exp Installing C:\Perl\site\lib\auto\DBD\DB2\DB2.lib Installing C:\Perl\site\lib\auto\DBD\DB2\Constants\Constants.bs Installing C:\Perl\site\lib\auto\DBD\DB2\Constants\Constants.dll Installing C:\Perl\site\lib\auto\DBD\DB2\Constants\Constants.exp Installing C:\Perl\site\lib\auto\DBD\DB2\Constants\Constants.lib Installing C:\Perl\site\lib\DBD\DB2.pm Installing C:\Perl\site\lib\DBD\DB2.pod Installing C:\Perl\site\lib\DBD\DB2\Constants.pm Installing C:\Perl\site\lib\Bundle\DBD\DB2.pm Installing C:\Perl\site\lib\auto\DBD\DB2\Constants\autosplit.ix Writing C:\Perl\site\lib\auto\DBD\DB2\.packlist ppm> install dbd::mysql Error: Package 'dbd::mysql' not found. Please 'search' for it first. ppm>

        Any other ideas? Where can I point the PPM (which (re)suppository) to to get the DBD::Mysql? ;-p

        ======================
        Sean Shrum
        http://www.shrum.net


      Perhaps you are behind a firewall.

      If so, have a look here for information about how to work with that.

      --
      John.

        I just installed other modules with the PPM (eg: dbd::db2) so that's not it.

        ======================
        Sean Shrum
        http://www.shrum.net


      Okay. My second guess. ;-)

      You should try install DBD-MySql, with - instead of ::. It may need to be lowercase as well.

      --
      John.

        No go. After doing a search for 'DBD' I do not see the module listed. I know that it is out there (somewhere; see 1st reply text for other user's DBD::MySql install log).

        What does one do in a situation like this?

        Thanks for all the help so far.

        ======================
        Sean Shrum
        http://www.shrum.net

      Try install DBD-mysql

      I believe that the double colon is changed for a dash to allow the package to be a valid filespec under win32 etc.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2015-07-07 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls