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 06:40 AM
Dada Mail 3.0 beta 1 (Feature Development branch) iBot Software Releases - RSS News 0 04-15-2008 03:00 PM
Dada Mail 2.11 Alpha 10 (Feature Development branch) iBot Software Releases - RSS News 0 02-12-2008 01:30 PM
Dada Mail 2.11 Alpha 9 (Feature Development branch) iBot Software Releases - RSS News 0 01-01-2008 04:40 AM
Installing Firefox and now ended up installing latest glibc scriptingmani Linux 1 08-09-2007 05:28 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-23-2005
cptj cptj is offline
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
  #2 (permalink)  
Old 08-24-2005
cptj cptj is offline
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.
  #3 (permalink)  
Old 08-31-2005
cptj cptj is offline
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?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0