Section 2.9: Remote connection to pg8: Up Chapter 2: Install Chapter 3: Set up 

2.10 Check

2.10.1 Commands

The following commands should be created in $AUBITDIR/bin:
4glc
4GL_metrics.cgi
4glpc
a4gl
a4gl.4ae
a4glc
a4glpc
aace
aace_4gl
aace_perl
aace_runner
adbaccess
adbload2
adbschema
adecompile
afinderr
amake
amkmessage
aperform
asql_g.4ae
asql_i.4ae
asql_p.4ae
aubit
aubit-config
aupscol
c2pcode
c2pcode_fgl
checker
checker_fgl
configurator
convertsql
default_frm
ecpg_wrap
fcompile
fdecompile
fshow
generate_aace
genmake
ide1.4ae
layout_engine
link_fgl
loadmap
mcompile
mdecompile
odbctest-iodbc3
odbctest-unixODBC
prepmake
process_report
quick_check_logrep
report_viewer
runforms.4ae
runner
runner_fgl
runner_fgl_wrapper
shtool
sql_parse
unmkmessage
The aace_perl program will not work unless you
make install
or
copy the files report.pm and using.pm from
$AUBITDIR/compilers/ace/perl_runner
to where perl will find it.
To find where perl looks, run the command:
perl -e ’print "@INC";’
This will output a space separated list of directories. If you want each directory on a separate line, assign \n to the perl print output separator variable $" as follows:
perl -e ’$"="\n"; print "@INC";’
Depending on the version of perl the output might look like this:
/usr/lib/perl5/5.10.0/i586-linux-thread-multi
/usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i586-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0
/usr/lib/perl5/vendor_perl
.
To install, copy the file into one of these directories. e.g.:
su
cd $AUBITDIR/compilers/ace/perl_runner
cp report.pm using.pm /usr/lib/perl5/site_perl/5.10.0

2.10.2 Try to compile a simple 4gl hello

MAIN 
  DISPLAY "Hello World" 
END MAIN 
4glpc simple.4gl -o simple
Try to run it:
./simple

2.10.3 With database

Set up a database. This example for PostgreSQL:
export A4GL_SQLTYPE=pg8
export A4GL_LEXTYPE=C
createdb mydb

DATABASE mydb
MAIN 
  DISPLAY "Hello World" 
END MAIN 
4glpc simpledb.4gl -o simpledb
Try to run it:
./simpledb
This assumes that you have an instance of PostgreSQL running. If not, read the Databases chapter, set up the instance, start it, and try the program again.

2.10.4 Test Programs

If both the above tests worked, congratulations!
For a more vigorous test:
cd $AUBITDIR/tools/test
make
./hello.4ae
./hello2.4ae
./hello_db.4ae
If all these programs work then you have almost certainly successfully installed at the basic Aubit4GL functionality.

2.10.5 For Informix

2.10.5.5.1 Cient SDK
To use Aubit4GL with Informix engines, you need the Informix Client Software Kit which is free but only available if you have a validly licensed Informix engine.
Configure the CSDK (normally the $INFORMIXDIR/etc/sqlhosts etc)
2.10.5.5.2 Check the SDK
Try a simple esql/c program like :
main() { 
  $whenever error stop; 
  $database mydb; 
} 
$ esql somefile.ec -o somefile 
$ ./somefile 
Compile and run it. If doesn’t this is an Informix setup problem. Check out why.
Most likely : .rhosts/hosts.equiv is not set up properly, user doesn’t exist on the remote machine, /etc/services isn’t set up, /etc/hosts isn’t set up, or a remote server isn’t allowing tcp connections only shared memory ones.
2.10.5.5.3 Set Up Aubit
Check that you have a
$AUBITDIR/lib/plugins-1.2_14/libSQL_esql.so

export AUBITDIR=/local/opt/aubit4glsrc 
export A4GL_SQLTYPE=esql 
export A4GL_LEXTYPE=EC 
2.10.5.5.4 Try to compile a simple 4gl
database mydb 
main 
  display "Hello World" 
end main 
4glpc simple.4gl -o simple.4ae
2.10.5.5.5 Try to run it
Try to run that simple.4ae
 Section 2.9: Remote connection to pg8: Up Chapter 2: Install Chapter 3: Set up