perl modules

Christopher Chavez chrischavez at
Thu May 23 16:42:31 UTC 2019

> On May 23, 2019, at 8:32 AM, Bill Cole <macportsusers-20171215 at> wrote:
> On 23 May 2019, at 8:26, jam at wrote:
>> Ryan answered someone asking how to install modules. I read but am confused.
>> Help please:
>> [haycorn] /Users/jam/DEVEL [612]% sudo port install p5-dbd-mysql
>> --->  Computing dependencies for p5-dbd-mysql
>> --->  Cleaning p5-dbd-mysql
>> --->  Scanning binaries for linking errors
>> --->  No broken files found.
>> --->  No broken ports found.
>> [haycorn] /Users/jam/DEVEL [613]% perl -e "use dbd::mysql"
>> Can't locate dbd/ in @INC (you may need to install the dbd::mysql module) (@INC contains: /opt/local/lib/perl5/site_perl/5.28/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.28 /opt/local/lib/perl5/vendor_perl/5.28/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.28 /opt/local/lib/perl5/5.28/darwin-thread-multi-2level /opt/local/lib/perl5/5.28) at -e line 1.
>> BEGIN failed--compilation aborted at -e line 1.
> Perl is always case-sensitive. "use DBD::mysql" should work for you.

Another thing is to check which versions of Perl the `perl` command corresponds to and whether that matches the version the module is installed for. p5-dbd-mysql currently implies installing p5.28-dbd-mysql, so it should work for perl5.28. If still using perl5.26, then p5.26-dbd-mysql would need to be manually requested if not already present.

More information about the macports-users mailing list