Skip to main content
Feb 5, 2016 10:15 AM UTC

Unpacking Distributions

Before installing your distribution you need to unpack it.

All z/OpenSource languages and tools are delivered as gzip tar files (e.g. automake-1.10_b0001.160204.tar.gz) with the exception of gzip which is delivered as a simple tar file (e.g. gzip-1.6-edc_b0002.160204.tar).

If you do not already have gzip on your system you will need to start by downloading and installing gzip and to unpack the gzip distribution you need only issue a standard tar extraction command.

To unpack all other z/OpenSource languages and tools from Rocket enter the following commands using your own
destination directory in place of /rsusr/rocket:

gunzip tool.tar.gz
tar -C /rsusr/rocket -xoUXf tool.tar

For example, if unpacking automake-1.10_b0001.160204.tar.gz, issue the commands:

gunzip automake-1.10_b0001.160204.tar.gz
tar -C /rsusr/rocket -xoUXf automake-1.10_b0001.160204.tar

Each Rocket open source distribution comes with tool-specific installation instructions (README.ZOS) and a version information file (VERSION.ZOS).

These files are located in :

share/doc/<toolName>/<version>

    19 replies

    Aug 1, 2017 12:21 PM UTC

    FWIW: Some tools try to determine the location of other tools based on their own paths. For example, “toola” might be in /Rocket/bin and need to use “toolb”; it would first try to find it in that same directory. This is one reason I suggested putting them in a single file system (like /Rocket), rather than many separate file systems (like /Rocket/gzip, /Rocket/perl, etc.).

    I would also think that having to mount a single file system, rather than many, would be easier to set up.

    Understood and appriciate the feedback. I was working under the impression that ALL the added export statements I added to my .profile would address the issue of where things are. ? Hopefully??
    Again, our apparent standard - not written in stone -but at least the convention in our shop is /Vendor/product .

    Sep 25, 2017 7:49 AM UTC

    Before installing your distribution you need to unpack it.

    All z/OpenSource languages and tools are delivered as gzip tar files (e.g. automake-1.10_b0001.160204.tar.gz) with the exception of gzip which is delivered as a simple tar file (e.g. gzip-1.6-edc_b0002.160204.tar).

    If you do not already have gzip on your system you will need to start by downloading and installing gzip and to unpack the gzip distribution you need only issue a standard tar extraction command.

    To unpack all other z/OpenSource languages and tools from Rocket enter the following commands using your own
    destination directory in place of /rsusr/rocket:

    gunzip tool.tar.gz
    tar -C /rsusr/rocket -xoUXf tool.tar

    For example, if unpacking automake-1.10_b0001.160204.tar.gz, issue the commands:

    gunzip automake-1.10_b0001.160204.tar.gz
    tar -C /rsusr/rocket -xoUXf automake-1.10_b0001.160204.tar

    Each Rocket open source distribution comes with tool-specific installation instructions (README.ZOS) and a version information file (VERSION.ZOS).

    These files are located in :

    share/doc/<toolName>/<version>

    Hi,

    I have downloaded and unpacked the auto tools.
    I tried to follow the suggestions here, unless I missed something which I don’t know.
    Some of the tools seem to work but with m4 I have this strange issue.
    If I do ‘./m4 --help’ or ‘./m4 --version’ is just a bunch of unprintable chars coming back.
    I execute m4 from the default USS shell.
    _BPXK_AUTOCVT was exported to ON.

    I am attaching here a putty screenshot.

    Many thanks in advance,
    Adrian.

    Tatiana Balaburkina
    Rocketeer
    Sep 25, 2017 9:18 AM UTC

    Hi,

    I have downloaded and unpacked the auto tools.
    I tried to follow the suggestions here, unless I missed something which I don’t know.
    Some of the tools seem to work but with m4 I have this strange issue.
    If I do ‘./m4 --help’ or ‘./m4 --version’ is just a bunch of unprintable chars coming back.
    I execute m4 from the default USS shell.
    _BPXK_AUTOCVT was exported to ON.

    I am attaching here a putty screenshot.

    Many thanks in advance,
    Adrian.

    Hi Adrian,

    Which version of m4 do you use?

    Sep 25, 2017 9:26 AM UTC

    Hi Adrian,

    Which version of m4 do you use?

    Hi,

    Thanks for coming back to me.
    I used the archive: m4-1.4.18_b001.170511.tar

    thanks,
    Adrian.

    Sep 25, 2017 9:28 AM UTC

    Hi,

    Thanks for coming back to me.
    I used the archive: m4-1.4.18_b001.170511.tar

    thanks,
    Adrian.

    Hi,

    Some news.
    Trying m4 from under the bash shell gives much better results.
    Sorry to have disturbed you for this.
    I’ll try to solve my issues from under bash and if still have problems I’ll come back here.

    Many thanks.
    Adrian.

    Oct 25, 2017 3:00 PM UTC

    Before installing your distribution you need to unpack it.

    All z/OpenSource languages and tools are delivered as gzip tar files (e.g. automake-1.10_b0001.160204.tar.gz) with the exception of gzip which is delivered as a simple tar file (e.g. gzip-1.6-edc_b0002.160204.tar).

    If you do not already have gzip on your system you will need to start by downloading and installing gzip and to unpack the gzip distribution you need only issue a standard tar extraction command.

    To unpack all other z/OpenSource languages and tools from Rocket enter the following commands using your own
    destination directory in place of /rsusr/rocket:

    gunzip tool.tar.gz
    tar -C /rsusr/rocket -xoUXf tool.tar

    For example, if unpacking automake-1.10_b0001.160204.tar.gz, issue the commands:

    gunzip automake-1.10_b0001.160204.tar.gz
    tar -C /rsusr/rocket -xoUXf automake-1.10_b0001.160204.tar

    Each Rocket open source distribution comes with tool-specific installation instructions (README.ZOS) and a version information file (VERSION.ZOS).

    These files are located in :

    share/doc/<toolName>/<version>

    I was trying to unpack the latest (7.52.1) cURL distribution. Based on the instructions in this forum post, I’m supposed to use the -UX options on the tar command. However, I’m not certain if the tar command on our mainframe supports those options.
    I get the error:
    tar: FSUM7170 .: cannot set mode: EDC5139I Operation not permitted.
    It could also mean that my user doesn’t have the proper permissions to be able to run the tar command with those options (I confirmed that I’m authorized to write the folder that I specified on the tar -C … command option). Any help would be appreciated.

    Alex

    Oct 25, 2017 3:39 PM UTC

    I was trying to unpack the latest (7.52.1) cURL distribution. Based on the instructions in this forum post, I’m supposed to use the -UX options on the tar command. However, I’m not certain if the tar command on our mainframe supports those options.
    I get the error:
    tar: FSUM7170 .: cannot set mode: EDC5139I Operation not permitted.
    It could also mean that my user doesn’t have the proper permissions to be able to run the tar command with those options (I confirmed that I’m authorized to write the folder that I specified on the tar -C … command option). Any help would be appreciated.

    Alex

    Can you please provide the complete output?

    I’m fairly sure that these are only warnings, and are caused by tar attempting to restore the owner and group IDs for the files. If that’s the case, these can be ignored.

    Oct 25, 2017 3:59 PM UTC

    Can you please provide the complete output?

    I’m fairly sure that these are only warnings, and are caused by tar attempting to restore the owner and group IDs for the files. If that’s the case, these can be ignored.

    That line was the only thing that was output. The command simply returned and didn’t seem to expand anything. I also had our sysprog run it but I still don’t seem to have a usable version of curl. When I run curl --help I get gibberish.

    Oct 27, 2017 5:19 PM UTC

    Before installing your distribution you need to unpack it.

    All z/OpenSource languages and tools are delivered as gzip tar files (e.g. automake-1.10_b0001.160204.tar.gz) with the exception of gzip which is delivered as a simple tar file (e.g. gzip-1.6-edc_b0002.160204.tar).

    If you do not already have gzip on your system you will need to start by downloading and installing gzip and to unpack the gzip distribution you need only issue a standard tar extraction command.

    To unpack all other z/OpenSource languages and tools from Rocket enter the following commands using your own
    destination directory in place of /rsusr/rocket:

    gunzip tool.tar.gz
    tar -C /rsusr/rocket -xoUXf tool.tar

    For example, if unpacking automake-1.10_b0001.160204.tar.gz, issue the commands:

    gunzip automake-1.10_b0001.160204.tar.gz
    tar -C /rsusr/rocket -xoUXf automake-1.10_b0001.160204.tar

    Each Rocket open source distribution comes with tool-specific installation instructions (README.ZOS) and a version information file (VERSION.ZOS).

    These files are located in :

    share/doc/<toolName>/<version>

    Here are several things that may help:

    • The tool download page contains a README.ZOS file that has the installation instructions. I followed those for the curl-7.52.1_b004.170529.tar.gz download (installing into my home directory) and got a working curl. The first part of the instructions is:
     gzip -d curl-7.52.1_<build>.tar.gz
     tar -C /rsusr/rocket -xovf curl-7.52.1_<build>.tar
    
    • You also need to be sure to set the environment variables as indicated:
     export PATH=$PATH:/rsusr/rocket/bin
     export LIBPATH=$LIBPATH:/rsusr/rocket/lib
     export MANPATH=$MANPATH:/rsusr/rocket/share/man
     export _CEE_RUNOPTS="FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)"
     export _BPXK_AUTOCVT=ON
     export _TAG_REDIR_ERR=txt
     export _TAG_REDIR_IN=txt
     export _TAG_REDIR_OUT=txt
    

    _BPXK_AUTOCVT=ON is especially important and easy to overlook; this enables EBCDIC/ASCII conversion.

    Hope this helps.