Hi Martin, On Tue, 02 Dec 2014 11:45:58 -0600 "Martin G. McCormick" <mar...@server1.shellworld.net> wrote:
> We run some FreeBSD systems using FreeBSD9.1 and 9.3 and > the response to perl -version is: > > This is perl 5, version 18, subversion 4 (v5.18.4) built for > amd64-freebsd-thread-multi > > On December 1 of 2014, we were alerted to the fact that > some perl scripts were no longer working. The complaint was > about Net::DNS on one system and Warnings::Unused on another > system and expect.pm on yet another system. > I used cpanp -i to install all the needed modules with > no trouble at all and all the scripts came back to life. > > I am not complaining at all but curious as to what > mechanism caused older modules to basically expire and need to > be replaced. There could be several reasons: 1. The @INC of the installed module was perl-version-specific. E.g in my perl -V: /usr/lib/perl5/site_perl/5.20.1 /usr/lib/perl5/site_perl/5.20.1/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.20.0 /usr/lib/perl5/site_perl/5.20.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/site_perl/5.18.1 /usr/lib/perl5/site_perl/5.18.0 /usr/lib/perl5/site_perl/5.16.3 /usr/lib/perl5/site_perl/5.16.3 /usr/lib/perl5/site_perl/5.16.2 /usr/lib/perl5/site_perl/5.16.2 /usr/lib/perl5/site_perl/5.16.1 /usr/lib/perl5/site_perl/5.16.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.20.1 /usr/lib/perl5/vendor_perl/5.20.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.20.0 /usr/lib/perl5/vendor_perl/5.20.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.1 /usr/lib/perl5/vendor_perl/5.18.0 /usr/lib/perl5/vendor_perl/5.16.3 /usr/lib/perl5/vendor_perl/5.16.3 /usr/lib/perl5/vendor_perl/5.16.2 /usr/lib/perl5/vendor_perl/5.16.2 /usr/lib/perl5/vendor_perl/5.16.1 /usr/lib/perl5/vendor_perl/5.16.1 /usr/lib/perl5/vendor_perl/5.16.0 /usr/lib/perl5/vendor_perl/5.16.0 As you can see, some of them are versioned and if the previous versions are not added to the inc of the new perl, the modules installed there won't be available. 2. Sometimes new versions of perl-5.x break the XS API or ABI and can no longer load the shared libraries that are associated with some binary-including modules. 3. Possible other reasons. Regards, Shlomi Fish > > Thank you. > > Martin McCormick > -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Stop Using MSIE - http://www.shlomifish.org/no-ie/ God gave us two eyes and ten fingers so we will type five times as much as we read. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/