RJLRef: $CASE/gen/ver_12/genv12.hlp (ln -s $CASE/gen/ver_12/how2rungenv12.hlp ~/genv12test/how2rungenv12.hlp) How to run chgen ver_12: (in response to this FAQ:) ---------------- > I didn't find any executable for linux (mercury) under /nfs/earth/misc/proj3/c ase/gen/chgen/executables. I tried to make executable by copying the source from /nfs/earth/misc/proj3/case/gen/chgen/src and getting some compilation errors. > > Can you please point me for the correct executable/source for linux(mercury)? ------------------ You won't find genv12 sources there. You will find them below YOu need to rlogin via ssh saturn or ssh venus. Go to your test directory and execute tcsh setenv $CASE /usr/proj3/case csh $CASE/gen/ver_12/executables/chgen -option... yourSIS.sch Because: -------------- saturn.cs.uml.edu(58)> echo $HOSTTYPE alpha venus.cs.uml.edu(40)> echo $HOSTTYPE alpha venus.cs.uml.edu(41)> pwd /nfs/earth/misc/proj3/case/gen/ver_12 venus.cs.uml.edu(40)> echo $HOSTTYPE alpha venus.cs.uml.edu(41)> pwd /nfs/earth/misc/proj3/case/gen/ver_12 venus.cs.uml.edu(42)> lg exec*/alpha total 1196 -rwxr-xr-x 1 lechner genxml 1218816 Sep 2 02:58 chgen12 ------------ Chgenv 12 run Example1: when no options or .sch file are passed) (Usage info is printed out) (this chgen shell proc is for csh or tcsh, not sh or bash) venus.cs.uml.edu(88)> pwd /nfs/earth/faculty/fac1/lechner venus.cs.uml.edu(89)> csh $CASE/gen/ver_12/chgen ------------------------------------------------------------ path = /usr/local/bin /usr/bin /usr/bin/X11 /usr/ucb /bin /usr/bin . /usr/common /bin /usr/opt/java122/bin /usr/common/bin PATH after set path ...: /usr/local/bin:/usr/bin:/usr/bin/X11:/usr/ucb:/bin:/usr/bin:.:/usr/common/bin:/u sr/opt/java122/bin:/usr/common/bin path from .tcshrc: /usr/local/bin /usr/bin /usr/bin/X11 /usr/ucb /bin /usr/bin . /usr/common/bin /usr/opt/java122/bin /usr/common/bin PATH from .tcshrc: /usr/local/bin:/usr/bin:/usr/bin/X11:/usr/ucb:/bin:/usr/bin:. :/usr/common/bin:/usr/opt/java122/bin:/usr/common/bin gendir /usr/proj3/case/gen/ver_12/ exec = /usr/proj3/case/gen/ver_12//executables/alpha/chgen12 Running chgen on venus.cs.uml.edu [alpha]. Compiled: (1218816 Sep, 2) Chgen V 12 by Sathya, report errors to Dr. Lechner: CHGEN-F-INVARGS, Usage: chgen 'schema-filename'[.sch] [-keysize=n] [-nobp] [-ans i] [-quiet] [-validate] [-noforward] [-maxviews=n] [-noorder] [-gendbschema] [-m etafile] [-nosource] [-datinput] [-log] [-viewname ] venus.cs.uml.edu(90)> ----------------------------------------------------------- =================================================== chgenv12 run Example 2: when a .sch file is passed (without -options): venus.cs.uml.edu(213)> cd cd venus.cs.uml.edu(214)> cd genv12test cd genv12test venus.cs.uml.edu(215)> lg lg total 4 -rwxr-xr-x 1 lechner 7029 1070 Aug 13 1993 93suolc_bugtable.sch venus.cs.uml.edu(216)> csh $CASE/gen/ver_12/chgen.csh 93suolc_bugtable.sch csh $CASE/gen/ver_12/chgen.csh 93suolc_bugtable.sch path = /usr/local/bin /usr/bin /usr/bin/X11 /usr/ucb /bin /usr/bin . /usr/common /bin /usr/opt/java122/bin /usr/common/bin PATH after set path ...: /usr/local/bin:/usr/bin:/usr/bin/X11:/usr/ucb:/bin:/usr/bin:.:/usr/common/bin:/u sr/opt/java122/bin:/usr/common/bin path from .tcshrc: /usr/local/bin /usr/bin /usr/bin/X11 /usr/ucb /bin /usr/bin . /usr/common/bin /usr/opt/java122/bin /usr/common/bin PATH from .tcshrc: /usr/local/bin:/usr/bin:/usr/bin/X11:/usr/ucb:/bin:/usr/bin:. :/usr/common/bin:/usr/opt/java122/bin:/usr/common/bin gendir /usr/proj3/case/gen/ver_12/ exec = /usr/proj3/case/gen/ver_12//executables/alpha/chgen12 Running chgen on venus.cs.uml.edu [alpha]. Compiled: (1218816 Sep, 2) Chgen V 12 by Sathya, report errors to Dr. Lechner: CHGEN Chgen V 12 - Sathya, released Tue Mar 05 23:00:00 GMT 2002, Copyright 2002 , University of Mass - Lowell CHGEN-I-DEFAULTQUAL, Using default key size of 8 characters Processing Complete venus.cs.uml.edu(217)> lg lg total 148 -rw------- 1 lechner fac 39718 Sep 30 23:54 93suolc_bugtable.h -rwxr-xr-x 1 lechner 7029 1070 Aug 13 1993 93suolc_bugtable.sch -rw------- 1 lechner fac 9232 Sep 30 23:54 pr_delete.c -rw------- 1 lechner fac 4442 Sep 30 23:54 pr_dump.c -rw------- 1 lechner fac 1595 Sep 30 23:54 pr_free.c -rw------- 1 lechner fac 73423 Sep 30 23:54 pr_load.c -rw------- 1 lechner fac 3644 Sep 30 23:54 pr_stats.c venus.cs.uml.edu(218)> chmod 644 ./* This .sch file contains one table, for which 3500 SLOC were generated: venus.cs.uml.edu(239)> wc *.h *.c wc *.h *.c 811 3790 39718 93suolc_bugtable.h 214 1031 9232 pr_delete.c 110 509 4442 pr_dump.c 39 151 1595 pr_free.c 2312 7515 73423 pr_load.c 79 269 3644 pr_stats.c 3565 13265 132054 total ====================================================== genv12 run Example 3: With options -metafile -ansi -log -nobp: See ~lechner/genv12test2/aareadme ================================================== To rebuild genv12 for a Linux platform, copy the most recent sources and Makefile from $CASE/gen/ver_12/sjaganat/src AND read $CASE/gen/ver_12/aareadme for more info.