[SRILM User List] Error in compiling SRILM
Andreas Stolcke
stolcke at icsi.berkeley.edu
Thu Jul 26 00:07:36 PDT 2012
On 7/24/2012 11:40 PM, amin farajian wrote:
> Hi all,
>
> I recently changed my machine, and I'm now trying to install the
> latest version of SRILM on it. I installed all the required tools and
> libraries (at least I hope so). but I couldn't finish the installation
> correctly. I checked everything that I thought could cause the
> problem, but I couldn't find anything.
> Some information about my new machine are:
>
> Machine Type: i686 (according to output of this script:
> srilm/sbin/machine-type)
> OS: kubuntu 12.04 (output of uname: 36-Ubuntu SMP Tue Apr 10 20:39:51
> UTC 2012 x86_64 x86_64 x86_64 GNU/Linux)
> compiler version (output of "gcc -v"): gcc version 4.6.3
> (Ubuntu/Linaro 4.6.3-1ubuntu5)
>
> I changed the contents of srilm/common/Makefile.machine.i686 as
> described in installation instruction:
> CC = /usr/bin/gcc $(GCC_FLAGS)
> CXX = /usr/bin/g++ $(GCC_FLAGS) -DINSTANTIATE_TEMPLATES
> and added this line to the file:
> NO_TCL = X
> but nothing changed in installation procedure.
> I also attached the output of make command. As could be seen in the
> file, the first error occurs in line 158:
>
> ERROR: File to be installed (../bin/i686/maxalloc) does not exist.
> Usage: decipher-install [-p] <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/maxalloc
> directory = ../../bin/i686
> mode = 0555
>
> May I ask you to help me in this problem?
Based on the error message from the linker
> /usr/bin/g++ -m32 -mtune=pentium3 -Wall -Wno-unused-variable
> -Wno-uninitialized -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_B
> ITS=64 -I. -I../../include -u matherr -L../../lib/i686 -g -O3 -o
> ../bin/i686/lattice-tool ../obj/i686/lattice-tool
> .o ../obj/i686/liblattice.a -lm -ldl ../../lib/i686/libflm.a
> ../../lib/i686/liboolm.a ../../lib/i686/libdstruct.a ../../
> lib/i686/libmisc.a -lm 2>&1 | c++filt
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so when searching for -lstdc++
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a when searching for -lstdc++
> /usr/bin/ld: cannot find -lstdc++
you don't have the 32bit version of libstdc++ installed. Try building
64bit binaries:
make MACHINE_TYPE=i686-m64 World
If that shows similar problem seek the advice of someone familiar with
your Ubuntu installation.
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20120726/d53465d3/attachment.html>
More information about the SRILM-User
mailing list