Multiple Perl Releases

Multiple Perl Releases

am 25.07.2006 17:21:53 von aewhale

In a previous thread, I am attempting to clear a problem with the Perl
Modules in a server which had multiple releases of Perl. To document
this, I offer the following:

cd /usr/lib/perl5
[root@jamaica perl5]# ls
5.8.5/ 5.8.6/ site_perl/ vendor_perl/
[root@jamaica perl5]# ls site_perl
5.8.5/ 5.8.6/
[root@jamaica perl5]# ls vendor_perl/
5.8.1/ 5.8.2/ 5.8.3/ 5.8.4/ 5.8.5/ 5.8.6/

I am not certain about the search characteristics of perl, but I also
offer the following:

[root@jamaica perl5]# which perl
/usr/bin/perl
[root@jamaica perl5]# ll /usr/bin/perl
lrwxrwxrwx 1 root root 5 May 25 16:12 /usr/bin/perl -> perl5*
[root@jamaica perl5]# ll /usr/bin/perl5
lrwxrwxrwx 1 root root 9 May 25 16:12 /usr/bin/perl5 -> perl5.8.6*
[root@jamaica perl5]# ll /usr/bin/perl5.8.6
-rwxr-xr-x 2 root root 10232 Dec 6 2005 /usr/bin/perl5.8.6*


Does this mean that perl ONLY loads the information in perl5, site_perl
and vendor_perl for version 5.8.6?

Can I safely remove any of the other versions?

Any help in clarifying this problem would be appreciated:

Can't locate object method "finish" via package "DBI::db" at
/var/www/html/.ServAdmin/ServerAdministrator.pm line 70.

Can anyone tell me which package is being used?

TIA

--
Albert E. Whale, CHS CISA CISSP
Sr. Security, Network, Risk Assessment and Systems Consultant
------------------------------------------------------------ -------
ABS Computer Technology, Inc. - www.ABS-CompTech.com
SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here.


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Multiple Perl Releases

am 25.07.2006 17:51:13 von Martin MC Brown

On 25 Jul 2006, at 16:21, Albert E. Whale wrote:

>
> In a previous thread, I am attempting to clear a problem with the
> Perl Modules in a server which had multiple releases of Perl. To
> document this, I offer the following:
> ...
> Does this mean that perl ONLY loads the information in perl5,
> site_perl and vendor_perl for version 5.8.6?
>
> Can I safely remove any of the other versions?

The directories searched for modules by Perl depends on how your Perl
was installed. You can always determine the default path by using the
-V command line option to Perl, i.e.:

$ perl -V

The value of @INC is the list of directories searched, and will tell
you what directories are being used and which are being ignored.

> Any help in clarifying this problem would be appreciated:
>
> Can't locate object method "finish" via package "DBI::db" at /var/
> www/html/.ServAdmin/ServerAdministrator.pm line 70.

As previously described in my email to you just a few hours ago, the
finish() method should be used on the statement handler, not the
database handler. The error you are getting above usually means you
are calling the method on the database handler.

MC

--
Martin MC Brown, Technical Writer
MySQL AB, http://www.mysql.com
Skype: mcmcslp



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Multiple Perl Releases

am 25.07.2006 18:11:40 von aewhale

Thank you everyone.

I appreciate your answers.

Have a Great day!

Martin MC Brown wrote:
>
> On 25 Jul 2006, at 16:21, Albert E. Whale wrote:
>
>>
>> In a previous thread, I am attempting to clear a problem with the
>> Perl Modules in a server which had multiple releases of Perl. To
>> document this, I offer the following:
>> ...
>> Does this mean that perl ONLY loads the information in perl5,
>> site_perl and vendor_perl for version 5.8.6?
>>
>> Can I safely remove any of the other versions?
>
> The directories searched for modules by Perl depends on how your Perl
> was installed. You can always determine the default path by using the
> -V command line option to Perl, i.e.:
>
> $ perl -V
>
> The value of @INC is the list of directories searched, and will tell
> you what directories are being used and which are being ignored.
>
>> Any help in clarifying this problem would be appreciated:
>>
>> Can't locate object method "finish" via package "DBI::db" at
>> /var/www/html/.ServAdmin/ServerAdministrator.pm line 70.
>
> As previously described in my email to you just a few hours ago, the
> finish() method should be used on the statement handler, not the
> database handler. The error you are getting above usually means you
> are calling the method on the database handler.
>
> MC
>
> --
> Martin MC Brown, Technical Writer
> MySQL AB, http://www.mysql.com
> Skype: mcmcslp
>
>


--
Albert E. Whale, CHS CISA CISSP
Sr. Security, Network, Risk Assessment and Systems Consultant
------------------------------------------------------------ -------
ABS Computer Technology, Inc. - www.ABS-CompTech.com
SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here.


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org