Installing Hercules Emulator (System/370, ESA/390, and z/Architecture )
Hercules can be used to emulate a mainframe environment on your computer.
Installation Procedure
Building from source - Windows (without Cygwin)
For building the MSVC version of Hercules on Windows (a version of Hercules that does not require Cygwin), Fish has instructions on his "MSVC Hercules Build Instructions" web page at http://www.softdevlabs.com/Hercules/hercules-msvc-build.html.
Building from source - Windows with Cygwin
For building the Cygwin version of Hercules on Windows, Volker Bandke has instructions on his "Building Hercules for Windows" web page at http://www.bsp-gmbh.com/hercules/herc_w32_2.html.
Building from source - Linux and Mac OS X
- Download the distribution file hercules-3.07.tar.gz
Note: By downloading this file you agree to the terms of the Q Public Licence. - Use these commands to unzip the distribution file:
tar xvzf ../hercules-3.07.tar.gz
cd hercules-3.07
- Verify you have all of the correct versions of all of the required packages installed:
./util/cvslvlck
- Configure Hercules for your system:
./configure
By default, the configure script will attempt to guess appropriate compiler optimization flags for your system. If its guesses turn out to be wrong, you can disable all optimization by passing the
--disable-optimization
option to configure, or specify your own optimization flags with--enable-optimization=FLAGS
For additional configuration options, run:
./configure --help
- Build the executables:
make
- Install the programs: as root:
make install
Important: You must use at least version 2.95 of the gcc compiler and the glibc2 library. Refer to the Hercules Frequently-Asked Questions page for required compiler and other software levels.
Installing prebuilt RPMs:
- Download the RPM file you want:
- hercules-3.07-1.i686.rpm: 32-bit Intel
- hercules-3.07-1.x86_64.rpm: 64-bit Intel
- Install the RPM:
rpm -Uvh
RPMfile
This will leave the Hercules executables in /usr/bin and the dynamic libraries in /usr/lib and /usr/lib/hercules, where you can run them from anywhere. Sample configuration files will be placed in /etc/hercules, and the IPLable card deck for the ZZSA standalone utility will be placed in /var/share/hercules.
Installing Debian packages:
Debian packages are available for "woody" and later releases.
- Using apt:
apt-get install hercules
- Manually with dpkg:
- Download a .deb package
dpkg -i
DEB
Installing on Gentoo Linux:
Hercules is installed like any other Gentoo package: do emerge --sync
if you haven't done it lately, then emerge hercules
.
Do not try to override the optimization flags automatically selected by configure
. Hercules stresses the gcc optimizer, and will break in subtle ways if the wrong optimization settings are used.
Installing on Mac OS X:
- Download the compressed disk image: hercules-3.07-tiger.dmg, hercules-3.07-leopard.dmg, or hercules-3.07-snowleopard.dmg. This package is a universal binary and requires the OS X version in the name, either 10.4 (Tiger), 10.5 (Leopard), 10.6 (Snow Leopard) or later. The Leopard and Snow Leopard versions include native 64-bit host support, while the Tiger version does not. The Tiger and Leopard versions will run on Intel or PowerPC Macs, while the Snow Leopard version will only run on Intel, as with Snow Leopard itself.
- Mount the image by double-clicking on it in the Finder. Your web browser may have done that for you already.
- Installation and use instructions are in the file
OS X ReadMe.rtf
. - If you want to use CTC networking on your Hercules system, you will need to install the supplied Tunnel driver.
Installing on Windows (without Cygwin):
- Download the Windows 32-bit Installer package or the Windows 64-bit Installer package.
- Use the Windows Installer to install Hercules. The Windows Installer is included in Windows XP. It may already be on your older Windows system, depending on what other software you've installed. If it is, double-clicking on the Hercules package file will install Hercules. If not, you can download the Windows Installer for Windows NT and 2000 by following this link, or the Windows Installer for Windows 98 and ME by following this link.
- You will probably also want to install Fish's Hercules GUI for Windows. You can get it from http://www.softdevlabs.com/Hercules/hercgui-index.html.
Installing on Windows with Cygwin:
- Hercules 3.07 is now supplied as prebuilt binaries only in a native Windows version. This version will work perfectly well under Cygwin, as well as native Windows, and does not require any specific version of the Cygwin libraries. Follow the instructions above to install the native Windows version.
Configuration Procedure
You will need to amend the configuration file hercules.cnf to reflect your device layout and intended mode of operation (S/370, ESA/390, or z/Architecture). See the Hercules Configuration File page for a complete description.
Creating DASD volumes
The Creating Hercules DASD page describes various methods of creating and loading virtual DASD volumes. The compressed CKD DASD support is described in this page
Creating DASD volumes
The Creating Hercules DASD page describes various methods of creating and loading virtual DASD volumes. The compressed CKD DASD support is described in this page.
Operating Procedure
Note: If you intend to run any licensed software on your PC using Hercules, it is your responsibility to ensure that you do not violate the software vendor's licensing terms.
Starting Hercules
To start Hercules enter this command at the Unix or Windows command prompt:
hercules [ -f filename ]
[ -d ]
[ -p dyndir ] [[-l dynmod ] ... ]
[ > logfile ]
where:
filename
- is the name of the configuration file. The default, if none is specified, is hercules.cnf. The default may be overridden via the
HERCULES_CNF
environment variable.
-d
- specifies that Hercules is to be run in 'daemon' mode, wherein it runs invisibly with no attached console.
dyndir
- is the directory from which dynamic modules are to be loaded. The default depends on the host platform on which Hercules is being run. This option overrides the default.
dynmod
- is the name of an additional dynamic module to be loaded at startup. More than one additional module may be specified, although each must be preceded with the
-l
option specifier.
logfile
- is an optional log file which will receive a copy of all messages displayed on the control panel
Next connect a tn3270 client to the console port (normally port 3270). The client will be connected to the first 3270 device address specified in the configuration file (this should be the master console address). If your master console is a 1052 or 3215, connect a telnet client instead of a tn3270 client.
Now you can enter an ipl command from the control panel.
____________________________________________________
For more info please check: http://www.hercules-390.org
Tags : hercules, main frame, emulator, mvs, ibm
Rate this post