The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-23-2005
Registered User
 

Join Date: Aug 2005
Location: Nottingham, UK
Posts: 3
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
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

Software:
Dada engine 1.03 by Andrew C. Bulhak
Reply With Quote
Forum Sponsor
  #2  
Old 08-24-2005
Registered User
 

Join Date: Aug 2005
Location: Nottingham, UK
Posts: 3
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.
Reply With Quote
  #3  
Old 08-31-2005
Registered User
 

Join Date: Aug 2005
Location: Nottingham, UK
Posts: 3
Bump.

It'd be great if someone could give me a hand with this. Please?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0