Installing Zowe runtime from a convenience build
You install the Zowe convenience build by running shell script within a Unix System Services (USS) shell.
#
Obtaining and preparing the convenience buildThe Zowe installation file for Zowe z/OS components are distributed as a PAX file that contains the runtimes and the scripts to install and launch the z/OS runtime. For each release, there is a PAX file named zowe-v.r.m.pax
, where
v
indicates the versionr
indicates the release numberm
indicates the modification number
The numbers are incremented each time a release is created so the higher the numbers, the later the release.
To download the PAX file, open your web browser and click the Zowe z/OS Components button on the Zowe Download website to save it to a folder on your desktop. After you obtain the PAX file, follow the procedures below to verify the PAX file and prepare it to install the Zowe runtime.
Follow these steps:
Verify the integrity of the PAX file to ensure that the file you download is officially distributed by the Zowe project.
Notes:
- The commands in the following steps are tested on both Mac OS X V10.13.6 and Ubuntu V16.04 and V17.10.
- Ensure that you have GPG installed. Click here to download and install GPG.
- The
v.r.m
in the commands of this step is a variable. You must replace it with the actual PAX file version, for example,0.9.0
.
Step 1: Verify the hash code.
Download the hash code file
zowe-v.r.m.pax.sha512
from the Zowe website. Then, run the following commands to check:When you see "matched", it means the PAX file that you download is the same one that is officially distributed by the Zowe project. You can delete the temporary
zowe-v.r.m.pax.sha512.my
file.You can also use other commands such as
sha512
,sha512sum
, oropenssl dgst -sha512
to generateSHA512
hash code. These hash code results are in a different format from what Zowe provides but the values are the same.Step 2. Verify with signature file.
In addition to the SHA512 hash, the hash is also verifiable. This is done by digitally signing the hash text file with a KEY from one of the Zowe developers.
Follow these steps:
Download the signature file
zowe-v.r.m.pax.asc
from https://zowe.org/Downloads/post_download.html, and download the public keyKEYS
from https://github.com/zowe/release-management/.Import the public key with the
gpg --import KEYS
command.If you have never used gpg before, generate keys with the
gpg --gen-key
command.Sign the downloaded public key with the
gpg --sign-key DC8633F77D1253C3
command.Verify the file with the
gpg --verify zowe-v.r.m.pax.asc zowe-v.r.m.pax
command.Optional: You can remove the imported key with the
gpg --delete-key DC8633F77D1253C3
command.When you see output similar to the following one, it means the PAX file that you download is the same one that is officially distributed by the Zowe project.
Transfer the PAX file to z/OS.
Follow these steps:
a. Open a terminal in Mac OS/Linux, or command prompt in Windows OS, and navigate to the directory where you downloaded the Zowe PAX file.
b. Connect to z/OS using SFTP. Issue the following command:
If SFTP is not available or if you prefer to use FTP, you can issue the following command instead:
Note: When you use FTP, switch to binary file transfer mode by issuing the following command:
c. Navigate to the target directory that you wish to transfer the Zowe PAX file into on z/OS.
Note: After you connect to z/OS and enter your password, you enter into the Unix file system. The following commands are useful:
- To see what directory you are in, type
pwd
. - To switch directory, type
cd
. - To list the contents of a directory, type
ls
. - To create a directory, type
mkdir
.
d. When you are in the directory you want to transfer the Zowe PAX file into, issue the following command:
Where zowe-v.r.m is a variable that indicates the name of the PAX file you downloaded.
Note: When your terminal is connected to z/OS through FTP or SFTP, you can prepend commands with
l
to have them issued against your desktop. To list the contents of a directory on your desktop, typells
wherels
lists contents of a directory on z/OS.- To see what directory you are in, type
When the PAX file is transferred, expand the PAX file by issuing the following command in an SSH session:
Where zowe-v.r.m is a variable that indicates the name of the PAX file you downloaded.
This will expand to a file structure.
#
Installing the Zowe runtimeTo install Zowe API Mediation Layer, Zowe Application Framework, and z/OS Services, you install the Zowe runtime on z/OS.
Follow these steps:
- Step 1: Locate the install directory
- Step 2: Review the
zowe-install.yaml
file - Step 3: Execute the
zowe-install.sh
script
#
Step 1: Locate the install directoryNavigate to the directory where the installation archive is extracted. Locate the /install
directory.
zowe-install.yaml
file#
Step 2: Review the Review the zowe-install.yaml
file which contains the install:rootDir
property that is used by the installation.
install:rootDir
is the directory that Zowe installs to create a Zowe runtime. The default directory is ~/zowe/v.r.m
where v is the Zowe version number, r is the release number and m is the modification number, for example, 1.0.0 or 1.2.11. The user's home directory is the default value. This ensures that the user who performs the installation has permission to create the directories that are required for the installation. If the Zowe runtime will be maintained by multiple users, it is recommended to use another directory based on your site's conventions.
You can run the installation process multiple times with different values in the zowe-install.yaml
file to create separate installations of the Zowe runtime. Ensure that the directory where Zowe will be installed is empty. The install script exits if the directory is not empty and creates the directory if it does not exist.
#
Step 3: Install and configure the Zowe runtimeYou install and configure the Zowe runtime by executing the zowe-install.sh
script. The zowe-install.sh
mode performs two steps.
- Install a Zowe runtime into the
root_dir
folder. - Configure the runtime directory so that an instance of the ZOWESVR STC can be launched which will start the Zowe address spaces.
It's recommended that you install the Zowe runtime first by running the zowe-install.sh -I
option that just performs the first installation step to create the runtime directory. Then, configure the runtime directory separately following instructions in Configuring the Zowe runtime directory. Alternatively, you can both install and configure the Zowe runtime by running a single command zowe-install.sh
without the -I
parameter. In this case, ensure that you review Configuring the Zowe runtime directory before you run the command zowe-install.sh
.
In this documentation, the steps of creating the runtime directory and configuring the runtime directory are described separately. The configuration step is the same for a Zowe runtime whether it is installed from a convenience build or from an SMP/E distribution.
Follow these steps:
Create the Zowe runtime directory.
With the current directory being the
/install
directory, execute the scriptzowe-install.sh
by issuing the following command:Note: If you leave off the
-I
parameter, thezowe-install.sh
script will create and also configure the Zowe runtime directory using therootDir:
value. If you choose to do this, make sure that you have reviewed Configuring the Zowe runtime directory. If you runzowe-install.sh
without the-I
parameter the filezowe-install.yaml
containing parameter values used to drive the configuration will be in the same/install
directory as location ofzowe-install.sh
. If you use the-I
option and configure post install which is the recommended approach thezowe-install.yaml
file will be in thescripts/config
directory of therootDir:
.During execution of
zowe-install.sh
You might receive the following error that the file cannot be executed:The error occurs when the install script does not have execute permission. To add execute permission, issue the following command:
Each time the install script runs, it creates a log file that contains more information. This file is stored in the
/log
directory and is created with a date and time stamp name, for example/log/2019-02-05-18-08-35.log
. This file is copied across into the runtime folder into which Zowe is installed, and contains useful information to help diagnose problems that may occur during an install.(Optional) Check prerequisites.
Before you continue with the configuration of the Zowe runtime, you can check the install condition of the required prerequisites for Zowe. To do this, issue the following command with the current directory being the
/install
directory.The script writes messages to your terminal window. The results are marked
OK
,Info
,Warning
orError
. Correct any reported errors and rerun the command to ensure that no errors exist before you run thezowe-install.sh
script to install the Zowe runtime. Thezowe-check-prereqs.sh
script does not change any settings. You can run it as often as required before you configure the Zowe runtime directory.Configure the Zowe runtime directory.
For the convenience build, the location of the Zowe runtime directory will be the value of the
install:rootDir
parameter from thezowe-install.yaml
. Follow the instructions in Configuring the Zowe runtime directory to complete this step.