The following GNV utilities have been observed to exhibit behavior that varies from their UNIX counterparts.
This section provides directions for installing GNV onto your OpenVMS system. The latest GNV software is included in [GNV.KIT] on the Open Source Tools CD-ROM. You can also downline load the GNV software from either of the following locations:
To install the GNV software on your system disk, follow these steps:
$ PRODUCT INSTALL GNV /SOURCE=device-name:[GNV.KIT]
The following product has been selected: DEC AXPVMS GNV V2.1 Layered Product Do you want to continue? [YES]
Configuration phase starting . . .: You will be asked to choose options, if any, for each selected product and for any products that may be installed to satisfy software dependency requirements. DEC AXPVMS GNV V2.1 Do you want the defaults for all options? [YES]
Do you want to review the options? [NO]
Execution phase starting . . .: The following product will be installed to destination: DEC AXPVMS GNV V2.1 DISK$ALPHASYS:[VMS$COMMON.] Portion done:0%...10%...20%...30%...40%...50%...60%...70% ...80%...90%..100% The following product has been installed: DEC AXPVMS GNV V2.1 Layered Product
You can use the PRODUCT INSTALL command to install GNV on a location other than the system disk by specifying the location with the /DESTINATION qualifier. The target disk must be an ODS-5 disk.
The procedure for installing GNV on a location other than the system disk is equivalent to the steps outlined in Section 9.1, except the PRODUCT INSTALL command format in step 3 would be:
$ PRODUCT INSTALL GNV /SOURCE=device-name:[GNV.KIT] /DESTINATION=device-name
Note that the GNV$STARTUP.COM file is placed in the [SYS$STARTUP]
directory on the target disk. You must either copy it to your
SYS$COMMON:[SYS$STARTUP] directory or invoke it on the target disk from
your SYS$MANAGER:SYSTARTUP_VMS.COM file. For more information on the
SYS$STARTUP.COM file, see Section 11.
9.3 If You Move the Target Disk After Installation
The installation procedure creates file GNV_DESTINATION_Alpha.COM or
GNV_DESTINATION_IA64.COM in the [SYS$STARTUP] directory. This file
points to the target location of the GNV kit, including the physical
device specification of the target disk. If you should move the disk on
which you installed GNV, edit the
SYS$STARTUP:GNV_DESTINATION_archname.COM file so that the
device specification correctly reflects the new location.
9.4 Installing the GNV Software in a Cluster
GNV can be installed in a cluster, where the cluster has a common system disk.
GNV must be installed on a common system disk from any one nodes in a cluster. GNV and its directory stucture can be accessed from the other nodes in a cluster by executing the following GNV startup commands:
$ @SYS$SYSDEVICE:[PSX$ROOT]GNV_SETUP.COM $ @SYS$STARTUP:GNV$STARTUP.COM
The procedure of upgrading GNV is similar to the procedure of installing GNV. To upgrade GNV from Version 2.1-1 or Version 2.1-2 to GNV Version 2.1-3, execute the following command at the DCL prompt:
$ PRODUCT INSTALL GNV
The /DESTINATION qualifier is not supported while upgrading, it will upgrade or install the new version in the same location.
An output similar to the following is displayed:
The following product has been selected: DEC AXPVMS GNV V2.1-3 Layered Product Do you want to continue? [YES] YES The following product will be installed to destination: DEC AXPVMS GNV V2.1-3 DISK$ALPHA83:[VMS$COMMON.] The following product will be removed from destination: DEC AXPVMS GNV V2.1-2 DISK$ALPHA83:[VMS$COMMON.] The following product has been installed: DEC AXPVMS GNV V2.1-3 Layered Product The following product has been removed: DEC AXPVMS GNV V2.1-2 Layered Product
10 Uninstalling the GNV Software
To uninstall GNV, execute the following command at the DCL prompt:
$ PRODUCT REMOVE GNV
An output similar to the following is displayed:
The following product has been selected: DEC AXPVMS GNV V2.1-3 Layered Product Do you want to continue? [YES] Continue the procedure by pressing the Enter key for the default (YES). The following product has been removed: DEC AXPVMS GNV V2.1-3 Layered Product
If the new GNV kit is reinstalled into the same destination directory that was specified during previous installation or if the default location was used, the new kit will replace all the older version files with the newer version files in the same installation directory. If you are reinstalling GNV in the same installation directory, do not execute $ PRODUCT REMOVE GNV .
If the new GNV kit is reinstalled into a new location using
/DESTINATION =<new_installation_location>, the previous version of GNV needs to be removed manually using the following command before reinstallation:
$ PRODUCT REMOVE GNV
When reinstalling a product you cannot specify the destination. To change the product's destination, first remove the product and install it to a new location. If you continue to install the product without removing the product, newer version of GNV will be reinstalled in same location.
HP recommends you to uninstall and delete the complete GNV directory manually before installing the new version of GNV.
GNV provides the following command procedures for use with your system.
To use GNV, enter the bash command at the OpenVMS DCL prompt. The bash$ prompt will then appear, as in the following example.
$ bash bash$
Enter bash commands at this prompt, as shown in the following example, in which the ls command is entered:
Alternatively, you can enter a single bash command at the OpenVMS DCL prompt, in the following format:
$ bash -c bash-command
For example, to enter the ls command from the OpenVMS DCL prompt, type the following line. After the contents of the working directory are displayed, the OpenVMS DCL prompt appears again.
$ bash -c ls accountng.dat desktop.dir errorlog. app.exe help.dir $
If the command you are entering has two or more components, the command and components must be surrounded by double quotes as in the following example:
$ bash -c "ls -al"
This section discusses some of the differences observed between GNV
features and utilities on OpenVMS and their counterparts on UNIX
13.1 Root Directory
OpenVMS systems do not have a single root directory similar to that of UNIX systems. The UNIX root directory (/) is the top level of the system file hierarchy. All directories on the system, irrespective of the physical device, are located under the root. On a native OpenVMS system, the closest entity to the UNIX root directory is the toplevel directory of a specific device. The character "/" is not recognized as a directory.
OpenVMS V8.3 has a new feature in the SET ROOT command to specify the location of the root directory. GNV points this root at the primary GNV directory, generally on the system disk. Furthermore, GNV creates a number of directories commonly found immediately under a UNIX root directory: /etc , /usr , /bin , /lib ,. and so forth.
This root directory is the top level of the GNV directory tree. You may
use it to locate numerous files and directories. However, unlike a UNIX
system, it is not true that all files and directories in the system can
be found under the root. To accomplish that, the GNV utility
is used to connect all mounted disks to directory entries under the
directory when the
13.2 Multiple Versions of a File
OpenVMS operating systems maintain multiple versions of a file, with the highest version number being the most recent. UNIX maintains only the most recent version of a file. With a few exceptions, GNV supports this UNIX feature. For example, the rm utility removes all versions of a file. The following are some of the utilities that still act only on the most recent version of a file, leaving earlier versions in place:
For example, if you use
to move (or rename) a file, only the highest version number file is
moved. The lower versions (older) files are left in place.
13.3 Case Sensitivity in File Names
Normally, OpenVMS systems are not case sensitive. However, on ODS-5 devices you can enable case sensitivity for file names by using the following command at the OpenVMS DCL prompt or in a login command file:
The following subsections describe differences in the way OpenVMS GNV
and the UNIX operating system interpret certain characters and lists
characters that are unsupported.
13.4.1 File Names Beginning with a Period
OpenVMS lets you create a file name beginning with a period. The
OpenVMS DIRECTORY command will list such files. UNIX systems consider
such files as hidden. The UNIX
command does not list such files unless, for example, the
option is used or the file name is specified in the command line.
13.4.2 Control Characters
The following control sequences do not work as expected:
The CTRL/@ sequence has not been tested.
14 GNV Version 3.0-1 Packages Upgrade and Version Difference
In GNV Version 3.0-1, 16 packages are upgraded to the latest GNU level out of 24 total packages. The remaining eight packages are not upgraded from GNV Version 2.1-3. Table 2 lists the GNV Version 3.0-1 packages upgrade and version difference. For more information about the latest GNU packages, see the GNU website at http://www.gnu.org/software .
|Package Name||GNV V2.1-3||GNV V3.0-1||Upgrade to latest GNU Version||GNU Website|
|Coreutils||2.0, 2.1, and 4.1||8.5||Yes||http://www.gnu.org/software/coreutils/|
|mnt||2.8||2.8||No||OpenVMS Specific development|
|vitpu||1.4||1.4||No||OpenVMS Specific development|
|vmsutils||No||No||No||OpenVMS Specific development|
|wrapper||No||No||No||OpenVMS Specific development|