Perl-Upgradation from 5.8 to 5.12


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Perl-Upgradation from 5.8 to 5.12
# 1  
Old 12-05-2010
Perl-Upgradation from 5.8 to 5.12

Hi,
I have UNIX system on which Perl is already installed. When I run the command
Code:
perl -v

. It gives the output as
This is perl, v5.8.8 built for x86_64-linux-thread-multi

Copyright 1987-2006, Larry Wall

I wanted to upgrade it to the latest version. So, I downloaded the perl onto my Windows desktop, transferred it to Unix system using Winscp and installed it as per the README file. The installation went on fine, but the version still shows as 5.8.8

I know the reason because the PATH is given as 5.8.8
Please the code below:
Code:
[ usher4500 usrcscmssvc CMSDV1 ]echo $PATH
/u01/app/oracle/product/11.1.0/db_1/bin:/usr/ccs/bin:/usr/bin/X11:/u01/app/oracle/product/11.1.0/db_1/Apache/perl/bin:/bin:/usr/bin:/usr/local/bin:/usr/lbin:/etc:/u01/app/oracle/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/usrcscmssvc/bin:.
[ usher4500 usrcscmssvc CMSDV1 ]pwd
/home/usrcscmssvc
[ usher4500 usrcscmssvc CMSDV1 ]cd perl-5.12.2/
[ usher4500 usrcscmssvc CMSDV1 ]perl -v

This is perl, v5.8.8 built for x86_64-linux-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[ usher4500 usrcscmssvc CMSDV1 ]/home/usrcscmssvc/perl-5.12.2/perl -v

This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-linux

My questions are:
1. How can I uninstall the current version (5.8) and install the latest version (5.12)?
This way, the default perl version should be 5.12
2. If I can have two perls on my system, then how do I install a module Excel-Writer-XLSX? This module requires atleast Perl version of 5.10 .Since the default version shows it as 5.8 how do I change it?
http://search.cpan.org/~jmcnamara/Excel-Writer-XLSX-0.02/lib/Excel/Writer/XLSX.pm
3. The only reason why I use Perl is to write into excel. But, the problem with excel is it can write only 65,532 records. So, I found the above module which writes into xlsx. The module which we are using currently is Spreadsheet:WriteExcel
Now, how do I upgrade without affecting the existing perl scripts? I do not want to change the existing Perl scripts. Moreover, if i upgrade I think I've to reinstall the Spreadsheet:WriteExcel module. Please let me how I do this?

Thanks for helping

---------- Post updated at 10:51 PM ---------- Previous update was at 02:17 PM ----------

Could someone help me in upgrading the Perl from 5.8 to 5.12 without loss to the existing perl scripts?
# 2  
Old 12-06-2010
What distribution is this? Is there a version of Perl >5.10 available by the distribution?
# 3  
Old 12-28-2010
My Distribution is SUSE Linux Enterprise Server 10. (SLES10). The supported version is 5.8.8 . I have now successfully installed on the machine. The problem was with the PATH variable. I had to change the PATH variable.

Thanks for your help.

Don
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

PERL: In a perl-scripttTrying to execute another perl-script that SETS SOME VARIABLES !

I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(), 'back ticks', exec() and open()) I would like to run another PERL-script from first one, not... (1 Reply)
Discussion started by: alex_5161
1 Replies

2. AIX

TL upgradation for AIX machine. Need help

Hi Experts, I have an AIX machine oslevel -s 5300-00-00 Now I need to upgrade its TL to a level 5300-06-03-0732 Kindly let me know if we can do this directly. I guss we have to upgrade TL from 1 , 2 ,3 ,4, 5 and 6, then I have to upgrade to 06-03-0732 . Am i right here ? (6 Replies)
Discussion started by: jayadeava
6 Replies

3. Solaris

DNS Bind Upgradation in Solaris 10

Hi All , My current Bind version is BIND 9.6.1 and I want upgrade the same to BIND 9.8.1-P1 ,Can any one provide the steps to do the same ? Solaris Version : 5.10 Generic_144488-11 sun4v sparc Thanks , (0 Replies)
Discussion started by: sandeep.tk
0 Replies

4. Solaris

solaris upgradation from 8 to 10

Hi, Can anybody help me to upgrade my machinne from solaris 8 to solaris 10 Regards, ravich (1 Reply)
Discussion started by: ravich
1 Replies

5. AIX

AIX 5.3 ML/TL upgradation

hi everybody, I want to apply the TL 5300-05. Presently TL is 5300-00. What steps i have to do while upgrading the maintenance level.??? Is it necessary to upgrade the firmware also?? If yes then my current firmware is Platform Firmware level is 3F050607 System Firmware level is... (3 Replies)
Discussion started by: jit15975
3 Replies

6. Red Hat

Linux RHEL 4 upgradation problem

Hi All, I have some problem in upgrading Linux from kernel 2.4.21-4.EL to 2.4.21-27.EL. I downloaded the package from Rpm source : kernel-source-2.4.21-27.EL.i386 RPM I upgraded using rpm -Uvh kernel-source-2.4.21-27.EL It installed sucessfully, But when i check grub.conf file... (3 Replies)
Discussion started by: VNK
3 Replies

7. Linux

Linux kernel upgradation

Hi, I am not able to upgrade the Linux kernel version 2.6.21.5 to 2.6.25. I tried applying the patches available in the Linux site. The patches are not getting applied successfully. I have the linux kernel 2.6.21.5 with some samsung patches on top of it. I want to upgrade that kernel to 2.6.25... (5 Replies)
Discussion started by: poojasreejith
5 Replies

8. Solaris

Whether the upgradation of oracle DB needs upgradation of sun solaris also?

Currently we are using Oracle9i Enterprise Edition Release 9.2.0.4.0 in sun solaris 5.9 server. We wnt to upgrade the oracle database to 10.2g. My doubt is that " what are the implications of this database upgradation in sun solaris server" "whether we need to upgrade the sunsolaris 5.9... (3 Replies)
Discussion started by: vamshikrishnab
3 Replies

9. Solaris

Package Upgradation in solaris

Hi how would i upgrade any package from (say) version 4.1 to version 4.2 ? Help needed and help appreciated Thanks chakri (3 Replies)
Discussion started by: chakri.penguin
3 Replies

10. Solaris

CPU upgradation on V880

We have 4 CPU in V880 server. we need to upgrade by one or two CPUs . Is it possible on 5 or 6 CPU on V880 (3 Replies)
Discussion started by: hdk2oo5
3 Replies
Login or Register to Ask a Question