Kai, Yes u r correct. For root user I don't have have /usr/local/bin in the path.
For Root user, currently it is showing /usr/bin/perl. And It is pointing to perl, version 5.005_03 built for sun4-solaris. Could u plz tell how to set the path as /usr/local/bin /perl for the Root user so that it points for 5.6.1 version. Thanks & Regards Ravi ________________________________ From: Kai Schwermann [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 1:35 PM To: RaviChandra Chelikam Subject: Re: Regarding Perl DBI version issue. Hi, as ROOT you do not have /usr/local/bin in your path, isn't it? You can try out "which perl" as ROOT and as regular user, i think that it is one time /usr/bin/perl and the other time /usr/local/bin/perl... Just call the "right" perl including full path: /usr/local/bin/perl ... Bye Kai -- Kai Schwermann, Geschäftsführer bill-X GmbH Möserstr. 34 49074 Osnabrück, Germany Tel. +49-541-71008-0 Fax +49-541-71008-499 http://www.bill-X.de [EMAIL PROTECTED] ____________________________________________________________________________ "RaviChandra Chelikam" <[EMAIL PROTECTED]> 03.04.2007 19:40 To: <[email protected]> cc: Subject: Regarding Perl DBI version issue. HI When I am using the command from root user in the sunsolaris operating system. i.e perl -e 'use DBI; print $DBI::VERSION,"\n";' I am getting the following error. Can't locate DBI.pm in @INC (@INC contains: /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) Actually we are using perl 5.6.1,but it is showing location to some other perl if we log in with root user only. If we login with some other user other than the root user,then it showing correct path i.e /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/DBI/ and getting the correct version. And when I use the command with user other than the root user, I am getting the correct DBI version For eg: perl -e 'use DBI; print $DBI::VERSION,"\n";' Output is 1.28 Could u plz help what to do for the root user, inorder to get the correct DBI version with out the error. What kind of changes should I do? Thanks & Regards Ravi ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra. ============================================================================================================================ ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra. ============================================================================================================================
