Informix

 View Only
  • 1.  r4gl won't work/does nothing

    Posted Wed December 14, 2022 09:55 AM
    Hi:
    After many years of being away from Informix, I am back building an Informix demo.  I want to use the 4gl standard demo.
    For reasons I won't discuss here, I have installed IDS 12 in one directory and 4GL 7 in a different directory.  I'm on centos 8.
    I've never installed tools and engine in separate directories, and it seems a good idea, but I can't find any doc on how that affects environment variables.*
    I have created a file called 4gl.ksh that I source that looks like this:

    OL_INFORMIXDIR=/home/informix/informix.12.10.FC12DE
    INFORMIXDIR=/home/informix/4gl
    INFORMIXSERVER=ol_informix1210
    ONCONFIG=onconfig.ol_informix1210
    INFORMIXSQLHOSTS=/home/informix/informix.12.10.FC12DE/etc/sqlhosts.ol_informix1210
    GL_USEGLU=1
    LD_LIBRARY_PATH=${INFORMIXDIR}/lib:${INFORMIXDIR}/lib/esql:${LD_LIBRARY_PATH}
    export LD_LIBRARY_PATH
    PATH=${INFORMIXDIR}/bin:${INFORMIXDIR}:${OL_INFORMIXDIR}/bin:${OL_INFORMIXDIR}/extend/krakatoa/jre/bin:${PATH}
    export INFORMIXDIR INFORMIXSERVER ONCONFIG INFORMIXSQLHOSTS GL_USEGLU PATH

    I was able to run r4gldemo successfully with this setup.   It creates and loads the stores7 database and moves and compiles files to my current directory*.   I looked into the r4gldemo script and apparently it does this via fglgo...so that works.

    I now try to run 
        r4gl demo4.4gi

    and r4gl literally does nothing.   Just returns to the prompt.    Same thing if I run just r4gl by itself...nothing.

    $ r4gl
    $


    I have INFORMIXTERM set to xterm, which is what my putty is.

    Any thoughts?

    *on a side note, I try to run dbaccess w/ this env setup and I get:
    $ dbaccess
    Unknown error message 32370.

    ------------------------------
    mary schulte
    ------------------------------

    #Informix


  • 2.  RE: r4gl won't work/does nothing

    IBM Champion
    Posted Wed December 14, 2022 10:06 AM
    INFORMIXDIR should point to the DB instance, not to your 4gl dir.

    Best,

    Marcus Haarmann





  • 3.  RE: r4gl won't work/does nothing

    Posted Wed December 14, 2022 11:40 AM
    Thanks for the note Marcus.   That was not the problem.
    I had a great idea to read the release notes this morning :-)
    Turns out I was missing $INFORMIXDIR/lib/tools from my LD_LIBRARY_PATH as well as TERMCAP=$INFORMIXDIR/etc/termcap

    Everything is working now!

    Thank you.

    ------------------------------
    mary schulte
    ------------------------------