[SRILM User List] install srilm

omm tayma omm.tayma at yahoo.fr
Mon Jan 27 11:16:35 PST 2014

I try to install srilm , i did this steps 

1-  i execute sudo ./sbin/machine-type  and my machine type is :i686-m64
2- in the file /home/lenovo/Documents/srilm/common/ Makefile.machine.i686-m64 i replace 

GCC_FLAGS = -mtune=pentium3 -Wreturn-type -Wimplicit
CC = /usr/local/lang/gcc-3.4.3/bin/gcc $(GCC_FLAGS)
CXX = /usr/local/lang/gcc-3.4.3/bin/g++ -Wno-deprecated $(GCC_FLAGS)

by : 

# Use the GNU C compiler.
  GCC_FLAGS = -arch=i686-m64 -Wreturn-type -Wimplicit
CC = /usr/bin/gcc $(GCC_FLAGS)
CXX = /usr/bin/g++


#TCL_LIBRARY = -ltcl

by :  

# Tcl support (standard in Linux)
 TCL_INCLUDE = -I/usr/include/tcl8.5
TCL_LIBRARY = -ltcl8.5
3- i execute make SRILM=/home/lenovo/Documents/srilm  World
 but i have this error : make[2]: Leaving directory `/home/lenovo/Documents/srilm/lattice/src'
make[2]: Entering directory `/home/lenovo/Documents/srilm/utils/src'
rm -f Dependencies.i686-m64
/home/lenovo/Documents/srilm/sbin/generate-program-dependencies ../bin/i686-m64 ../obj/i686-m64 ""  | sed -e "s&\.o&.o&g" >> Dependencies.i686-m64
make[2]: Leaving directory `/home/lenovo/Documents/srilm/utils/src'
make[1]: Leaving directory `/home/lenovo/Documents/srilm'
make release-libraries
make[1]: Entering directory `/home/lenovo/Documents/srilm'
for subdir in misc dstruct lm flm lattice utils; do \
        (cd $subdir/src; make SRILM=/home/lenovo/Documents/srilm MACHINE_TYPE=i686-m64 OPTION= MAKE_PIC= release-libraries) || exit 1; \
make[2]: Entering directory `/home/lenovo/Documents/srilm/misc/src'
/usr/bin/gcc -arch=i686-m64 -Wreturn-type -Wimplicit   -I/usr/include/tcl8.5 -I. -I../../include   -c -g -O3  -o ../obj/i686-m64/option.o option.c
gcc: error: unrecognized option ‘-arch=i686-m64’
make[2]: *** [../obj/i686-m64/option.o] Error 1
make[2]: Leaving directory `/home/lenovo/Documents/srilm/misc/src'
make[1]: *** [release-libraries] Error 1
make[1]: Leaving directory `/home/lenovo/Documents/srilm'
make: *** [World] Error 2

can some one help me plz !! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20140127/33491005/attachment.html>

More information about the SRILM-User mailing list