Tag Archives: installer

Quick and Simple way to install Bash on IBMi w/ local files

UPDATE 6.27.2016: If you rather install from a PTF check 5733-OPS opt 7 PTF SI61062 else learn to install it from Perzl’s site

Follow the steps below to install Bash

1. Download and unzip download-2.01-PHPDave.tar.zip locally and upload download-2.01-PHPDave.tar.zip to /QOpenSys on the IBMi

2. Open a 5250 session and run CALL QP2TERM.  We’ll extract the tar.zip file and it will create a download directory that will store all our open source binaries (such as Bash).  In QP2Term shell run:
cd /QOpenSys
tar -xf download-2.01-PHPDave.tar.zip
cd download

3. We’ll execute setup2.sh which installs various utilities needed to run wwwperzl.sh.  In QP2TERM and in directory: /QOpenSys/download run

#give the user, execute permission on setup2.sh
chmod u+x setup2.sh
./setup2.sh

4. Download bash (bash-4.3-16.aix5.1.ppc.rpm) and upload it to /QOpenSys/download/www.oss4aix.org/rpmdb/db

5. Download bash dependencies (bash-4.3-16.aix5.1.ppc.deps) and upload it to /QOpenSys/download/www.oss4aix.org/rpmdb/deplists/aix61

6. We’ll now get bash installed. In QP2TERM and in directory: /QOpenSys/download run

./wwwperzl.sh aix61 rpm1 bash-4.3

7. Bash should now be available!!! at the following directory: /QOpenSys/opt/freeware/bin/bash .  SSH into your ibmi and run /QOpenSys/opt/freeware/bin/bash.   Tips on setting up SSH for IBMi

Notes:

1. view other bash versions here if you want a different version: ftp://www.oss4aix.org/RPMS/bash/

2. view other bash deps here if you want a different version: ftp://www.oss4aix.org/rpmdb/deplists/

3. View this image to determine which aixXX to use when running ./wwwperzl.sh aixXX rpm1 bash-4.3

4. You used to have to Download http://yips.idevcloud.com/wiki/uploads/PASE/setup2.sh and http://yips.idevcloud.com/wiki/uploads/PASE/wwwperzl.sh and upload setup2.sh and wwwperzl.sh to /QOpenSys/download but i’ve included that in the zip file

Reference

http://yips.idevcloud.com/wiki/index.php/PASE/OpenSourceBinaries#perzl

http://www.perzl.org/aix/

Whats in setup2.sh and wwwperzl.sh

Safely Uninstalling Zend Core for i5 OS version 2.6.0 or less, without messing up Zend Server

Now that Zend Server for IBM i is running on our systems we’ve decided to clean up Zend Core and uninstall it.  To uninstall it there is 3 steps to follow:

1. Remove Zend Platform (Required to upgrade Zend Core)

2. Update Zend Core to a version of 2.6.1 or greater using an installer file and not a Zend Core Components update.

3. Remove Zend Core

Note:

– The installer file can be obtain only from Zend support.

– Uninstalling an earlier version will remove profiles used by Zend Server for IBM i

Determining your Zend Core Version

To determine what version of Zend Core you’re  running run the following I5 commands:

GO LICPGM

OPTION 10

Page Down until you find 1ZCORE5.  If the describition is Zend Core for IBM i5/OS (2.6.0)  or less you will have to upgrade Zend Core before installing it

Uninstalling Zend Platform

Run the Delete Licensed Program (DLTLICPGM) command on the i5 command line:

  1. DLTLICPGM LICPGM(1ZCORE5) OPTION(1)
  2. If needed, run WRKOBJLCK OBJ(ZENDPLAT) OBJTYPE(*LIB) 

Updating Zend Core to 2.6.1+

1. Have Zend Support send Zend Core 2.6.1 by emailing Mike Pavlak or download it here.
A. Note knowledge base article http://kb.zend.com/index.php?View=entry&EntryID=488, “The installer is no longer available on our web site. Please contact Zend Support to get a copy of the installer for Zend Core for i5/OS 2.6.1. ”
2. The windows installers FTP process failed fore me so the SAVF file had to be ftp’d to the i5 and ran
A. Create a savf file on the i5
i. crtsavf savefiles/zcoresavf
B. FTP the file to the i5 from your windows machine
i. Run cmd
ii. cd to directory with file to upload
iii. ftp <servername>
iv. enter username
v. enter password
vi. cd savefiles
vii. binary
viii. put zcoresavf zcoresavf
C. prepare for upgrade
i. rename the directories /usr/local/Zend and /www/zendcore to different names
ii. end Zend Core Subsystem and Apache instance

D. Run restore license program
i. RSTLICPGM LICPGM(1ZCORE5) DEV(*SAVF) SAVF(SAVEFILES/ZCORESAVF)
ii. If error message “Waiting for reply to message on message queue QSYSOPR.” – Sign in with another session and run:
a. dspmsg qsysopr
iii. If your getting directory not registered, rename the directories /usr/local/Zend and /www/zendcore to different names

iv. Rename /usr/local/Zend back in case you were using the Zend Framework

Uninstalling Zend Core 2.6.1 or better

Simply make sure theres no locks and run delete license program:

DLTLICPGM LICPGM(1ZCORE5)

If locked, run WRKOBJLCK OBJ(ZENDCORE) OBJTYPE(*LIB)

References

KB article noting that the installer file is no longer available on the Zend website and the installer must be obtained from Zend Support
http://kb.zend.com/index.php?View=entry&EntryID=488http://kb.zend.com/index.php?View=entry&EntryID=488

Forum on how to uninstall zend core
http://forums.zend.com/viewtopic.php?f=77&p=71168

Delete Zend Platform info
http://kb.zend.com/index.php?View=entry&EntryID=245

Delete Zend Core info
http://kb.zend.com/index.php?View=entry&EntryID=242

Zend Core components downlaod (NOTE: this is just to upgrade components and will not make your Zend Core safe to un-install, you need the installer file from Zend Support)
http://www.zend.com/en/products/core/updates/i5os/2.6.7/i5os/latest