3.3. Installing program archives in QNX

Problem:

Error in QNX when installing .sh files.

Cause:

The current installation mechanism creates a gzipped tar file (.tgz) from a self-installing shell archive. In QNX, the system's install program is automatically invoked on this file with a command like: install -u archive.tgz

This works for version 4.25 of QNX. However for older versions of QNX the install program cannot recognize a gzipped tar file.

Solution:

  1. Make the archive executable:
    $ chmod +x archive.sh
  2. Decompose the self-exctracting archive with:
    $ archive.sh -d
    This will create archive.tgz in the current directory.
  3. Rename the archive:
    $ mv archive.tgz archive.pax.gz
  4. Unzip the archive:
    $ gunzip archive.pax.gz
  5. Freeze the archive:
    $ freeze archive.pax
  6. Cd to /
    $ cd /
  7. Install the archive:
    $ install -u /path/to/archive.pax.F