DBD::mysql still a requirement in ./check-dependencies.sh #267

Open
opened 2025-07-15 18:03:07 +00:00 by ken_fallon · 0 comments
Owner

We don't need DBD/mysql.pm any more

$ find -type f -exec grep -il mysql {} \; | grep [snip]
./utils/check-dependencies.sh
./utils/lib_utils.sh
./utils/mysql2sqlite
./utils/update-hpr-db.sh
./GETTING_STARTED.md
./README.md
./site-generator

$ ./check-dependencies.sh
The following modules must be installed for the site-generator to function: 
* Getopt::Long
* Pod::Usage
* Config::Std
* Template
* Template::Plugin::File
* Template::Plugin::DBI
* Template::Plugin::HTML::Strip
* DBI
* Tie::DBI
* DBD::SQLite

1. * DBD::mysql

* Date::Calc
* Text::CSV_XS
When MySQL is used, the DBD:mysql module is required (otherwise it is optional)
When SQLite is used, then the DBD:SQLite module is required (otherwise it is optional)
Scanning for modules ...
----------------------
Found module Getopt::Long
----------------------
Found module Pod::Usage
----------------------
Found module Config::Std
----------------------
Found module Template
----------------------
Found module Template::Plugin::File
----------------------
Found module Template::Plugin::DBI
----------------------
Found module Template::Plugin::HTML::Strip
----------------------
Found module DBI
----------------------
Found module Tie::DBI
----------------------
Found module DBD::SQLite
----------------------
Can't locate DBD/mysql.pm in @INC (you may need to install the DBD::mysql module) (@INC entries checked: /usr/local/lib64/perl5/5.40 /usr/local/share/perl5/5.40 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
----------------------
Found module Date::Calc
----------------------
Found module Text::CSV_XS
----------------------
Finished scanning.
We don't need DBD/mysql.pm any more ``` $ find -type f -exec grep -il mysql {} \; | grep [snip] ./utils/check-dependencies.sh ./utils/lib_utils.sh ./utils/mysql2sqlite ./utils/update-hpr-db.sh ./GETTING_STARTED.md ./README.md ./site-generator $ ./check-dependencies.sh The following modules must be installed for the site-generator to function: * Getopt::Long * Pod::Usage * Config::Std * Template * Template::Plugin::File * Template::Plugin::DBI * Template::Plugin::HTML::Strip * DBI * Tie::DBI * DBD::SQLite 1. * DBD::mysql * Date::Calc * Text::CSV_XS When MySQL is used, the DBD:mysql module is required (otherwise it is optional) When SQLite is used, then the DBD:SQLite module is required (otherwise it is optional) Scanning for modules ... ---------------------- Found module Getopt::Long ---------------------- Found module Pod::Usage ---------------------- Found module Config::Std ---------------------- Found module Template ---------------------- Found module Template::Plugin::File ---------------------- Found module Template::Plugin::DBI ---------------------- Found module Template::Plugin::HTML::Strip ---------------------- Found module DBI ---------------------- Found module Tie::DBI ---------------------- Found module DBD::SQLite ---------------------- Can't locate DBD/mysql.pm in @INC (you may need to install the DBD::mysql module) (@INC entries checked: /usr/local/lib64/perl5/5.40 /usr/local/share/perl5/5.40 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at -e line 1. BEGIN failed--compilation aborted at -e line 1. ---------------------- Found module Date::Calc ---------------------- Found module Text::CSV_XS ---------------------- Finished scanning. ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: HPR/hpr_generator#267
No description provided.