Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    AIK - COBOL Installation

    • Article Type: General
    • Product: Aleph
    • Product Version: 20, 21, 22, 23

    Description:
    On our test server, when running the AIK as root to install COBOL I get the following:

    Install COBOL software as root user

    Enter the location of the Aleph software media files [/exlibris/ftp_from_exlibris] :
    INFO: Cobol 4 licence manager is running
    INFO: It is highly recommended to upgrade to Cobol 5
    INFO: this Upgrade can be done using the KIT but requires down-time for running applications currently installed
    INFO: In case you choose to upgrade, you will need to shut-down other applications, and re-link them to Cobol 5
    INFO: Please Confirm wether to upgrade[Y] or leave it as is[n]:


    After running this the first time and selecting yes everything seemed to install correctly. I then experienced issues in creating the test compile. In checking the logs and subsequently the /exlibris/aleph/a20_1/product/ directory I found that the cobol sym link was pointing at cobol4. After correcting this issue and a subsequent restarting of the server we now see the following in the AIK log

    Thu Jul 15 10:45:45 EDT 2010 Step ikit_6_2
    Run test compilation

    Execute master cshrc
    compile_cbl_files/
    compile_cbl_files/test_cobol.cbl
    test_cobol.cbl
    test_compile_cc.c
    test_compile_pc.pc
    compile_cc_files/
    compile_cc_files/test_compile_cc.c
    compile_cc_files/test_compile_ora.c
    test_compile
    test_compile_ora.pc
    ==============================================
    Creation test_compile directory
    ==============================================
    mkdir: Failed to make directory "/exlibris/aleph/a20_1/alephm/source/test_compile"; File exists
    ==============================================
    Start the compilation check
    ==============================================

    Checking compile_ora...
    compile ora: test_compile_ora.pc

    Pro*C/C++: Release 11.1.0.7.0 - Production on Thu Jul 15 10:45:46 2010

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    System default option values taken from: /oracle/11g/product/precomp/admin/pcscfg.cfg

    compile_cc: test_compile test_compile_ora
    ucbcc: Warning: Option -YP,:/usr/ucblib:/opt/SUNWspro/prod/bin/../lib:/opt/SUNWspro/prod/bin:/usr/ccs/lib:/usr/lib passed to ld, if ld is invoked, ignored otherwise
    ucbcc: Warning: Option -xcg92 passed to ld, if ld is invoked, ignored otherwise
    ucbcc: Invalid input file name /exlibris/aleph/a20_1/product/local/libxml/include, no output generated for this file.
    unknown flag -destination_ir=iropt
    "test_compile_ora.c", line 129: syntax error before or at: signed
    mv: cannot access test_compile_ora.o
    Error: compile_ora compilation is not successful

    Checking compile_pc...
    test_compile_pc.pc

    Pro*C/C++: Release 11.1.0.7.0 - Production on Thu Jul 15 10:45:48 2010

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    System default option values taken from: /oracle/11g/product/precomp/admin/pcscfg.cfg

    ucbcc: Warning: Option -YP,:/usr/ucblib:/opt/SUNWspro/prod/bin/../lib:/opt/SUNWspro/prod/bin:/usr/ccs/lib:/usr/lib passed to ld, if ld is invoked, ignored otherwise
    unknown flag -destination_ir=yabe
    "test_compile_pc.c", line 129: syntax error before or at: signed
    mv: cannot access test_compile_pc
    chmod: WARNING: can't access /exlibris/aleph/a20_1/aleph/exe/test_compile_pc
    Error: test_compile_pc compilation is not successful

    Checking compile_cc...
    compile_cc: test_compile test_compile_cc
    ucbcc: Warning: Option -YP,:/usr/ucblib:/opt/SUNWspro/prod/bin/../lib:/opt/SUNWspro/prod/bin:/usr/ccs/lib:/usr/lib passed to ld, if ld is invoked, ignored otherwise
    ucbcc: Warning: Option -xcg92 passed to ld, if ld is invoked, ignored otherwise
    ucbcc: Invalid input file name /exlibris/aleph/a20_1/product/local/libxml/include, no output generated for this file.
    unknown flag -destination_ir=iropt
    compiler(iropt) error: FCALL with no root
    mv: cannot access test_compile_cc.o
    Error: test_compile_cc.o compilation is not successful

    Checking Cobol compilation...
    Micro Focus LMF - 006: You are not licensed to use this product or version. No licenses for this product or version were found in the license database. Execution of this product has been terminated. Contact your license administrator or Micro Focus product supplier to obtain a license.
    cob32: error(s) in compilation: /exlibris/aleph/a20_1/alephm/scratch/compile_cbl_files/test_cobol.cbl
    iprou: test_compile test_cobol
    mv: cannot access test_cobol.gnt

    Checking create_rts...
    create rts
    ucbcc: Warning: Option -YP,:/usr/ucblib:/opt/SUNWspro/prod/bin/../lib:/opt/SUNWspro/prod/bin:/usr/ccs/lib:/usr/lib passed to ld, if ld is invoked, ignored otherwise
    unknown flag -destination_ir=yabe
    ===============


    Resolution:
    We needed to make 2 changes:

    1) We changed the aleph user's home directory on the system to /exlibris/aleph

    2) In u20_1/alephe/aleph_start, we changed the PATH entry on line 266 to:
      setenv PATH "${PATH}:/opt/SUNWspro/prod/bin:/usr/X/bin"

    [Note that the preceding is for Solaris.]


    • Article last edited: 10/8/2013