p5-dbd-mysql make: *** No rule to make target `lib/DBD/mysql/GetInfo.pm', needed by `pm_to_blib'. Stop.

Ryan Schmidt ryandesign at macports.org
Fri Jan 8 01:39:06 PST 2010


On Jan 8, 2010, at 01:59, John Cumbers wrote:

> On Tue, Jan 5, 2010 at 12:40 AM, Ryan Schmidt wrote:
> 
>> What does @INC contain? What does "port contents p5-dbd-mysql" say?
> 
> port contents p5-dbd-mysql shows this:
> 
> Port p5-dbd-mysql contains:
>   /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/DBD/mysql/.packlist
>   /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/DBD/mysql/mysql.bs
>   /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/DBD/mysql/mysql.bundle
>   /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/Bundle/DBD/mysql.pm
>   /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/DBD/mysql/GetInfo.pm
>   /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/DBD/mysql/INSTALL.pod
>   /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/DBD/mysql.pm
>   /opt/local/share/man/man3/Bundle::DBD::mysql.3pm.gz
>   /opt/local/share/man/man3/DBD::mysql.3pm.gz
>   /opt/local/share/man/man3/DBD::mysql::INSTALL.3pm.gz
> 
> and the full error message, showing @INC contents is here: 
> 
> TI/Cleanup\ At\ Startup/XML_to_MySQL.2.0.test-284367500.766.pl.command ; exit;
> install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /Users/johncumbers/Documents/7 Scripts/Perl/XML_to_MySQL /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-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 4) line 3.
> Perhaps the DBD::mysql perl module hasn't been fully installed,
> or perhaps the capitalisation of 'mysql' isn't right.
> Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge.
>  at /Users/johncumbers/Documents/7 Scripts/Perl/XML_to_MySQL/XML_to_MySQL.2.0.test.pl line 19
> logout

On my system, MacPorts perl's @INC contains other things than your system displays.

$ perl -e 'require "FOO";'
Can't locate FOO in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level /opt/local/lib/perl5/site_perl/5.8.9 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.9 /opt/local/lib/perl5/vendor_perl /opt/local/lib/perl5/5.8.9/darwin-2level /opt/local/lib/perl5/5.8.9 .) at -e line 1.

So I assume your script is not using MacPorts perl. Maybe you need to inform your perl script to use MacPorts perl instead of Apple's perl (i.e. begin the file with "#!/opt/local/bin/perl" instead of, say, "#!/usr/bin/perl" or "#!/usr/bin/env perl"). Or, manually specify the include path in the script.





More information about the macports-users mailing list