[SRILM User List] SRILM 1.5.12: Compiling Issues on Ubuntu 10.4

Daniel Schaut danielshout at hotmail.com
Wed Sep 7 06:03:54 PDT 2011


Hi all,

I'm a pretty new user to SRILM and encounter some problems while compiling
the binaries. I would very much appreciate it, if you guys could give a hint
on a how to solve my compiling problem.

My machine:
Oracle VM VB 4.0.12 r72916
Ubuntu 10.4 (32bit)
Kernel 2.6.32-33-generic
GCC 4.4.3 (i486-linux-gnu)
Intel C2D T7700 @2.4GHz
2.00 GB RAM

1. Changes done to Top-level Makefile:

SRILM = /home/user/srilm-1.5.12

2. Changes done to default Makefile.machine.i686-ubuntu:

GCC_FLAGS =  -mtune=pentium3 -Wreturn-type -Wimplicit
CC = $(GCC_PATH)gcc-4.4 $(GCC_FLAGS)
CXX = $(GCC_PATH)g++-4.4 $(GCC_FLAGS) -DINSTANTIATE_TEMPLATES

TCL_INCLUDE = -I /usr/include/tcl8.5
TCL_LIBRARY = -ltcl

GAWK = /usr/bin/gawk

By default, C-Shell and TC-Shell are installed in /usr/bin/ on my machine.
According to README.linux, INSTALL and FAQ csh/tcsh should be located in
/bin/. I suppose I have to link csh/tcsh to /bin/ to make the compiling
process work properly?
GCC_FLAG is obviously not correct for my machine, isn't it? Which one would
be the correct GCC_FLAG?

Furthermore, I already tried to set variables with SETENV and created a new
machine-specific makefile to compile binaries, but it still fails.
I also searched the user archives and found some answers regarding my
problem, but I can't fix it. Tutorials on the internet did not work for me.
Could you please give advice on how to solve the following compiling issue?

When I try to compile SRILM in csh/tcsh I get a bunch of errors:

make: /home/user/srilm-1.5.12/sbin/machine-type: Command not found
mkdir include lib bin
make init
make[1]: /home/user/srilm-1.5.12/sbin/machine-type: Command not found
make[1]: Entering directory `/home/user/srilm-1.5.12'
for subdir in misc dstruct lm flm lattice utils; do \
		(cd $subdir/src; make SRILM=/home/user/srilm-1.5.12
MACHINE_TYPE= OPTION= MAKE_PIC= init) || exit 1; \
	done
make[2]: /home/user/srilm-1.5.12/sbin/machine-type: Command not found
make[2]: Entering directory `/home/user/srilm-1.5.12/misc/src'
/home/user/srilm-1.5.12/common/Makefile.common.variables:96:
/home/user/srilm-1.5.12/common/Makefile.machine.: No such file or directory
make[2]: *** No rule to make target
`/home/user/srilm-1.5.12/common/Makefile.machine.'. Stop.
make[2]: Leaving directory `/home/user/mosestools/srilm-1.5.12/misc/src'
make[1]: *** [init] Error 1
make[1]: Leaving directory `/home/user/srilm-1.5.12'
make: *** [World] Error 2

Best,
Dan

EDIT:
I've renamed Makefile.machine.i686-ubuntu to Makefile.machine. accordingly
in the meantime. Though, the whole compiling process still fails with lots
of errors, e.g.:

/home/user/srilm-1.5.12/sbin/machine-type: Command not found

/home/user/srilm-1.5.12/sbin/decipher-install: Command not found

In file included from ./Map.cc:12:
./Map.h:63:21: error: Boolean.h: No such file or directory

./Vocab.h:98:20: error: SArray.h: No such file or directory

In file included from Trie.h:103,
                 from Trie.cc:27,
                 from SArrayTrie.cc:17:
SArray.h:54: error: 'Boolean' has not been declared
SArray.h:55: error: 'Boolean' has not been declared
SArray.h:56: error: 'Boolean' has not been declared
SArray.h:57: error: 'Boolean' has not been declared
SArray.h:70: error: 'Boolean' does not name a type
SArray.h:54: error: 'foundP' is not a member of '_Map'
SArray.h:55: error: 'foundP' is not a member of '_Map'
SArray.h:56: error: 'foundP' is not a member of '_Map'
SArray.h:57: error: 'foundP' is not a member of '_Map'

Is this most likely owing to csh/tcsh located in /usr/bin/ and not in /bin/?

Best,
Dan



More information about the SRILM-User mailing list