Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Installing Perl in AIX 5.1

by ratsinha (Initiate)
on Apr 26, 2012 at 18:16 UTC ( [id://967429]=perlquestion: print w/replies, xml ) Need Help??

ratsinha has asked for the wisdom of the Perl Monks concerning the following question:

We want to install newer version of Perl in AIX 5.1 , as of now we have Perl 5.8 installed. I want to write scripts so that I am able to do some excel data manipulation in excel files placed in AIX server. I found that I will need to use "Spreadsheet::WriteExcel and Spreadsheet::ParseExcel" for this purpose. My query is that which version of Perl would be suitable to upgrade to, which is good enough to handle all functions of excel files and can be installed in AIX 5.1 ? (Assuming that we have to stick to AIX 5.1) Suppose if we get the option of AIX 6.1 in future then which version of Perl you would advise for my requirement?

Replies are listed 'Best First'.
Re: Installing Perl in AIX 5.1
by Argel (Prior) on Apr 26, 2012 at 21:47 UTC
    My recommendation in all scenarios like this is to install your own Perl in a different location and leave the OS included Perl alone. Do you have access to the AIX Toolbox for Linux Applications? I believe it includes gcc, which you could use to compile your own version of Perl. Or you could look into installing a Perl package to a different location.

    Elda Taluta; Sarks Sark; Ark Arks
    My deviantART gallery

Re: Installing Perl in AIX 5.1
by Tanktalus (Canon) on Apr 26, 2012 at 23:46 UTC

    I've been going through the old "Perl building on AIX" bugs on rt. The standard answers have been approximately: The version of AIX you're using is not supported (AIX 5.3 goes out of support at the end of this month, 5.1 is already out of support). The version of Perl you're using is out of support. I've compiled Perl 5.14.2 on AIX 6 with xlC successfully. I've also compiled 5.14.0 on the same machine, but ended up with a few problems compiling other modules that I've not had with 5.14.2, not entirely sure why that is.

    Given that perl 5.12 is about to be out of support with the imminent release of perl 5.16 (some time next month), I would suggest not bothering with 5.12, either.

    Please tell your management that AIX 6.1 will be the oldest level of AIX still supported by IBM as of May 1. They should upgrade as soon as possible to ensure continued support. As for your perl question, I have every plan of using perl 5.16.1 in my next deliverable. Yes, 5.16.0 isn't out yet, but I need to plan ahead :-) I've watched p5p a bit lately due to other reasons (which is how I got dragged into this), and I have to say, as a general rule, always go with the latest available version at the time of the upgrade. (Exceptions have been made for releases like 5.8.0, 5.8.7, 5.10.0.) You'll get more bugfixes, and better support.

    I say all this without having tried S::WE/S::PE.

    I've also written a Configure wrapper that has helped me do the above testing - that way I don't have to sit through Configure's lengthy questions and can get the same results each time, modulo the extra options passed in. If you're going to test a bunch of versions, I recommend doing the same. I even cheat: my perlconfigure tool runs off the system perl. I use perl to configure perl :-). (Then again, I also have a wrapper written to select one of a number of perls, also written in perl, and then eval 'dev_perl -S $0 "$@"' [\n] if 0; selects the right perl automatically... so I kinda cheat all the time.)

    Edit: And, yes, absolutely, do not touch the system perl. Install your new version elsewhere and use that.

Re: Installing Perl in AIX 5.1
by Tux (Canon) on Apr 27, 2012 at 07:42 UTC

    Having read the other comment, I'd have to add that these two modules should work on AIX 5.1 with perl-5.8.x without a problem. Did you actually *try* to install them?


    Enjoy, Have FUN! H.Merijn
Re: Installing Perl in AIX 5.1
by flexvault (Monsignor) on Apr 27, 2012 at 10:20 UTC

    ratsinha,

    Which version of AIX you can install depends on the Power level of the hardware. You need Power 5 hardware for AIX 6.1 and AIX 6.1 is 64 bit only. But I have installed Perl 5.8.8 thru 5.12.2 on AIX 4.3 thru 7.1 using gcc. The best gcc that I have found for AIX is version 4.2.4. IBM puts Perl in /usr/bin/, so I add the versions I want/need in /usr/local/bin/.

    I have been working on Linux boxes of late, so I haven't upgraded any of the AIX machines to the newer versions of Perl.

    Update: Fixed /usr/bin/local/ to /usr/local/bin/. Didn't see it before!

    Good Luck

    "Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://967429]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found