How do we get/install this module?
I read the cpan.org article, but it says:
This module will attempt to search etc directories in /usr/share/publicsuffix, /usr, /usr/local, and /opt/local for the effective_tld_names.dat file. If a file is not found, a default file is loaded from Domain::PublicSuffix::Default, which is current at the time of the module's release. You can override the data file path by giving the new() method a 'data_file' argument.
OK, I installed both in the order you said: brew install perl brew install cpanm
but when I run from a KM Execute Shell Script, I get this:
Can't locate Domain/PublicSuffix.pm in @INC (you may need to install the Domain::PublicSuffix module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /var/folders/hb/6xgg0y8j4g530m81rd1f9mpc0000gn/T/Keyboard-Maestro-Script-51EF52D5-FB9D-48E7-B9B0-BF516C979CFF line 7.
BEGIN failed--compilation aborted at /var/folders/hb/6xgg0y8j4g530m81rd1f9mpc0000gn/T/Keyboard-Maestro-Script-51EF52D5-FB9D-48E7-B9B0-BF516C979CFF line 7.
I'm a total shell script dummy, so I don't have idea what this means, except that it could not find the Domain/PublicSuffix.pm
/Users/Shared/Dropbox/SW/DEV/Projects/[KM] Extract Domain Name/Get-Domain.pl:7: Can't locate Domain/PublicSuffix.pm in @INC (you may need to install the Domain::PublicSuffix module) (@INC contains: /usr/local/Cellar/perl/5.26.0/lib/perl5/site_perl/5.26.0/darwin-thread-multi-2level /usr/local/Cellar/perl/5.26.0/lib/perl5/site_perl/5.26.0 /usr/local/Cellar/perl/5.26.0/lib/perl5/5.26.0/darwin-thread-multi-2level /usr/local/Cellar/perl/5.26.0/lib/perl5/5.26.0 /usr/local/lib/perl5/site_perl/5.26.0)
To install "Domain::PublicSuffix module", do I need to do it from any particular dir?
Last time I did it from my home dir.
iMac-27-JMU:~ jimunderwood$ open -a BBEdit.app .bash_profile
The file /Users/jimunderwood/.bash_profile does not exist.
iMac-27-JMU:~ jimunderwood$ open -a BBEdit.app ~./bashrc
The file /Users/jimunderwood/~./bashrc does not exist.
iMac-27-JMU:~ jimunderwood$ open -a BBEdit.app ~/.bashrc
The file /Users/jimunderwood/.bashrc does not exist.
iMac-27-JMU:~ jimunderwood$ cd ~/
iMac-27-JMU:~ jimunderwood$ open -a BBEdit.app .bashrc
The file /Users/jimunderwood/.bashrc does not exist.
iMac-27-JMU:~ jimunderwood$
Isn't ~/ the same as my home dir, which is jimunderwood$ ?