Re: c4gl Compile Time Connection Error
Posted in 2004
INFORMIXSQLHOSTS is not listed as a known environment variable in the 4GL
manual: try creating the standard file "/opt/informix/etc/sqlhosts". Also,
try setting ONCONFIG as well TBCONFIG. DBSERVERNAME is generally not a
recognised environment variable. You shouldn't need "sqlexecd" unless you
are running Standard Engine.
Let me know how you get on!
Regards,
Doug Lawry
www.douglawry.webhop.org
"Du Toit Scheepers" <dutoit@infoagent.co.za> wrote:
> Hi,
>
> My setup
>
> Redhat Linux v8
> Informix Online
> dbaccess 5.20.UC1
> IBM INFORMIX-4GL Version 7.32.UC1 (i4gl)
>
> INFORMIXDIR is set to /opt/informix
> TBCONFIG=tbconfig.eng
> INFORMIXSERVER=online> DBSERVERNAME=online
> INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts.eng>
> /opt/informix/etc/tbconfig.eng
> ------------------------------
> DBSERVERNAME online
> NETTYPE soctcp,1,60,NET>
> sqlhosts.eng
> -------------
> online onsoctcp linux sqlexec>
> /etc/services
> -------------
> sqlexec 1542/tcp
>
> /etc/hosts
> ----------
> 127.0.0.1 linux localhost.localdomain localhost
>
> I have been fiddling with this setup for three days now, and my files
> are still not compiling:
>
> When running dbaccess I am able to create a database with tables no
> problem.
>
> BUT
>
> When trying to compile a .4gl file with c4gl -c filename.4gl I get the
> following error message:
>
> Attempt to connect to database server (online) failed. See error
> number -908
>
> I am stumped. Any ideas out there?
>
> Thanks in advance,
>
> Du Toit Scheepers