By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,404 Members | 1,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,404 IT Pros & Developers. It's quick & easy.

Problem in Installing SRILM package

P: 25
Hey,

Dear dudes I am facing problem while installing SRILM package to my Ubuntu 10.04 64-bit platform.

The things I have done so far are
1. I download the srilm package from http://www.speech.sri.com/projects/srilm/download.html
2. I unzip this package and type srilm$make World
It was showing me an error and was searching common directory in src directory, but common directory is in srilm root directory not in any subdirectory.
3. I just search for that error and found the following command

/srilm$ make SRILM=make SRILM=/home/ahmed/srilm

which shows me now another error message as mentioned below.

ahmed@pc-4366:~/srilm$ make SRILM=make SRILM=/home/ahmed/srilm
mkdir include lib bin
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 init
make[1]: Entering directory `/home/ahmed/srilm'
for subdir in misc dstruct lm flm lattice utils; do \
(cd $subdir/src; make SRILM=/home/ahmed/srilm MACHINE_TYPE=i686 OPTION= MAKE_PIC= init) || exit 1; \
done
make[2]: Entering directory `/home/ahmed/srilm/misc/src'
cd ..; /home/ahmed/srilm/sbin/make-standard-directories
make ../obj/i686/STAMP ../bin/i686/STAMP
make[3]: Entering directory `/home/ahmed/srilm/misc/src'
make[3]: `../obj/i686/STAMP' is up to date.
make[3]: `../bin/i686/STAMP' is up to date.
make[3]: Leaving directory `/home/ahmed/srilm/misc/src'
make[2]: Leaving directory `/home/ahmed/srilm/misc/src'
make[2]: Entering directory `/home/ahmed/srilm/dstruct/src'
cd ..; /home/ahmed/srilm/sbin/make-standard-directories
make ../obj/i686/STAMP ../bin/i686/STAMP
make[3]: Entering directory `/home/ahmed/srilm/dstruct/src'
make[3]: `../obj/i686/STAMP' is up to date.
make[3]: `../bin/i686/STAMP' is up to date.
make[3]: Leaving directory `/home/ahmed/srilm/dstruct/src'
make[2]: Leaving directory `/home/ahmed/srilm/dstruct/src'
make[2]: Entering directory `/home/ahmed/srilm/lm/src'
cd ..; /home/ahmed/srilm/sbin/make-standard-directories
make ../obj/i686/STAMP ../bin/i686/STAMP
make[3]: Entering directory `/home/ahmed/srilm/lm/src'
make[3]: `../obj/i686/STAMP' is up to date.
make[3]: `../bin/i686/STAMP' is up to date.
make[3]: Leaving directory `/home/ahmed/srilm/lm/src'
make[2]: Leaving directory `/home/ahmed/srilm/lm/src'
make[2]: Entering directory `/home/ahmed/srilm/flm/src'
cd ..; /home/ahmed/srilm/sbin/make-standard-directories
make ../obj/i686/STAMP ../bin/i686/STAMP
make[3]: Entering directory `/home/ahmed/srilm/flm/src'
make[3]: `../obj/i686/STAMP' is up to date.
make[3]: `../bin/i686/STAMP' is up to date.
make[3]: Leaving directory `/home/ahmed/srilm/flm/src'
make[2]: Leaving directory `/home/ahmed/srilm/flm/src'
make[2]: Entering directory `/home/ahmed/srilm/lattice/src'
cd ..; /home/ahmed/srilm/sbin/make-standard-directories
make ../obj/i686/STAMP ../bin/i686/STAMP
make[3]: Entering directory `/home/ahmed/srilm/lattice/src'
make[3]: `../obj/i686/STAMP' is up to date.
make[3]: `../bin/i686/STAMP' is up to date.
make[3]: Leaving directory `/home/ahmed/srilm/lattice/src'
make[2]: Leaving directory `/home/ahmed/srilm/lattice/src'
make[2]: Entering directory `/home/ahmed/srilm/utils/src'
cd ..; /home/ahmed/srilm/sbin/make-standard-directories
make ../obj/i686/STAMP ../bin/i686/STAMP
make[3]: Entering directory `/home/ahmed/srilm/utils/src'
make[3]: `../obj/i686/STAMP' is up to date.
make[3]: `../bin/i686/STAMP' is up to date.
make[3]: Leaving directory `/home/ahmed/srilm/utils/src'
make[2]: Leaving directory `/home/ahmed/srilm/utils/src'
make[1]: Leaving directory `/home/ahmed/srilm'
make release-headers
make[1]: Entering directory `/home/ahmed/srilm'
for subdir in misc dstruct lm flm lattice utils; do \
(cd $subdir/src; make SRILM=/home/ahmed/srilm MACHINE_TYPE=i686 OPTION= MAKE_PIC= release-headers) || exit 1; \
done
make[2]: Entering directory `/home/ahmed/srilm/misc/src'
make[2]: Nothing to be done for `release-headers'.
make[2]: Leaving directory `/home/ahmed/srilm/misc/src'
make[2]: Entering directory `/home/ahmed/srilm/dstruct/src'
make[2]: Nothing to be done for `release-headers'.
make[2]: Leaving directory `/home/ahmed/srilm/dstruct/src'
make[2]: Entering directory `/home/ahmed/srilm/lm/src'
make[2]: Nothing to be done for `release-headers'.
make[2]: Leaving directory `/home/ahmed/srilm/lm/src'
make[2]: Entering directory `/home/ahmed/srilm/flm/src'
make[2]: Nothing to be done for `release-headers'.
make[2]: Leaving directory `/home/ahmed/srilm/flm/src'
make[2]: Entering directory `/home/ahmed/srilm/lattice/src'
make[2]: Nothing to be done for `release-headers'.
make[2]: Leaving directory `/home/ahmed/srilm/lattice/src'
make[2]: Entering directory `/home/ahmed/srilm/utils/src'
make[2]: Nothing to be done for `release-headers'.
make[2]: Leaving directory `/home/ahmed/srilm/utils/src'
make[1]: Leaving directory `/home/ahmed/srilm'
make depend
make[1]: Entering directory `/home/ahmed/srilm'
for subdir in misc dstruct lm flm lattice utils; do \
(cd $subdir/src; make SRILM=/home/ahmed/srilm MACHINE_TYPE=i686 OPTION= MAKE_PIC= depend) || exit 1; \
done
make[2]: Entering directory `/home/ahmed/srilm/misc/src'
rm -f Dependencies.i686
gcc -m32 -mtune=pentium3 -Wall -Wno-unused-variable -Wno-uninitialized -D_FILE_OFFSET_BITS=64 -I. -I../../include -MM ./option.c ./zio.c ./fcheck.c ./fake-rand48.c ./version.c ./ztest.c | sed -e "s&^\([^ ]\)&../obj/i686"'$(OBJ_OPTION)'"/\1&g" -e "s&\.o&.o&g" >> Dependencies.i686
g++ -m32 -mtune=pentium3 -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64 -I. -I../../include -MM ./Debug.cc ./File.cc ./tclmain.cc ./testFile.cc | sed -e "s&^\([^ ]\)&../obj/i686"'$(OBJ_OPTION)'"/\1&g" -e "s&\.o&.o&g" >> Dependencies.i686
/home/ahmed/srilm/sbin/generate-program-dependencies ../bin/i686 ../obj/i686 "" ztest testFile | sed -e "s&\.o&.o&g" >> Dependencies.i686
make[2]: Leaving directory `/home/ahmed/srilm/misc/src'
make[2]: Entering directory `/home/ahmed/srilm/dstruct/src'
rm -f Dependencies.i686
gcc -m32 -mtune=pentium3 -Wall -Wno-unused-variable -Wno-uninitialized -D_FILE_OFFSET_BITS=64 -I. -I../../include -MM ./qsort.c ./maxalloc.c | sed -e "s&^\([^ ]\)&../obj/i686"'$(OBJ_OPTION)'"/\1&g" -e "s&\.o&.o&g" >> Dependencies.i686
g++ -m32 -mtune=pentium3 -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64 -I. -I../../include -MM ./MemStats.cc ./LHashTrie.cc ./SArrayTrie.cc ./Array.cc ./IntervalHeap.cc ./Map.cc ./SArray.cc ./LHash.cc ./Map2.cc ./Trie.cc ./CachedMem.cc ./testArray.cc ./testMap.cc ./benchHash.cc ./testHash.cc ./testSizes.cc ./testCachedMem.cc ./testMap2.cc ./testTrie.cc | sed -e "s&^\([^ ]\)&../obj/i686"'$(OBJ_OPTION)'"/\1&g" -e "s&\.o&.o&g" >> Dependencies.i686
/home/ahmed/srilm/sbin/generate-program-dependencies ../bin/i686 ../obj/i686 "" maxalloc testArray testMap benchHash testHash testSizes testCachedMem testMap2 testTrie | sed -e "s&\.o&.o&g" >> Dependencies.i686
make[2]: Leaving directory `/home/ahmed/srilm/dstruct/src'
make[2]: Entering directory `/home/ahmed/srilm/lm/src'
rm -f Dependencies.i686
gcc -m32 -mtune=pentium3 -Wall -Wno-unused-variable -Wno-uninitialized -D_FILE_OFFSET_BITS=64 -I. -I../../include -MM ./matherr.c | sed -e "s&^\([^ ]\)&../obj/i686"'$(OBJ_OPTION)'"/\1&g" -e "s&\.o&.o&g" >> Dependencies.i686
g++ -m32 -mtune=pentium3 -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64 -I. -I../../include -MM ./Prob.cc ./Counts.cc ./XCount.cc ./Vocab.cc ./VocabMap.cc ./VocabMultiMap.cc ./VocabDistance.cc ./SubVocab.cc ./MultiwordVocab.cc ./TextStats.cc ./LM.cc ./LMClient.cc ./LMStats.cc ./RefList.cc ./Bleu.cc ./NBest.cc ./NBestSet.cc ./NgramLM.cc ./NgramStatsInt.cc ./NgramStatsShort.cc ./NgramStatsLong.cc ./NgramStatsLongLong.cc ./NgramStatsFloat.cc ./NgramStatsDouble.cc ./NgramStatsXCount.cc ./NgramCountLM.cc ./Discount.cc ./ClassNgram.cc ./SimpleClassNgram.cc ./DFNgram.cc ./SkipNgram.cc ./HiddenNgram.cc ./HiddenSNgram.cc ./VarNgram.cc ./DecipherNgram.cc ./TaggedVocab.cc ./TaggedNgram.cc ./TaggedNgramStats.cc ./StopNgram.cc ./StopNgramStats.cc ./MultiwordLM.cc ./NonzeroLM.cc ./BayesMix.cc ./LoglinearMix.cc ./AdaptiveMix.cc ./AdaptiveMarginals.cc ./CacheLM.cc ./DynamicLM.cc ./HMMofNgrams.cc ./WordAlign.cc ./WordLattice.cc ./WordMesh.cc ./simpleTrigram.cc ./NgramStats.cc ./Trellis.cc ./testBinaryCounts.cc ./testHash.cc ./testProb.cc ./testXCount.cc ./testParseFloat.cc ./testVocabDistance.cc ./testNgram.cc ./testNgramAlloc.cc ./testMultiReadLM.cc ./hoeffding.cc ./tolower.cc ./testLattice.cc ./testError.cc ./testNBest.cc ./testMix.cc ./testTaggedVocab.cc ./testVocab.cc ./ngram.cc ./ngram-count.cc ./ngram-merge.cc ./ngram-class.cc ./disambig.cc ./anti-ngram.cc ./nbest-lattice.cc ./nbest-mix.cc ./nbest-optimize.cc ./nbest-pron-score.cc ./segment.cc ./segment-nbest.cc ./hidden-ngram.cc ./multi-ngram.cc | sed -e "s&^\([^ ]\)&../obj/i686"'$(OBJ_OPTION)'"/\1&g" -e "s&\.o&.o&g" >> Dependencies.i686
/home/ahmed/srilm/sbin/generate-program-dependencies ../bin/i686 ../obj/i686 "" testBinaryCounts testHash testProb testXCount testParseFloat testVocabDistance testNgram testNgramAlloc testMultiReadLM hoeffding tolower testLattice testError testNBest testMix testTaggedVocab testVocab ngram ngram-count ngram-merge ngram-class disambig anti-ngram nbest-lattice nbest-mix nbest-optimize nbest-pron-score segment segment-nbest hidden-ngram multi-ngram | sed -e "s&\.o&.o&g" >> Dependencies.i686
make[2]: Leaving directory `/home/ahmed/srilm/lm/src'
make[2]: Entering directory `/home/ahmed/srilm/flm/src'
rm -f Dependencies.i686
g++ -m32 -mtune=pentium3 -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64 -I. -I../../include -MM ./FDiscount.cc ./FNgramStats.cc ./FNgramStatsInt.cc ./FNgramSpecs.cc ./FNgramSpecsInt.cc ./FactoredVocab.cc ./FNgramLM.cc ./ProductVocab.cc ./ProductNgram.cc ./wmatrix.cc ./pngram.cc ./fngram-count.cc ./fngram.cc | sed -e "s&^\([^ ]\)&../obj/i686"'$(OBJ_OPTION)'"/\1&g" -e "s&\.o&.o&g" >> Dependencies.i686
/home/ahmed/srilm/sbin/generate-program-dependencies ../bin/i686 ../obj/i686 "" pngram fngram-count fngram | sed -e "s&\.o&.o&g" >> Dependencies.i686
make[2]: Leaving directory `/home/ahmed/srilm/flm/src'
make[2]: Entering directory `/home/ahmed/srilm/lattice/src'
rm -f Dependencies.i686
g++ -m32 -mtune=pentium3 -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64 -I. -I../../include -MM ./Lattice.cc ./LatticeAlign.cc ./LatticeExpand.cc ./LatticeIndex.cc ./LatticeNBest.cc ./LatticeNgrams.cc ./LatticeReduce.cc ./HTKLattice.cc ./LatticeLM.cc ./LatticeDecode.cc ./testLattice.cc ./lattice-tool.cc | sed -e "s&^\([^ ]\)&../obj/i686"'$(OBJ_OPTION)'"/\1&g" -e "s&\.o&.o&g" >> Dependencies.i686
/home/ahmed/srilm/sbin/generate-program-dependencies ../bin/i686 ../obj/i686 "" testLattice lattice-tool | sed -e "s&\.o&.o&g" >> Dependencies.i686
make[2]: Leaving directory `/home/ahmed/srilm/lattice/src'
make[2]: Entering directory `/home/ahmed/srilm/utils/src'
rm -f Dependencies.i686
/home/ahmed/srilm/sbin/generate-program-dependencies ../bin/i686 ../obj/i686 "" | sed -e "s&\.o&.o&g" >> Dependencies.i686
make[2]: Leaving directory `/home/ahmed/srilm/utils/src'
make[1]: Leaving directory `/home/ahmed/srilm'
make release-libraries
make[1]: Entering directory `/home/ahmed/srilm'
for subdir in misc dstruct lm flm lattice utils; do \
(cd $subdir/src; make SRILM=/home/ahmed/srilm MACHINE_TYPE=i686 OPTION= MAKE_PIC= release-libraries) || exit 1; \
done
make[2]: Entering directory `/home/ahmed/srilm/misc/src'
gcc -m32 -mtune=pentium3 -Wall -Wno-unused-variable -Wno-uninitialized -D_FILE_OFFSET_BITS=64 -I. -I../../include -c -g -O3 -o ../obj/i686/option.o option.c
In file included from /usr/local/include/features.h:371,
from /usr/include/stdio.h:28,
from option.c:22:
/usr/local/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[2]: *** [../obj/i686/option.o] Error 1
make[2]: Leaving directory `/home/ahmed/srilm/misc/src'
make[1]: *** [release-libraries] Error 1
make[1]: Leaving directory `/home/ahmed/srilm'
make: *** [World] Error 2

Please give any suggestion in order to rectify this error.....
I have already seen the INSTALL file from http://www.speech.sri.com/projects/srilm/download.html
but could not solve my problem..............
Sep 11 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.