Hi Tom, I had installed SRILM with gcc 4.4.1. The trick was to use the file srilm/common/Makefile.machine.i686-gcc4
To fire this you just might add the following line in the main Makefile #MACHINE_TYPE := $(shell $(SRILM)/sbin/machine-type) MACHINE_TYPE = i686-gcc4 This should do the SRILM build for you. However in order to ensure that Moses gets built with srilm, you need to do one more thing... You need to create a symlink of the srilm/lib/1686-gcc4 as i686. Moses somehow only looks for i686 in the said location. I hope this should solve your problems. Thanks and regards, Pratyush On 26/05/10 17:28, [email protected] wrote: > Has anyone been able to SRILM with newer versions of g++? Even after > setting/selecting MACHINE_TYPE correctly, version 1.5.10 will not compile > on the new Ubuntu 10.04 LTS version with the default g++-4.4. I have had to > fall back to g++-4.1. > > If anyone found a trick to compile with g++-4.4, can you share it? > > Thanks. > Tom > > > On Wed, 26 May 2010 17:29:24 +0200, "Korzec, Sanne" <[email protected]> > wrote: > >> Hi All, >> >> Just wanted to let you know, I fixed the problem. >> >> Apparently the standard machine-type script from srilm sets i686-m64 >> machines to i686. I don't know why this is default, but after altering >> > the > >> machine-type script (setting it to i686-m64) it solved the issue I was >> having. >> >> Sanne >> >> >> -----Original Message----- >> From: Raphael Payen [mailto:[email protected]] >> Sent: woensdag 26 mei 2010 14:39 >> To: Korzec, Sanne >> Subject: Re: [Moses-support] error compiling wmt10 >> >> Try to remove the check : open configure.in and remove the line 146: >> AC_CHECK_LIB([oolm], [trigram_init], [], [AC_MSG_ERROR([Cannot find >> SRILM!])]) Then use regenerate-makefiles.sh and restart the configure >> > and > >> make. >> If this works, I'll just need to remove the check from the svn. But >> probably there should be an error during compile. Maybe the error >> > message > >> will then be more explicit. >> >> >> >> 2010/5/26 Korzec, Sanne <[email protected]>: >> >>> No luck... >>> I get the same error after this new compilation... I am running a >>> regular i686 machine type >>> >>> >>> >>> -----Original Message----- >>> From: Raphael Payen [mailto:[email protected]] >>> Sent: dinsdag 25 mei 2010 17:27 >>> To: Korzec, Sanne >>> Cc: [email protected] >>> Subject: Re: [Moses-support] error compiling wmt10 >>> >>> I added the trigram_init check in configure.in some time ago, to give >>> > an > >>> error during configure instead of during compile. Apparently your moses >>> doesn't manage to link with srilm. It can be caused by an incorrect >>> machine-type in srilm/sbin directory. >>> >>> >>> 2010/5/25 Korzec, Sanne <[email protected]>: >>> >>>> I have an error compiling wmt10: >>>> >>>> after the command. >>>> >>>> ./configure --with-srilm=/home/skorzec/srilm >>>> >>>> checking for trigram_init in -loolm... no >>>> configure: error: Cannot find SRILM! >>>> >>>> SRILM had compiled fine and the files are in place. >>>> >>>> I am aware of the new EMS, but since I work on a command line only >>>> environment, I prefer to compile like this. >>>> >>>> Is this not possible anymore? >>>> >>>> Sanne >>>> >>>> >>>> _______________________________________________ >>>> Moses-support mailing list >>>> [email protected] >>>> http://mailman.mit.edu/mailman/listinfo/moses-support >>>> >>>> >>> >>> >>> >> >> >> _______________________________________________ >> Moses-support mailing list >> [email protected] >> http://mailman.mit.edu/mailman/listinfo/moses-support >> > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > > _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
