Hi Barry,

In fact, the directory /home/christian/demo/tools/irstlm/lib/i686 didn't
exist, but /home/christian/demo/tools/irstlm/lib/i386-redhat-linux-gnu did,
and it contained libirstlm.a. After writing ln -s i386-redhat-linux-gnu
i686, everything worked. So in my case the softlinking had to be done under
lib/ and not under bin/, as indicated by the instructions.

Thanks a lot!

Kind regards,
Christian



On Mon, Oct 18, 2010 at 10:42 AM, Barry Haddow <bhad...@inf.ed.ac.uk> wrote:

> Hi Christian
>
> I don't think the build problem is connected with the tcl.h problem.
>
> The moses build is not finding the irstlm library, and it is looking in
> this
> directory.
> /home/christian/demo/tools/irstlm/lib/i686
> Can you check if libirstlm.a is in there? If not then you have a problem
> with
> your irstlm build.
>
> Unfortunately the tutorial that you are working from is out-of-date, and
> refers to an old version of irstlm. If you're using a recent version of
> moses, then use the most recent irstlm. I don't think you have to do the
> 'ln'
> any more.
>
> Also, you probably don't need both irstlm and srilm, as they both do the
> same
> thing.
>
> best regards
> Barry
>
> On Monday 18 October 2010 08:34, Christian Skaug wrote:
> > Dear Moses users,
> >
> > I have a small bilingual corpus, i.e. some tens of thousands of pairs of
> > phrases, in a quite rare language combination and I would like to see if
> > this is enough to provide a statistically based translation that is
> > superior to Google's, also considering that Google appears to use English
> > as an intermediate language, with not-so-good- results.
> >
> > So I have tried to install Moses on a local Dell computer with Linux and
> > bash following the instructions given here:
> > http://www.statmt.org/moses_steps.html
> >
> > Everything goes well until I try "make World", which interrupts because
> > tcl.h cannot be found. Searching through old e-mail from other Moses
> > subscribers it appears that a trick to get around this difficulty is to
> > insert NO_TCL=X in Makefile.machine.i686, considering that the compiler
> > appears to look there. In this way I'm able to finish compiling SRILM and
> I
> > continue with make all, which terminates OK.
> >
> > IRSTLM also installs just fine, but I'm in doubt as to this instruction:
> > ln -s i686-redhat-linux-gnu i686
> >
> > On my system, installing and compiling IRSTLM has led to the creation of
> a
> > directory called i386-redhat-linux-gnu under bin/, so it appears that
> it's
> > been identified as both i686 and i386. I actually have no idea what it
> > really is.
> >
> > So I try to write ln -s i386-redhat-linux-gnu i686 and go on to install
> and
> > compile Moses, which goes just fine for a long time until make -j 2
> > interrupts with these messages:
> >
> > g++ -g -O2 -o query ngram_query.o
> > -L/home/christian/demo/tools/srilm/lib/i686
> > -L/home/christian/demo/tools/srilm/flm/obj/i686
> > -L/home/christian/demo/tools/irstlm/lib/i686
> > -L/home/christian/demo/tools/moses/kenlm -loolm -ldstruct -lmisc -lflm
> > -lirstlm -lkenlm -lz
> > /usr/bin/ld: cannot find -lirstlm
> > collect2: ld returned 1 exit status
> > make[2]: *** [query] Error 1
> > make[2]: *** Waiting for unfinished jobs....
> > g++ -g -O2 -o build_binary ngram_build_binary.o
> > -L/home/christian/demo/tools/srilm/lib/i686
> > -L/home/christian/demo/tools/srilm/flm/obj/i686
> > -L/home/christian/demo/tools/irstlm/lib/i686
> > -L/home/christian/demo/tools/moses/kenlm -loolm -ldstruct -lmisc -lflm
> > -lirstlm -lkenlm -lz
> > /usr/bin/ld: cannot find -lirstlm
> > collect2: ld returned 1 exit status
> > make[2]: *** [build_binary] Error 1
> > make[2]: Leaving directory `/home/christian/demo/tools/moses/kenlm'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/home/christian/demo/tools/moses'
> > make: *** [all] Error 2
> >
> > Which makes me think that I made a mistake with that ln command, but I
> > don't know what to try next. Or maybe there's another problem. And
> perhaps
> > by-passing that tcl.h problem would create other problems further down
> the
> > road.
> >
> > If anyone has pointers to helpful information or suggestions as to how to
> > proceed, I'd be very grateful.
> >
> > Kind regards,
> > Christian Skaug
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to