[SRILM User List] Problems building SRILM

Andreas Stolcke stolcke at speech.sri.com
Sat Apr 3 19:13:43 PDT 2010


On 4/3/2010 7:10 PM, Jared Wein wrote:
> On Sat, Apr 3, 2010 at 9:54 PM, Andreas Stolcke 
> <stolcke at speech.sri.com <mailto:stolcke at speech.sri.com>> wrote:
>
>     On 4/3/2010 5:56 PM, Jared Wein wrote:
>>     I'm having problems building SRILM on my Ubuntu virtual machine.
>>
>>     I have tried `make World` with the following results:
>>
>>         jared at jared-desktop:~/Downloads/srilm$ make World
>>
>>         /bin/sh: /home/jared/Downloads/srilm/sbin/machine-type: not found
>>
>     the problem is right here:   the machine-type cannot be executed.
>     I suspect you need to install csh/tcsh .
>     Alternatively, you can bypass the problem by invoking
>
>     make MACHINE_TYPE=i686 ...
>
>     Andreas
>
>
> Thanks, installing csh/tcsh allowed the make to get further, although 
> it reports an error about a missing Boolean.h, of which I've confirmed 
> it's existence in the ./include folder
>
> Again, I'm running `make MACHINE_TYPE=i686-ubuntu World`
>
> <excerpted>
> /usr/bin/g++ -m32 -mtune=pentium3 -Wreturn-type -Wimplicit -Wformat 
> -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64    -I. 
> -I~/Downloads/srilm/include -MM ./MemStats.cc ./LHashTrie.cc 
> ./SArrayTrie.cc ./Array.cc ./IntervalHeap.cc ./Map.cc

this time it is the SRILM variable that is not set correctly.  It 
appears to be set to ~/Downloads/srilm, but the ~ symbol is not 
understood by make or /bin/sh.
Try
make SRILM=/full/path/to/your/srilm/directory ....

Andreas

> ./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-ubuntu"'$(OBJ_OPTION)'"/\1
> &g" -e "s&\.o&.o&g" >> Dependencies.i686-ubuntu
> In file included from ./SArray.h:22,
>                  from ./Trie.h:103,
>                  from ./Trie.cc:27,
>                  from ./SArrayTrie.cc:17:
> ./Map.h:63:21: error: Boolean.h: No such file or directory
> In file included from ./IntervalHeap.cc:18:
> ./IntervalHeap.h:45:21: error: Boolean.h: No such file or directory
> In file included from ./Map.cc:12:
> ./Map.h:63:21: error: Boolean.h: No such file or directory
> In file included from ./SArray.h:22,
>                  from ./SArray.cc:25:
> ./Map.h:63:21: error: Boolean.h: No such file or directory
> In file included from ./LHash.h:26,
>                  from ./LHash.cc:27:
> ./Map.h:63:21: error: Boolean.h: No such file or directory
> In file included from ./LHash.h:26,
>                  from ./Map2.h:80,
>                  from ./Map2.cc:27:
> ./Map.h:63:21: error: Boolean.h: No such file or directory
> In file included from ./LHash.h:26,
>                  from ./Trie.h:109,
>                  from ./Trie.cc:27:
> ./Map.h:63:21: error: Boolean.h: No such file or directory
> In file included from ./SArray.h:22,
> </excerpted>
>
> Any ideas? The include path that is mentioned by 
> -I~/Downloads/srilm/include is the folder where I found Boolean.h.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20100403/bf35e9fc/attachment.html>


More information about the SRILM-User mailing list