[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lojban] Parsers won't compile in Linux



Hello every body

I just signed up for this list. I have some trouble with the parsers available in lojban.org.

I use Ubuntu 8.10 and when I downloaded the .gz file and unziped it, then I went in to the directory of the unziped file and gave the command mentioned in the description page of the parser. Here I put the text of my screen:

cc -o parser *.c
cc: *.c: No existe el fichero ó directorio
cc: no hay ficheros de entrada

This would translate as:

cc -o parser *.c
cc: *.c: There is no such file or directory
cc: There are no input files

Then I tried to compile jbofi'e but that was harder and it didn't work either. I downloaded the packages the author says are needed (the ones recommended):

- bison (yacc probably OK, edit the makefile)
- flex (lex probably OK, ditto)
- an ANSI C compiler (gcc recommended)
- perl
- make (GNU make recommended)

then gave the commands detailed for a default installation

perl config.pl --prefix=/usr/local
make all
make install

But I got the following output:

oscar@OSCAR-MOVIL:~/Documentos/lojban/jbofihe-0.38$ sudo perl config.pl --prefix=/usr/local
oscar@OSCAR-MOVIL:~/Documentos/lojban/jbofihe-0.38$ sudo make all
sed -e 's/[$]Name: \(.*\) [$]/\1/;' < version.txt > version.h
gcc -O2  -DHAVE_MMAP=1 -DDEFAULT_DICTIONARY=\"/usr/local/lib/jbofihe/smujmaji.dat\" -c smujajgau.c
perl canonluj.pl < reduced_gismu > canonluj.inc
gcc -O2  -DHAVE_MMAP=1 -DDEFAULT_DICTIONARY=\"/usr/local/lib/jbofihe/smujmaji.dat\" -c canonluj.c
gcc -O2  -DHAVE_MMAP=1 -DDEFAULT_DICTIONARY=\"/usr/local/lib/jbofihe/smujmaji.dat\" -o smujajgau smujajgau.o canonluj.o
perl mkdict.pl > gismu_cmavo.dict
rm -f smujmaji.dat
./smujajgau smujmaji.dat gismu_cmavo.dict
Reading file gismu_cmavo.dict ...
Building transaction array from list ...
Sorting transaction array ...
Crunching transaction array ...
Write database ...
if [ -r lujvo-list ]; then \
        perl lujvod.pl < ./lujvo-list > lujvo.dict ;\
        ./smujajgau smujmaji.dat lujvo.dict ;\
    fi
if [ -r NORALUJV.txt ]; then \
        perl noralujv.pl > noralujv.dict ;\
        ./smujajgau smujmaji.dat noralujv.dict ;\
    fi
./smujajgau smujmaji.dat extradict places.dat patterns
Reading existing database ...
Reading file extradict ...
Reading file places.dat ...
Reading file patterns ...
Building transaction array from list ...
Sorting transaction array ...
Crunching transaction array ...
Write database ...
flex -t uncom.l > uncom.c
gcc -O2 -c uncom.c
<stdout>:536:25: error: la macro "yywrap" recibió 1 argumentos, pero solamente tomó 0
make: *** [uncom.o] Error 1
oscar@OSCAR-MOVIL:~/Documentos/lojban/jbofihe-0.38$ sudo make install
gcc -O2 -c uncom.c
<stdout>:536:25: error: la macro "yywrap" recibió 1 argumentos, pero solamente tomó 0
make: *** [uncom.o] Error 1
oscar@OSCAR-MOVIL:~/Documentos/lojban/jbofihe-0.38$

That last part seems to translate as:

gcc -O2 -c uncom.c
<stdout>:536:25: error: the macro "yywrap" recieved 1 arguments, but only took 0
make: *** [uncom.o] Error 1
oscar@OSCAR-MOVIL:~/Documentos/lojban/jbofihe-0.38$ sudo make install
gcc -O2 -c uncom.c
<stdout>:536:25: error: the macro "yywrap" recieved 1 arguments, but only took 0
make: *** [uncom.o] Error 1
oscar@OSCAR-MOVIL:~/Documentos/lojban/jbofihe-0.38$

Please Help! these parsers would be realy useful to have.

Oscar


Madonna, Avril Lavigne, Maroon 5 y muchos más, En Vivo, sólo por Prodigy/MSN en concierto.