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 download the PAX file, follow the instructions 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.
Follow the instructions in the Verify Hash and Signature of Zowe Binary section on the post-download page
https://d1xozlojgf8voe.cloudfront.net/post_download.html?version=v.r.m
after you download the official build. For example, the post-download page for Version 1.4.0 is https://d1xozlojgf8voe.cloudfront.net/post_download.html?version=1.4.0.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
and install:datasetPrefix
properties that are 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. The directory will be created during the install so it should be empty before the install script zowe-install.sh
is executed.
install:datasetPrefix
is a PDS prefix used to create two data sets: SZWESAMP
which is a fixed block 80 samplib used to store JCL, and SZWEAUTH
which is a load library. The default value in zowe-install.yaml
is datasetPrefix={userid}.ZWE
where {userid}
is subsituted by the install script with the current TSO user ID. For example, if user JANEDOE
runs the install script from their TSO OMVS or SSH session, the partitioned data sets JANEDOE.ZWE.SZWEAUTH
and JANEDOE.ZWE.SZWESAMP
will be created. The value of datasetPrefix
can be changed to match your site's conventions. For example, datasetPrefix=OPENSRC.ZOWE
will create the partitioned data sets OPENSRC.ZOWE.SZWESAMP
and OPENSRC.ZOWE.SZWEAUTH
.
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.
#
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 three steps.
- Install Zowe runtime directories and files into the
root_dir
directory. - Install MVS artifacts into a PDS load library
SZWEAUTH
and a PDS sample librarySZWESAMP
as specified in thedatasetPrefix
value. - 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 to install Zowe artifacts
Create the USS runtime directory, and the PDS SAMPLIB and LOADLIB.
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.