Thank you, Jonathon and Dan I did a find to find any copies of OpenSRF.pm anywhere on the system. Other than the src directories, the only copy is in /usr/local/share/perl/5.10.1/OpenSRF.pm. And the version there is 2.0.0
The results of perl -MOpenSRF -e 'print $OpenSRF::VERSION . "\n"' where 2.00 also. So at this point, I would say it's OpenSRF 2.0.0. I would be glad to add a feature request for an opensrf.version method as you suggest. Regards, June -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dan Scott Sent: Friday, July 22, 2011 4:19 PM To: Evergreen Development Discussion List Subject: Re: [OPEN-ILS-DEV] How to verify what version of OpenSRF is running? On Fri, Jul 22, 2011 at 3:35 PM, Jonathon Scott <[email protected]> wrote: > Does the version number being reported in OpenSRF.pm (the @INC'd one > for the version of perl that the opensrf user is running) always > report the current OpenSRF version? > > like : > > grep Version `perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e > 'find { wanted => sub { print canonpath $_ if /OpenSRF\.pm\z/ > },no_chdir => 1 }, @INC' 2>/dev/null` > > = best guess magic spell You could check the version number of the Perl module directly: perl -MOpenSRF -e 'print $OpenSRF::VERSION . "\n"' But that's not an absolute guarantee that that's the version of OpenSRF that is currently running, which is what June was looking for. You might have an ancient version in /openils/lib/perl5 or some other non-standard PERL5LIB directory. Long story short: there appears to be no OpenSRF method paralleling Evergreen's opensrf.open-ils.system.ils_version method that enables you to check the OpenSRF version of a running system. I think we could use a feature request to have an opensrf.version method added for that purpose. > On Fri, Jul 22, 2011 at 8:19 AM, Rayner, June <[email protected]> wrote: >> >> Hi Folks >> >> >> >> I just upgraded OpenSRF from 1.6 to 2.0. I followed the >> instructions and everything went as expected, but I want to verify >> that it’s 2.0 that’s running now. I see a random magic spell to >> verify the version of Evergreen, but I can’t find anything for >> OpenSRF. Is there a way to do that? >> >> >> >> Thanks! >> >> >> >> June Rayner >> >> ILS Application Team >> >> (412) 622-1941 >> >> [email protected] >> >> >
