<div dir="ltr">Hi Andreas,<div><br></div><div>Thanks for pointing out the incompatibly problem. I had the 32-bit binaries installed already, so tried the second option. I am not using tcl support, i.e. </div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><pre style="font-family: 'Times New Roman'; ">
NO_TCL = X
        TCL_INCLUDE = 
        TCL_LIBRARY = </pre><pre style="font-family: 'Times New Roman'; ">I am still getting the problems and sorry but not able to figure out the solution. Part of the error message during make World:</pre><pre style="font-family: 'Times New Roman'; font-size: medium; ">
<br></pre><pre style="font-family: 'Times New Roman'; font-size: medium; ">..................................................................................................................</pre><pre><font class="Apple-style-span" size="3">/usr/bin/g++ -march=athlon64 -m64 -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64    -I. -I../../include   -L../../lib/i686  -g -O3 -o ../bin/i686/maxalloc ../obj/i686/maxalloc.o ../obj/i686/libdstruct.a -lm -ldl ../../lib/i686/libmisc.a  -lm 2>&1 | c++filt
/usr/bin/ld: i386 architecture of input file `../obj/i686/maxalloc.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../../lib/i686/libmisc.a(option.o)' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
/home/pawan/Documents/PhD/summarization/srilm/sbin/decipher-install 0555 ../bin/i686/maxalloc ../../bin/i686
ERROR:  File to be installed (../bin/i686/maxalloc) does not exist.
ERROR:  File to be installed (../bin/i686/maxalloc) 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/maxalloc
directory =  ../../bin/i686
mode =  0555

make[2]: [../../bin/i686/maxalloc] Error 1 (ignored)
make[2]: Leaving directory `/home/pawan/Documents/PhD/summarization/srilm/dstruct/src'
make[2]: Entering directory `/home/pawan/Documents/PhD/summarization/srilm/lm/src'
/usr/bin/g++ -march=athlon64 -m64 -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64    -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  -lm 2>&1 | c++filt
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/bin/ld: i386 architecture of input file `../obj/i686/ngram.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../obj/i686/liboolm.a(matherr.o)' is incompatible with i386:x86-64 output
......................................................................................
/home/pawan/Documents/PhD/summarization/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

make[2]: [../../bin/i686/ngram] Error 1 (ignored)</font></pre><pre><font class="Apple-style-span" size="3"><br></font></pre><pre><font class="Apple-style-span" size="3">...............................................................................</font></pre>
<pre><font class="Apple-style-span" size="3"><br></font></pre><pre><font class="Apple-style-span" size="3">Thanks </font></pre><pre><font class="Apple-style-span" size="3">Pawan</font></pre><br><div class="gmail_quote">On Mon, Jan 24, 2011 at 10:07 PM, Andreas Stolcke <span dir="ltr"><<a href="mailto:stolcke@speech.sri.com">stolcke@speech.sri.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Pawan Goyal wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
uname -a<br>
Linux pawan-laptop 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 x86_64 GNU/Linux<br>
<br>
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)<br>
</blockquote></div>
The probable reason is that you're trying to compile  32-bit binaries (the default for the i686 platform), but you Ubuntu system doesn't have the required libraries installed (only the 64bit ones are installed on most systems).<br>

<br>
Two solutions:   1) install the optional 32bit binaries using commands such as<br>
<br>
apt-get install ia32-libs<br>
<br>
(if you want to build with Tcl support you'd also need the 32bit version of libtcl -- don't know the name of the package).<br>
<br>
2)  Compile 64bit binaries.   You can copy common/Makefile.machine.i686-ubuntu to common/Makefile.machine.i686, or edit the file by hand.<br>
<br>
Andreas<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
error message while <br>
make World<br>
<br>
.........................<br>
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++<br>
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++<br>
<br>
/usr/bin/ld: cannot find -lstdc++<br>
collect2: ld returned 1 exit status<br>
/home/pawan/Documents/PhD/summarization/srilm/sbin/decipher-install 0555 ../bin/i686/maxalloc ../../bin/i686<br>
ERROR:  File to be installed (../bin/i686/maxalloc) does not exist.<br>
ERROR:  File to be installed (../bin/i686/maxalloc) is not a plain file.<br>
Usage:  decipher-install <mode> <file1> ... <fileN> <directory><br>
mode:                 file permission mode, in octal<br>
file1 ... fileN:      files to be installed<br>
directory:            where the files should be installed<br>
<br>
..................................................................................<br>
<br>
Thanks in advance<br>
Pawan<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
SRILM-User site list<br>
<a href="mailto:SRILM-User@speech.sri.com" target="_blank">SRILM-User@speech.sri.com</a><br>
<a href="http://www.speech.sri.com/mailman/listinfo/srilm-user" target="_blank">http://www.speech.sri.com/mailman/listinfo/srilm-user</a><br>
</blockquote>
<br>
</blockquote></div><br></div></div>