Open Source Binaries Archive

(replaced by OPS product)

Replaced by OPS product see this link to start OpenSourceBinaries.

Original version (based on AIX Toolbox rpms)

This section of the wiki is dedicated to showing you “How to download and install” pre-compiled Open Source binaries hosted on the IBM AIX Toolbox for Linux Applications web site. This information is offered “as is”, please check this License link for additional details.

Download these files first (prepare phase)
  • Download click here (4 files) → rpm.rte, wget.rpm, Attach:setup.sh, Attach:wwwinstall.sh to your PC.
    • ftp files from your PC to IBM i (binary mode)
      ftp myibmi
      > bin
      > mkdir /QOpenSys/download
      > cd /QOpenSys/download
      > put rpm.rte
      > put wget.rpm (example version: wget-1.9.1-1.aix5.1ppc.rpm)
      > put setup.sh
      > put wwwinstall.sh
      
      On IBM i:
      call qp2term
      > cd /QOpenSys/download
      > chmod +x setup.sh          <---make executable
      > setup.sh                   <---install rpm.rte and wget.rpm (example version: wget-1.9.1-1.aix5.1ppc.rpm)
      
      

Ignore wwwinstall.sh if using Michael Perzl’s site, but complete setup.sh above ( perzl.org)

 call qp2term
> cd /QOpenSys/download
> chmod +x wwwinstall.sh        <-make executable
wwwinstall.sh has 4 possible operations each package (BASE example) ... 
> wwwinstall.sh GetBase         <- wget and install rpms (requires IBM i allowed Internet access)
> wwwinstall.sh GetBase_wget    <- wget rpms only (requires IBM i allowed Internet access)
> wwwinstall.sh GetBase_install <- install rpms only for manual install RPM packages IBM i without Internet Access (see dark side below)
> wwwinstall.sh GetBase_clean   <- remove xxx.rpm files from /QOpenSys/download, but not remove product (optional post install clean up)
> wwwinstall.sh GetBase_erase   <- uninstall/erase rpm packages (risky)

Important: setup.sh and wwwinstall.sh script attempt download/install packages that do not collide with PASE shipped binaries (use PASE iconv, not aixtoolbox iconv … PASE openssl, not aixtoolbox openssl), so if you MUST do rpm installs by hand, then try to stay close to wwwinstall.sh package sets {view wwwinstall.sh} … that is to say, you can often install less than all packages in a set, but you take risk adding you own random stuff. Also, we know that many packages are old in the set and at some point we may need to update wwwinstall.sh to later versions, but … well IBM i folks … many of you are still using V5R3 (decade+ old PASE), so we have to use older binaries … cough … maybe time to move yes???

If you make a rpm mistake and things start to go bad …

  No problem, relax, load errors can be simple to fix ...
  1) The careful way ... delete /opt/freeware items on error ... retry operation
     call qp2term
     > rpm
     0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 
     0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
     > rm /opt/freeware/lib/libintl.a
     > rm /opt/freeware/lib/libiconv.a

     Then remove all traces with rpm -e 
     > rpm --nodeps -e iconv 
     ... and so on

  2) A bit more forecful ...
     If rpm -e remove not working try 
     > rpm --allmatches --nodeps --noscripts --notriggers -e  iconv 
     ... and so on

  3) The panic way ... delete all of /opt/freeware
     call qp2term
     > rm -R /opt/freeware
     ... but nothing will work these toolkit binaries 
If you are trying to install newer version (on your own)

The easy way to understand what to do on your own is look at script wwwinstall.sh, but here are a few commands that may help by example …and … good luck as you go where no one has gone before.


Get to download directory: 
call qp2term
> cd /QOpenSys/download

Check you package is available (IMPORTANT assumes BINARY ftp):
> ls gcc-4.0.0-1.aix5.3.ppc.rpm
gcc-4.0.0-1.aix5.3.ppc.rpm

Install (assumes rpm package already downloaded): 
> rpm --ignoreos --ignorearch --nodeps --replacepkgs -hUv gcc-4.0.0-1.aix5.3.ppc.rpm

--------------------
Other rpm manual actions:
--------------------
call qp2term
> rpm --version
  RPM version 3.0.5
> rpm --help
  help stuff
> cd /QOpenSys/download
> rpm -qlp zip-2.3-3.aix4.3.ppc.rpm
  list contents of a package
> rpm -qRp zip-2.3-3.aix4.3.ppc.rpm
  list of dependencies
> rpm --ignoreos --ignorearch --nodeps --replacepkgs -hUv *.ppc.rpm
> rpm --ignoreos --ignorearch --nodeps --replacepkgs -hUv wget-1.9.1-1.aix5.1.ppc.rpm
  Install a package(s)
  Note 1: The first install of any *.ppc.rpm will create the
  file /var/opt/freeware/lib/rpm/packages.rpm
  Note 2: We force rpm into working on PASE with AIX RPM packages
  by specifying overrides --ignoreos --ignorearch --nodeps. 
> rpm -qa
  query of products installed
  Note: if you get an error about packages.rpm missing you need to
  install at least one *.ppc.rpm before query will work.
>rpm --nodeps -e gedit-2.2.1-2
 Note: This will erase/(remove) the gedit product from the system (risky).

IBM i with Internet access (happy side)
  • After setup wget/install all the interesting packages (that do something)
  • Happy is customer with IBM i on Internet, skip manual steps (dark side).
call qp2term
> cd /QOpenSys/download
> chmod +x wwwinstall.sh      <---make executable
> wwwinstall.sh GetBase       <---web get common open source 
                                  utilities/libraries 
                                  (zip, unzip, etc.)
> wwwinstall.sh help          <---help for this script
                                  (see all packages)
IBM i without Internet access (dark side)
  • After setup, manually install interesting packages (that do something)
  • IBM i NOT on Internet, be prepared for long day of manual activities.
Download a package manually to your pc  (click package links below)
-> GetBase_wget to be used with GetBase_install
-> and so on ...

Ftp all files in any package package to your IBM i (example GetBase_wget)
ftp myibmi
> bin
> cd /QOpenSys/download
> put bash-doc-3.0-1.aix5.1.ppc.rpm
  -- all files GetBase_wget below --
> put zsh-4.0.4-3.aix5.1.ppc.rpm

call qp2term
> cd /QOpenSys/download
> chmod +x wwwinstall.sh           <---make executable
> wwwinstall.sh GetBase_install    <---install only (no web get)
> wwwinstall.sh --help             <---help (see all packages)

Optional reading …

What is RPM?

The RPM Package Manager (RPM) is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating computer software packages. All of the PASE/AIX Open Source binary packages featured below have been packaged by RPM and can be found at Toolbox RPMs.

PASE enable RPM (verbose install same as above)

To PASE enable RPM package download follow these steps:

  1. Follow RPMScripts to install scripts setup.sh and wwwinstall.sh
  2. Follow PackageManager to install the RPM package manager
  3. Download RPM List using wwwinstall.sh (optional view).

PASE setup.sh script will automate the steps to setting up the RPM package manager. After setting up rpm and wget with the setup.sh script, you may use the wwwinstall.sh script to install AIX RPM packages directly from your System i /QOpenSys/download directory without using a Windows or Linux PC (assuming your System i firewall allows contact with outside sites).

  • To use the wwwinstall script:
    • signon (probably with a *SECOFR profile)
    • call qp2term
    • cd /QOpenSys/download
    • wwwinstall.sh help
  • Or from batch job:
    • SBMJOB CMD(QSH CMD(‘/QOpenSys/usr/bin/sh -c “/QOpenSys/download/wwwinstall.sh getsomething” > /tmp/wwwinstall.txt 2>&1′))

wwwinstall.sh uses wget (web get), which assumes that your IBM i able/allowed to talk with the Internet world. However, “some” IBM i machines are hiding behind proxies (and such), but Google is your friend … like this article wget behind proxy

Additional tips …

  • Tip 1) You should run wwwinstall.sh GetBase because it installs low level dependencies for many other products … and … has many popular zip/unzips (various kinds), so no more long sessions of unzip on PC and FTP to IBM i.
    • wwinstall.sh rpm install AIX specific messages are expected on PASE …
      • rpm --ignoreos --ignorearch --nodeps --replacepkgs -hUv something.rpm
        mntctl() failed to return fugger size: The process does not exist.
        group system does not exist - using root
        something ##########################
        
  • Tip 2) The versions in wwwinstall.sh script are meant to target all releases V5R4+ (ancient V5R4), which, of course means RPM package versions may also be old. If you decide to try your hand at updating to newer RPM packages you may have a long day of updating all kinds of dependencies including things in GetBase and/or you may reach beyond machine IBM i PASE/AIX release level (Uff da), but welcome fellow Unix geek.

Other interesting OS items …

Manual download packages (one click at a time)