Installation: failing the tests

Chris Oei receiving07 at ckoei.com
Wed Jan 7 16:03:00 PST 2009


I had the same problem when I tried to build it on Ubuntu 8.04.  First, you
have to make sure that you have tcl/tk installed (sudo apt-get install
tcl-dev), and then you'll have to tell the compiler where the tcl headers
and libraries are, since the Makefile doesn't look in the right place for
Ubuntu 8.04 distros.

Something like

   ADDITIONAL_INCLUDES = -I/usr/include/tcl8.4

ought to do it.  There's probably other little tweaks I had to do (it's been
a while), so if you want to download my tarball-ed build (so you can compare
it with your setup and see the diffs), just let me know.

Best of luck,
Chris

On Tue, Jan 6, 2009 at 5:03 PM, Mr.SpOOn <mr.spoon21 at gmail.com> wrote:

> 2009/1/6 Andreas Stolcke <stolcke at speech.sri.com>:
> > They would be in the output from the "make" command, after the command
> lines
> > that invoke the compiler (typically something starting wiht "gcc".   If
> you
> > cannot make sense of your situation you should probably consult with a
> local
> > person who has experience building software.
>
> I did this:
>
> make World > output
>
> So, in the "output" file I've found this, that may be the problem:
>
>
> make[2]: Leaving directory `/home/carlo/ordinami/srilm/dstruct/src'
> make[2]: Entering directory `/home/carlo/ordinami/srilm/lm/src'
> g++ -mtune=pentium3 -Wreturn-type -Wimplicit -DINSTANTIATE_TEMPLATES
> -D_FILE_OFFSET_BITS=64   -I/usr/include/tcl8.5 -I. -I../../include
> -u matherr -L../../lib/i686  -g -O3 -o ../bin/i686/ngram
> ../obj/i686/ngram.o ../obj/i686/liboolm.a -lm -ldl
> ../../lib/i686/libflm.a ../../lib/i686/libdstruct.a
> ../../lib/i686/libmisc.a -L/usr/lib/tcl8.5 -ltcl -lm 2>&1 | c++filt
> /usr/bin/ld: cannot find -ltcl
> collect2: ld returned 1 exit status
> /home/carlo/ordinami/srilm/sbin/decipher-install 0555
> ../bin/i686/ngram ../../bin/i686
> ERROR:  File to be installed (../bin/i686/ngram) does not exist.
> ERROR:  File to be installed (../bin/i686/ngram) is not a plain file.
> Usage:  decipher-install <mode> <file1> ... <fileN> <directory>
>        mode:                 file permission mode, in octal
>        file1 ... fileN:      files to be installed
>        directory:            where the files should be installed
>
> files =  ../bin/i686/ngram
> directory =  ../../bin/i686
> mode =  0555
>
> touch -c ../../bin/i686/ngram
>
>
> But I don't understand what's the problem.
>
> Besides this, in the terminal (I think it's the standard error) appeared
> this:
>
> mkdir: cannot create directory `include': File exists
> mkdir: cannot create directory `lib': File exists
> mkdir: cannot create directory `bin': File exists
> make: [dirs] Error 1 (ignored)
> make[2]: [../../bin/i686/ngram] Error 1 (ignored)
> make[2]: [../../bin/i686/ngram-count] Error 1 (ignored)
> make[2]: [../../bin/i686/ngram-merge] Error 1 (ignored)
> make[2]: [../../bin/i686/ngram-class] Error 1 (ignored)
> make[2]: [../../bin/i686/disambig] Error 1 (ignored)
> make[2]: [../../bin/i686/anti-ngram] Error 1 (ignored)
> make[2]: [../../bin/i686/nbest-lattice] Error 1 (ignored)
> make[2]: [../../bin/i686/nbest-mix] Error 1 (ignored)
> make[2]: [../../bin/i686/nbest-optimize] Error 1 (ignored)
> make[2]: [../../bin/i686/nbest-pron-score] Error 1 (ignored)
> make[2]: [../../bin/i686/segment] Error 1 (ignored)
> make[2]: [../../bin/i686/segment-nbest] Error 1 (ignored)
> make[2]: [../../bin/i686/hidden-ngram] Error 1 (ignored)
> make[2]: [../../bin/i686/multi-ngram] Error 1 (ignored)
> make[2]: [../../bin/i686/fngram-count] Error 1 (ignored)
> make[2]: [../../bin/i686/fngram] Error 1 (ignored)
> make[2]: [../../bin/i686/lattice-tool] Error 1 (ignored)
>
> Any suggestions?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20090107/9df1c177/attachment.html>


More information about the SRILM-User mailing list