Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Cant locate DBD/CSV on Mac OS X

by mikasue (Friar)
on Nov 06, 2011 at 16:45 UTC ( #936304=perlquestion: print w/replies, xml ) Need Help??
mikasue has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone please help me with this error. I am trying to compile a Perl program and have installed these modules but they still can't be find.

install_driver(CSV) failed: Can't locate DBD/ in @INC (@INC cont +ains: /Users/admin/Documents/Development/myprogram /Users/admin/Docum +ents/Development/myprogram/.. /Users/admin/Documents/Development/mypr +ogram/uifiles/ /Users/admin/Documents/Development/.metadata/.plugins/ +org.epic.debug /Library/Perl/Updates/5.10.0/darwin-thread-multi-2leve +l /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thr +ead-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/dar +win-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5. +10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network +/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi- +2level /System/Library/Perl/Extras/5.10.0 .) at (eval 12) line 3. Perhaps the DBD::CSV perl module hasn't been fully installed, or perhaps the capitalisation of 'CSV' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge. at /

I tried copying the modules to a local directory but Text/ has dependancies and that just didnt' work.I am sure there is a way to make my program recognize these modules in the perl directory on Mac OS X. Path set to (/usr/local/ActivePerl5.12/)

Replies are listed 'Best First'.
Re: Cant locate DBD/CSV on Mac OS X
by Plankton (Vicar) on Nov 06, 2011 at 17:05 UTC
    How did you try and install DBD::CSV? Did you do something like this ...
    $ perl -MCPAN -eshell cpan> install DBD::CSV
    ... if so did it install successfully? If DBD::CSV requires 'make' then you may have to join the developers group ( so you can get a copy of the 'make' command.
      I use the ppm gui.
        Hello Mikasue I also recommend to try the cpan shell to install modules also to find your modules. You can set the local directory path to install your modules and he recognizes automatically the dependencies. If you have installed the module and @INC does not find that path, you can set it with: perl -i /your/local/dir/to/modules/ or in your script: use lib '/your/local/dir/to/modules/';
        Ah I see you are using ActiveState Perl. I haven't used ActiveState Perl on Mac OS X. I ask just out of curiosity, is there a reason you are using ActiveState Perl?
Re: Cant locate DBD/CSV on Mac OS X
by onelesd (Pilgrim) on Nov 06, 2011 at 19:14 UTC
    You might want to try App::perlbrew. It makes managing different Perl installs and related modules a breeze.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://936304]
Approved by McDarren
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2018-05-23 05:52 GMT
Find Nodes?
    Voting Booth?