Install Xlc Compiler Aixg
Menu Installing Bash on AIX 7.1August 2, 2018 2 min readAIX uses the KornShell (ksh). I have always used bash and to me, ksh is very hard to use to do anything quick. In AIX, ksh lacks tab autocomplete, backspace, and in some cases arrow key usage. Luckily you can run bash in AIX.
XL C User's Guide for IBM AIX Version 3 for RISC System/6000, SC09-1259, explains how to develop and compile C language programs on an IBM RISC. Hi, the more recent information on installing matplotlib on AIX with XLC compiler are pretty dated (5 years ago), so I'd like to let you know what I did to have it on my machine.
There are three ways to get Bash on IBM hardware. Compile from source. Install from the AIX installation disk. Usually on install disk #2. Install from IBM's ftp site (IMHO the best option)In this guide I will only go over #2 and #3. Installing form source on AIX is HORRIBLE.
You will immediately run into dependency hell (there are ways around it but none of them are easy, ex. ). So the easiest way to install bash is from IBM packages. Even if you use the IBM packages you can still occasionally run into dependency issues.IBM has a ftp site full of great packages.
Ftp://public.dhe.ibm.com/aix/freeSoftware/The specific folder we want is listed bellow. Ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/bash/From here you can choose what Bash version you want and copy the link. Then use rpm to install the package. In this example I will be installing bash-4.2-3.
If you are installing from a CD change the url to the path of the CD. I prefer the ftp option because you can easily get the latest version that IBM supports. Installing from ftp:rpm -Uvh ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/bash/bash-4.2-3.aix6.1.ppc.rpmInstalling from CD:rpm -ivh /mnt/RPMS/ppc/bash-4.2-3.aix6.1.ppc.rpmAfter the installation, we need to edit the login.cfg file. There will be a line that begins with 'shell='. Add ',/bin/bash' to the end of the string. Vi /etc/security/login.cfgFinally run the following command, log out, and log in.
Chsh /bin/bashYour AIX server should login with a bash prompt.
The latest version of xlC/C is version 11, but I'm not sure who told you that 9.0 doesn't run on AIX 6.1? Hi,You may want to check again. I thought I said version 12 that last time I checked.JimSubject: RE: ibm-aix-l xlC/C on AIX 6.1?Date: Wed, 25 Aug 2010 13:56:40 -0400From: ibm-aix-l@Groups.ITtoolbox.comTo: email@removedPosted by andrew.bieleckion Aug 25 at 1:58 PM Mark as helpfulThe latest version of xlC/C is version 11, but I'm not sure who told you that 9.0 doesn't run on AIX 6.1?
Thanks - Version 12/11 is what I expect IBM to get me asap then.will have to deinstall on this new DEV&QA servers. Last time they installed C was 2006 on AIX 5.3.Yeah, I saw the 6.1 rte after smitty installlatest (on a new p750 LPAR).I have v8 of C and v9 of C and unpacked v9 (C we need for this new DEV & QA environment).I printed the installation instructions and carefully installed according to this.
Survarium. Followed to the word and all successfully done - even the help docs via http works.(v9 does not work on 6.1.)Page 29 of the instructions is 'testing the installation' where I create a hello.c and a hello.cpp program and compile it -and the output is this.root@dcdev2:/tmp# xlc hello.c -o helloxlc: 1501-287 (S) This compiler does not support AIX 6.1. You have xlC.rte and xlC.aix61.rte from 10.1 version of compiler. If you uninstall them and replace those packages with packages from 9.0.0.X versions your v9 compiler should work.Andrew BieleckiFrom: bounce-336468@groups.ittoolbox.com mailto:bounce-336468@groups.ittoolbox.com On Behalf Of JakeTheHake via ibm-aix-lSent: Wednesday, August 25, 2010 3:27 PMTo: andrew.bieleckiSubject: RE: ibm-aix-l xlC/C on AIX 6.1?Posted by JakeTheHake (Senior Systems Engineer UNIX)on Aug 25 at 3:31 PM Mark as helpfulThanks - Version 12/11 is what I expect IBM to get me asap then.will have to deinstall on this new DEV&QA servers. Last time they installed C was 2006 on AIX 5.3.Yeah, I saw the 6.1 rte after smitty installlatest (on a new p750 LPAR).I have v8 of C and v9 of C and unpacked v9 (C we need for this new DEV & QA environment).I printed the installation instructions and carefully installed according to this. Followed to the word and all successfully done - even the help docs via http works.(v9 does not work on 6.1.)Page 29 of the instructions is 'testing the installation' where I create a hello.c and a hello.cpp program and compile it -and the output is this.root@dcdev2:/tmp# xlc hello.c -o helloxlc: 1501-287 (S) This compiler does not support AIX 6.1. Great - Thanks!I will do just that.I should go to sleep first, but just got to migrate the users.just got to.JFrom: andrew.bielecki via ibm-aix-l mailto:ibm-aix-l@Groups.ITtoolbox.comSent: 25 August 2010 09:55 PMTo: Jaco BezuidenhoutSubject: RE: ibm-aix-l xlC/C on AIX 6.1?Posted by andrew.bieleckion Aug 25 at 3:58 PM Mark as helpfulYou have xlC.rte and xlC.aix61.rte from 10.1 version of compiler. If you uninstall them and replace those packages with packages from 9.0.0.X versions your v9 compiler should work.Andrew BieleckiFrom: bounce-336468@groups.ittoolbox.com mailto:bounce-336468@groups.ittoolbox.com On Behalf Of JakeTheHake via ibm-aix-lSent: Wednesday, August 25, 2010 3:27 PMTo: andrew.bieleckiSubject: RE: ibm-aix-l xlC/C on AIX 6.1?Posted by JakeTheHake (Senior Systems Engineer UNIX)on Aug 25 at 3:31 PM Mark as helpfulThanks - Version 12/11 is what I expect IBM to get me asap then.will have to deinstall on this new DEV&QA servers.
Last time they installed C was 2006 on AIX 5.3.Yeah, I saw the 6.1 rte after smitty installlatest (on a new p750 LPAR).I have v8 of C and v9 of C and unpacked v9 (C we need for this new DEV & QA environment).I printed the installation instructions and carefully installed according to this. Followed to the word and all successfully done - even the help docs via http works.(v9 does not work on 6.1.)Page 29 of the instructions is 'testing the installation' where I create a hello.c and a hello.cpp program and compile it -and the output is this.root@dcdev2:/tmp# xlc hello.c -o helloxlc: 1501-287 (S) This compiler does not support AIX 6.1.