Solved

Scripting Languages on AIX, LINUX

Posted on 2014-03-14
2
1,084 Views
Last Modified: 2014-03-17
This is a general question:

I want to standardize on a scripting language, I am using Korn and Bash on AIX and Linux and want to start using Python, I know that Python is a very friendly language with RHEL as I can download the packages from RHEL repository but on AIX I am not sure how it is handled.

We are planning to go with Puppet and also looking at the new redhat satellite server which will be based on Python completely, So does python goes in handy with AIX, I know that when ever I update RHEL, I see that python is getting updated, But I am not sure with about this on AIX, Does IBM promote python...???????

so please let me know what are the caveats of going with python on AIX...
0
Comment
Question by:aanya247
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 39929866
No,IBM do not promote Python.

There are RPM packages for AIX (version 2.7.5.1) available here:
http://www.perzl.org/aix/index.php?n=Main.Python
and here:
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html#P
Python 2.7.6.1 is available here:
http://gnome.bullfreeware.com/aixtoolbox/RPMS/ppc/python/

But please be warned: There are lots over lots of dependencies to resolve.

Michael Perzl's package (which is the best one in my opinion) has these first level dependencies:

    bzip2 >= 1.0.2-4
    db4 >= 4.7.25-2
    expat >= 2.0.1-3
    gdbm >= 1.8.3-1
    gettext >= 0.10.40-6
    gmp >= 4.3.2-2
    libffi >= 3.0.13-1
    openssl >= 1.0.1
    readline >= 5.2-3
    sqlite >= 3.7.3-1
    zlib >= 1.2.3-3

let alone all the dependencies of the dependencies.

All the required packages can be found at perzl.org, so we could try to get Python running (I'll assist you, of course), but please be prepared for a long journey!

And No, there isn't any automatic update. It will be your responsibility to keep Python on AIX current.

wmp
0
 
LVL 27

Assisted Solution

by:skullnobrains
skullnobrains earned 250 total points
ID: 39932563
if you want to use puppet, i'd assume you will be scripting installation of packages. better not use a language that needs zilions of packages to be installed, then. stick to the shell or to whatever can be installed using AIX builtin tools. (but then bash is hardly compatible with itself ;)... maybe zsh is properly supported by both ? ksh is definitely supported by linux but is quite a pain to script with

alternatively, since puppet is written with ruby, you probably can safely assume that ruby will be available wherever puppet is used so ruby might be a decent choice

AIX has support for a rather limited version of perl with not many modules but it should be sufficient for admin tasks and compatible with linux's if you don't use fancy stuff

AIX has native support for csh which is also available on linux and should work identically

AIX has support for the good old bourne shell (bsh on aix) but i do not know of any linux shell that is actually sh-compatible. it is feasible to script simple tasks in a mostly compatible way, but becomes quickly painful when you need more complicated stuff.

personally, i'd probably try to either go with csh using builtin commands only, or with ruby and if unsatisfactory go for a statically compiled version of whatever I feel most comfortable with
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
RHEL installation problems on HP Proliant DL 360 G6 server 20 128
Shell Script- gzip 5 47
Find unused columns in a table 12 70
CentOs root password/fsck issue 7 33
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question