z/OS Tools & Language

Expand all | Collapse all

Bison install - No readme

  • 1.  Bison install - No readme

    Posted 07-24-2019 17:08

    I’m trying to install bison on my z/os system. I only see one file bison-2.3_b0009.160825.tar.gz and no readme for z/os.
    What are the correct commands for installing bison?
    Thanks,
    Deb Cosentino



  • 2.  RE: Bison install - No readme

    Posted 07-25-2019 02:25

    Hi djc59,

    Please take a look in share\doc\bison\README.ZOS:

    Tool - bison-2.3
    
    Works only with the encoding EBCDIC
    
    PREREQUISITES
    
    m4 should be installed and the M4 environment variable should be set to path of
    m4 installation directory.
    
    INSTALL
    
    Unpack archive bison-2.3.tar.gz to directory /rsusr/rocket/ or your
    directory.
    Modify script file bin/yacc so that it uses proper path to bison executable file.
    Install the necessary permissions and ownership for files.
    Update environment variables PATH, MANPATH adding the path of your bison
    installation directory.
    Update environment variable BISON_PKGDATADIR to the path of subdirectory
    share/bison of your bison installation directory.
    
    
    Example:
    
     mkdir -p /rsusr/rocket
     gzip -d bison-2.3.tar.gz
     tar -C /rsusr/rocket -xovf bison-2.3.tar
     cd /rsusr/rocket/bin
     echo '#! /bin/sh' >yacc
     echo 'exec /rsusr/rocket/bin/bison -y "$@"' >>yacc
     chmod a+x yacc
     export PATH=$PATH:/rsusr/rocket/bin
     export MANPATH=$MANPATH:/rsusr/rocket/man/
     export BISON_PKGDATADIR=/rsusr/rocket/share/bison
     export M4=/rsusr/rocket/bin/m4
    

    Thanks,
    Alexander



  • 3.  RE: Bison install - No readme

    Posted 07-25-2019 16:49

    Wonderful! Thanks for the info!
    Deb