![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dada Mail 3.0 Beta 2 (Feature Development branch) | iBot | Software Releases - RSS News | 0 | 05-06-2008 02:40 AM |
| Dada Mail 3.0 beta 1 (Feature Development branch) | iBot | Software Releases - RSS News | 0 | 04-15-2008 11:00 AM |
| Dada Mail 2.11 Alpha 10 (Feature Development branch) | iBot | Software Releases - RSS News | 0 | 02-12-2008 10:30 AM |
| Dada Mail 2.11 Alpha 9 (Feature Development branch) | iBot | Software Releases - RSS News | 0 | 01-01-2008 01:40 AM |
| Installing Firefox and now ended up installing latest glibc | scriptingmani | Linux | 1 | 08-09-2007 01:28 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Installing Dada engine
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
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 Software: Dada engine 1.03 by Andrew C. Bulhak |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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). Any help would be greatly appreciated. |
|
#3
|
|||
|
|||
|
Bump.
It'd be great if someone could give me a hand with this. Please? |
|||
| Google The UNIX and Linux Forums |