To install DBD::mysql, first start the MySQL server. In the future, I may try W3C-LinkChecker, URI, CSS::DOM, HTML-Parser, Time-HiRes but some of these got errors in the past.GeoIP2::Database::Reader - errors in Perl 5.30, 5.34 fixed.MaxMind::DB::Reader::XS - had to force this one too for Mojave.News::NNTPClient - set shell environment variable NNTPSERVER first.NetAddr::IP - this one failed tests for Mojave, had to force.I made a shell script with a line sudo install THING for all these modules: This was a symptom of not setting PERL5LIB. Next I tried install LWP and this failed with the message "Can't locate object method 'requirements_for_module'". I did install CPAN and reload cpan to upgrade CPAN to the latest version, and this worked. I was then able to install modules from the command line. Say NO and set them yourself.Įxecuting r worked, and showed many modules out of date. ![]() Then CPAN asked if it should choose the best mirror sites for me. You need the full Xcode to find the right libraries and header files.Īfter checking my environment, I did sudo -H cpan.ĬPAN started and asked if I wanted it to set as many default options as possible. It is no longer sufficient to just do xcode-select. Make sure you have the correct version of Xcode for your OS installed. This installation process takes a long time. Make similar links on any Unix systems you use your Perl programs on. When Apple releases an update to the OS, check to make sure that /usr/local/bin/perl is still a link to Perl and fix it if necessary. (On recent versions of macOS, /usr/bin cannot be changed and may not contain a usable Perl.) (Apple ships an old (2013) version 5.18 of Perl, but will stop shipping Perl with the OS in Big Sur.)īefore installing CPAN modules, you need to change your startup environment to point to the new Perl.įor example, the latest version as of 07/26/21 is 5.34.Įxport PERL5LIB=/Users/thvv/bin:/opt/local/lib/perl5/5.34Ĭhange the "shebang" line #!/usr/bin/perl of Perl programs in $HOME/bin so they find the new version of Perl.ĭo this so that these programs won't have to change again, and are portable to other Macs and Unix. Homebrew will require and install a recent version of Perl into /opt/local/bin/perl. Ensure your shell environment exports PERL5LIB and points to the Perl libraries you want CPAN to update. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |