Friday, August 15, 2014

COBOL Installation on Linux Environment

*******************************
To check the status(Login as root user):
*******************************
[root@servername01 lmf]# pwd
/opt/cobol/lmf
[root@servername01 lmf]# ./lmfgetpv
License Manager is not running

[root@servername01 aslmf]#
/opt/cobol/aslmf
[root@servername01 aslmf]# ./mflmman (To Start the License Manager)

MF-LMF:Tue Oct 15 04:26:52 2013: LMF Starting
[root@servername01 aslmf]#


[root@servername01 lmf]# ./lmfgetpv
License Manager version 130
Loaded from /opt/cobol/aslmf
[root@servername01 lmf]#

[root@servername01 aslmf]# ps -ef|grep manager(grep command to check status)

root     22517     1  0 04:26 ?        00:00:00 ./mflm_manager
root     22522 12544  0 04:27 pts/6    00:00:00 grep manager

**********************************************

Setup of environment variables (Login as normal user):
**********************************************
* $ COBDIR=/opt/cobol/;export COBDIR
* $ PATH=$PATH:/opt/cobol/lib;export PATH
* $ PATH=$PATH:/opt/cobol/bin;export PATH
* $ PATH=$PATH:/opt/cobol/microfocus/mflmf/lib;export PATH
* $ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$COBDIR/lib;export LD_LIBRARY_PATH
* $ LIBPATH=$LIBPATH:$COBDIR/lib;export LIBPATH
* $ cob
    I see no work (This indicates that environment variables setup done properly)
* $

*********
Installation:
*********
1.Log in as root.

2.Create a directory (if it does not exist) where you want to install the Micro Focus Server Express 5.1WP6.
For example: mkdir /opt
                      mkdir /opt/cobol

3.Change directory to the one you created above.
  $ cd /opt/cobol

4.Copy or ftp the Micro Focus Server Express 5.1 WP6 tar file that you obtained from Oracle    Software Delivery Cloud (http://edelivery.oracle.com) to this directory:/opt/cobol
In this example, the file name is sx51_wp6_redhat_x86_64_dev.tar.

6.Extract the tar file:
  $ tar -xvf sx51_wp6_redhat_x86_64_dev.tar

7.List the items in the directory with the following commands:
  $ ls
    ADISCTRL bin demo dialog dynload es etc install lib snmp sx51_ws6_redhat_x86_64_dev.tar xdb aslmf cpylib deploy docs dynload64 eslmf-mess include lang lmf src terminfo


8.To begin the installation, type:
   [root@servername01 cobol]# ./install
  This script will install Micro Focus Server Express 5.1 on this computer.
  The readme.txt file included in this delivery contains details of
  new features, enhancements and any restrictions of which you should
  be aware. This file is located in :
 /opt/cobol/docs
We strongly recommend you read this file once the installation is complete.
Do you wish to continue (y/n): y
--------------------------------------------------------------------------------
Before installing and using this software product you must
agree to be bound by the terms and conditions of the end user
license agreement ("License Agreement") which accompanies this product.
Please take this time to read the License Agreement. If you are not in
agreement with the terms and conditions of the License Agreement, please
return the product to your Account Representative and your money will
be refunded.  If you require a replacement copy of the License
Agreement, please contact your Account Representative before proceeding
with the install process.
Do you agree to the terms of the License Agreement? (y/n): y
--------------------------------------------------------------------------------
                 Micro Focus Install
This product was not built or tested on this version
of the Operating System.
This product was built on Operating System:
Linux 2.6.9-11.ELsmp x86_64
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
and you are installing it on Operating System:
Linux 2.6.39-400.109.5.el6uek.x86_64
Any product issues you report will only be corrected if
they can be reproduced on one of our systems running:
Linux 2.6.9-11.ELsmp x86_64
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
Linux 2.6.9-67.ELsmp i686
Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
Linux 2.6.18-238.el5 x86_64
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Linux 2.6.18-238.el5 i686
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Linux 2.6.32-131.0.15.el6.x86_64 x86_64
Red Hat Enterprise Linux Server release 6.1 (Santiago)
Linux 2.6.18-194.el5 x86_64
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Please confirm that you want to continue with this installation (y/n): y
--------------------------------------------------------------------------------
When you press return you will be shown details of the reference
environment (and any compatibility environments).
Please press return when you are ready:
This product is certified on the following reference environment:
The command(s) used to gather the information is given following each entry.
Operating System
----------------
Linux 2.6.9-11.ELsmp x86_64
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
uname -s
uname -r
uname -m
cat /etc/redhat-release
C Compiler
----------
cc gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
gcc -v 2>&1 | tail -1
C++ Compiler
------------
/usr/bin/g++ gcc version 3.4.6
g++ -v 2>&1 | tail -1
Assembler
---------
as GNU assembler version 2.15.92.0.2 (x86_64-redhat-linux) using BFD version 2.15.92.0.2 20040927
as -v 2>&1 < /dev/null
Linker
------
ld GNU ld version 2.15.92.0.2 20040927
ld -V 2>&1 | head -1
Supported versions of Java
--------------------------
Java version = 1.4.2_03
Java vendor = Sun Microsystems Inc.
Java OS name = Linux
Java OS arch = i386
Java OS version = 2.6.9-11.ELsmp
Java version = 1.5.0_07
Java vendor = Sun Microsystems Inc.
Java OS name = Linux
Java OS arch = i386
Java OS version = 2.6.9-11.ELsmp
Java version = 1.5.0_07
Java vendor = Sun Microsystems Inc.
Java OS name = Linux
Java OS arch = amd64
Java OS version = 2.6.9-11.ELsmp
Java version = 1.6.0_15
Java vendor = Sun Microsystems Inc.
Java OS name = Linux
Java OS arch = i386
Java OS version = 2.6.9-11.ELsmp
Java version = 1.6.0_15
Java vendor = Sun Microsystems Inc.
Java OS name = Linux
Java OS arch = amd64
Java OS version = 2.6.9-11.ELsmp
$JAVA_HOME/bin/java -classpath $COBDIR/lib  WhatJava
Unicode
-------
Unicode mapping tables must be installed for J2EE and Web Services to
function correctly. These tables are required for converting between
any combination of UTF-16/UCS-2, UTF-8 and other installed locales.
COBOL/J2EE Connectivity
-----------------------
COBOL/J2EE connectivity is supported on this Reference Environment with the
following Application Server products :
o JBoss 4.0.2
o BEA WebLogic 9.0
o IBM WebSphere 6.0
o IBM WebSphere 6.1
o IBM WebSphere 7.0
See the on-disk readme, $COBDIR/docs/readme.txt, for further information.
--------------------------------------------------------------------------------
This product is also certified on the following environment:
Operating System
----------------
Linux 2.6.9-67.ELsmp i686
Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
uname -s
uname -r
uname -m
cat /etc/redhat-release
C Compiler
----------
cc gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
gcc -v 2>&1 | tail -1
C++ Compiler
------------
/usr/bin/g++ gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
g++ -v 2>&1 | tail -1
Assembler
---------
as GNU assembler version 2.15.92.0.2 (i386-redhat-linux) using BFD version 2.15.92.0.2 20040927
as -v 2>&1 < /dev/null
Linker
------
ld GNU ld version 2.15.92.0.2 20040927
ld -V 2>&1 | head -1
--------------------------------------------------------------------------------
This product is also certified on the following environment:
Operating System
----------------
Linux 2.6.18-238.el5 x86_64
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
uname -s
uname -r
uname -m
cat /etc/redhat-release
C Compiler
----------
cc gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
gcc -v 2>&1 | tail -1
C++ Compiler
------------
/usr/bin/g++ gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
g++ -v 2>&1 | tail -1
Assembler
---------
as GNU assembler version 2.17.50.0.6-14.el5 (x86_64-redhat-linux) using BFD version 2.17.50.0.6-14.el5 20061020
as -v 2>&1 < /dev/null
Linker
------
ld GNU ld version 2.17.50.0.6-14.el5 20061020
ld -V 2>&1 | head -1
--------------------------------------------------------------------------------
This product is also certified on the following environment:
Operating System
----------------
Linux 2.6.18-238.el5 i686
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
uname -s
uname -r
uname -m
cat /etc/redhat-release
C Compiler
----------
cc gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
gcc -v 2>&1 | tail -1
C++ Compiler
------------
/usr/bin/g++ gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
g++ -v 2>&1 | tail -1
Assembler
---------
as GNU assembler version 2.17.50.0.6-14.el5 (i386-redhat-linux) using BFD version 2.17.50.0.6-14.el5 20061020
as -v 2>&1 < /dev/null
Linker
------
ld GNU ld version 2.17.50.0.6-14.el5 20061020
ld -V 2>&1 | head -1
--------------------------------------------------------------------------------
This product is also certified on the following environment:
Operating System
----------------
Linux 2.6.32-131.0.15.el6.x86_64 x86_64
Red Hat Enterprise Linux Server release 6.1 (Santiago)
uname -s
uname -r
uname -m
cat /etc/redhat-release
C Compiler
----------
cc gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC)
gcc -v 2>&1 | tail -1
C++ Compiler
------------
/usr/bin/g++ gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC)
g++ -v 2>&1 | tail -1
Assembler
---------
as GNU assembler version 2.20.51.0.2 (x86_64-redhat-linux) using BFD version version 2.20.51.0.2-5.20.el6 20091009
as -v 2>&1 < /dev/null
Linker
------
ld GNU ld version 2.20.51.0.2-5.20.el6 20091009
ld -V 2>&1 | head -1
--------------------------------------------------------------------------------
This product is also certified on the following environment:
Operating System
----------------
Linux 2.6.18-194.el5 x86_64
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
uname -s
uname -r
uname -m
cat /etc/redhat-release
C Compiler
----------
cc gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
gcc -v 2>&1 | tail -1
C++ Compiler
------------
/usr/bin/g++ gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
g++ -v 2>&1 | tail -1
Assembler
---------
as GNU assembler version 2.17.50.0.6-14.el5 (x86_64-redhat-linux) using BFD version 2.17.50.0.6-14.el5 20061020
as -v 2>&1 < /dev/null
Linker
------
ld GNU ld version 2.17.50.0.6-14.el5 20061020
ld -V 2>&1 | head -1
Please confirm your understanding of the above reference environment
details (y/n): y
bin/cobconvstrtest: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
WARNING: unable to find sockets library /usr/lib/libc
CCITCP requires support from this library. Executables linked without this
library cannot run applications that use CCITCP functionality.
If you require this support, you will need to install the
TCP/IP Development System libraries prior to installation of your COBOL system.
--------------------------------------------------------------------------------
Do you want to make use of COBOL and Java working together? (y/n): n
Skipping Java setup
Should you want to use Java with COBOL later on
as super user run the command /opt/cobol/bin/java_setup
to select the version of Java you want to use.
--------------------------------------------------------------------------------
This product is protected using the Micro Focus License Management
Facility (LMF). Please refer to the Development System Licensing Guide
for information relating to the installation of the licensing system
and licenses.
If you do not have LMF installed or want to upgrade to the latest version,
we recommend you install it now.
Would you like to install LMF now? (y/n): y
A possibly older version of License Manager than this one is
currently running on the system.
However the directory it was loaded from no longer exists.
DO YOU WANT THE CURRENTLY RUNNING LICENSE MANAGER TO BE STOPPED NOW? (y/n)y
License Manager successfully terminated
LICENSE MANAGER REMOVED
Do you want to continue installation of this version of License Manager (y/n)?
Please consult the Development Licensing Guide for detailed information
on how to install licenses.
This may be done by running the mflicense tool.
--------------------------------------------------------------------------------
To run your applications you need a deployment license installed using Apptrack.
See your Deployment Licensing Guide for details.
Installing Apptrack...
Access permissions on directory /var/mfaslmf have changed on this release
Write access permission has been removed except for superuser use
Apptrack installation complete
--------------------------------------------------------------------------------
This product can be used in either 32-bit or 64-bit modes.
Please enter either 32 or 64 to set the system default mode: 64
System default COBMODE has been set to 64.
--------------------------------------------------------------------------------
Installing documentation. Please wait...
--------------------------------------------------------------------------------
Enterprise Server provides a scalable, managed and high-performance
transactional environment for the deployment of COBOL applications
and services, COBOL/J2EE applications and direct COBOL Web Services.
Your Enterprise Server requires configuration. You can either do it now
or later. To do it now you need to know the alphanumeric user ID of the
Enterprise Server System Administrator.
To do it later, enter the following commands whilst logged in as root :
 /opt/cobol/bin/eslminstall
 /opt/cobol/bin/casperm
Do you wish to configure Enterprise Server now? (y/n): y
The use of Enterprise Server requires the Enterprise Server License Manager
to be running.
Do you want the Enterprise Server License Manager to be automatically
started at boot time? (y/n): y
Before continuing this installation, please ensure that you have the
alphanumeric user ID of the Enterprise Server System Administrator to hand.
You can find more information in the Configuration and Administration Guide.
Press 'q' to quit or return to continue:
The responses to the following questions will be used to help construct your
global transaction system configuration file (cas.cfg) - see your Configuration
and Administration Guide for more information.
Do you want error/warning messages to be displayed via the
syslog daemon? (y/n): psoft
Please enter y or n
Do you want error/warning messages to be displayed via the
syslog daemon? (y/n): y
Enter the alphanumeric user ID of the Enterprise Server System
Administrator.: psoft
Enter the directory where you want the Enterprise Server run-time system files
to reside. Please enter the absolute path. Do not use environment variables.
Press return to use /var/mfcobol/es
/opt/cobol/es
Setting file permissions. Please wait...
Processing -f option...
Enterprise Server configuration complete
--------------------------------------------------------------------------------
XDB is a fully-functional ANSI-compliant relational database
management system, providing support for SQL data access for
development purposes.
Do you want to install XDB? (y/n): n
Skipping XDB install.
Should you want to install XDB later on, run the following command
as the root user :
 sh /opt/cobol/xdb/xdb_install
--------------------------------------------------------------------------------
(remember to set COBDIR to /opt/cobol,
include /opt/cobol/lib in LD_LIBRARY_PATH
and include /opt/cobol/bin on your PATH)
WARNING: Any executables (whether a Run-Time System or an application)
must be relinked using this new release. Otherwise, the results of
running the older executables with this new release are undefined.
 
Installation completed successfully.

The COBOL system is ready to use.

1 comment :

  1. Hi..have installed peoplesoft system in my laptop ..oracle VM virtual box Linux machine..have installed temp licence successfuly..I'm getting error while compiling COBOL files..can you please help me ..Ela 9566180430

    ReplyDelete