ThePeePs / DigitalBlasphemy-Downloader

Automatic downloading of new renders from Digital Blasphemy via the RSS feed
GNU General Public License v3.0
4 stars 2 forks source link

Can't locate Config/IniHash.pm in @INC #1

Open ShedPlant opened 6 years ago

ShedPlant commented 6 years ago

Hi, Windows 10, just installed Strawberry Perl 5.26.1.1 64bit.

Ran command to get dependencies. Running command second time seems to show the Packages seem are installed ok:

D:\Installers\Media Players\DigitalBlasphemy-Downloader\trunk>cpan Sys::Hostname::Long Config::IniHash DateTime::Format::Mail HTML::TreeBuilder::XPath Mail::Sender XML::RSS::Parser
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: CPAN::SQLite loaded ok (v0.211)
Database was generated on Thu, 25 Jan 2018 20:10:08 GMT

CPAN: Module::CoreList loaded ok (v5.20170923)
Sys::Hostname::Long is up to date (1.5).
DateTime::Format::Mail is up to date (0.403).
HTML::TreeBuilder::XPath is up to date (0.14).
Mail::Sender is up to date (0.903).
XML::RSS::Parser is up to date (4).
D:\Installers\Media Players\DigitalBlasphemy-Downloader\trunk>cpan Config::IniHash
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: CPAN::SQLite loaded ok (v0.211)
Database was generated on Thu, 25 Jan 2018 20:10:08 GMT

I've configured my .ini file.

However, Perl complains it can't find Config IniHash when I try to run the script. I realise this may not strictly be a problem with your perl script. Still, any idea?

D:\Installers\Media Players\DigitalBlasphemy-Downloader\trunk>perl db-rss-reader.pl
Can't locate Config/IniHash.pm in @INC (you may need to install the Config::IniHash module) (@INC contains: C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib) at db-rss-reader.pl line 5.
BEGIN failed--compilation aborted at db-rss-reader.pl line 5.
m33ts4k0z commented 5 years ago

Hello,

This is quite old post but since I came across the same issue, I will post the solution. You will need to install some additional modules running these commands:

cpan App::cpanminus
cpanm Config::IniHash HTML::TreeBuilder::XPath Mail::Sender

After that you will be able to run the script but you will receive a notification that Mail::Sender is deprecated. Although the script will still run perfectly fine, the dev might want to upgrade the definition to Email::Sender instead for future compatibility.