Despard
Registered
I'm trying to run the dada engine (to generate random text based on rules) but I can't seem to get it to work. I've downloaded the source code, run ./configure, make and sudo make install. It's installed everything I need.
But when I try to run it - no output. I can make the pb program, which is the text generator, work fine if I include commands which don't involve the C preprocessor. The user interface, dada, contains the following code:
Code:
I'm sure there must be a problem with a path in there somewhere or something. I tried changing the empty "" in line 8 to "/usr/bin/cpp", the location of cpp, and I got some output then... but various scripts give runtime or other errors now!
Anyone got any ideas?
But when I try to run it - no output. I can make the pb program, which is the text generator, work fine if I include commands which don't involve the C preprocessor. The user interface, dada, contains the following code:
Code:
Code:
#!/bin/sh
# User interface/wrapper for the Dada Engine
# Author: acb
# Commenced: 14-7-1995
PBDIR="/usr/local/bin"
DADAROOT="/usr/local/lib/dada"
CPP=""
#CPP="/lib/cpp"
#CPPARGS="-lang-c++"
FILES=""
#PB="`dirname $0`/pb"
#INCLUDE="-I`dirname $0`/include -I$DADAROOT/include"
PB="${PBDIR}/pb"
INCLUDE="-I${DADAROOT}/include"
while test $# -gt 0
do
case $1 in
-D*) CPPARGS="$1 $CPPARGS";;
-o) PBARGS="$PBARGS $1 $2"; shift;;
-p) PBARGS="$PBARGS $1";;
-r) PBARGS="$PBARGS $1 $2"; shift;;
-s) PBARGS="$PBARGS $1 $2"; shift;;
-w) PBARGS="$PBARGS $1 $2"; shift;;
*) CPPARGS="$CPPARGS $1";;
esac
shift
done
($CPP $INCLUDE $CPPARGS 2>/dev/null) | $PB $PBARGS
I'm sure there must be a problem with a path in there somewhere or something. I tried changing the empty "" in line 8 to "/usr/bin/cpp", the location of cpp, and I got some output then... but various scripts give runtime or other errors now!
Anyone got any ideas?