Hi, I wonder if someone can help me with what is probably a very easy question.
I'm relatively new to UNIX and have recently been trying to get into it more since I bought a new Mac. 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:
#!/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. /lib/cpp doesn't exist on my machine, for example, but I tried changing this to the location of cpp (/usr/bin/cpp) but still no output.
Sorry for the length of the post, it's just frustrating to try and work this out!
Thanks for your time.
--
System information:
iMac G5
Mac OS X 10.3.9
Darwin Kernel Version 7.9.0
OK, I seem to have partially solved the problem. But there are still some things going wrong.
By changing line 8 to CPP="/usr/bin/cpp" and leaving line 10 as it is, dada now seems to pipe things through pb the way it is supposed to. But various things don't work: in particular, some of the test programs and included scripts aren't working properly. Sometimes they quite because of an unrecognised variable, and sometimes I just get a runtime error before the script is even piped to pb (e.g. pomo.pb).
Dear experts,
I am using solaris 10 OS.I am installing CF engine software in the server while doing so ,i am getting following error
checking for BerkeleyDB location in default... configure: error:
>> Cannot find BerkeleyDB
I am installing the Berkely DB 5.3.I am strugging... (1 Reply)