Thanks guys for your reply, I tried csh but I had the same problem. I modified the install file with '=' and 'cd' instead of '==' and 'pushd'. Now I manage to compile ISRT, but I have some warnings on 'htable.cpp' and 'lmtable.cpp' that don't allow me to compile moses:
lmtable.cpp:363: aviso: la dereferencia de punteros de tipo castigado romperá las reglas de alias estricto ...don't know if it's the right translation of the message: "warning: difference of cast pointers will break alias strict rules" Then, when I try to compile moses with irstlm, I can see even more warnings: configure: WARNING: n_gram.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: n_gram.h: proceeding with the compiler's result I had to add '#include <math.h>' into htable.h in order to avoid errors. At last, when I run 'make -j 4' I have several errors/warnings. Here are the last lines of the log: IOStream.cpp:112: aviso: parámetro ‘inputFactorOrder’ sin uso IOStream.cpp:112: aviso: parámetro ‘outputFactorOrder’ sin uso IOStream.cpp:112: aviso: parámetro ‘inputFactorUsed’ sin uso IOStream.cpp:222: aviso: parámetro ‘reportSegmentation’ sin uso IOStream.cpp:222: aviso: parámetro ‘reportAllFactors’ sin uso mv -f .deps/TranslationAnalysis.Tpo .deps/TranslationAnalysis.Po mv -f .deps/Main.Tpo .deps/Main.Po mv -f .deps/mbr.Tpo .deps/mbr.Po mv -f .deps/IOStream.Tpo .deps/IOStream.Po g++ -g -O2 -L/home/esca/irstlm/lib/i486-pc-linux-gnu -o moses Main.o mbr.o IOStream.o TranslationAnalysis.o -L../../moses/src -lmoses -lirstlm -lz /usr/bin/ld: cannot find -lirstlm collect2: ld devolvió el estado de salida 1 make[2]: *** [moses] Error 1 make[2]: se sale del directorio `/home/esca/moses/moses-cmd/src' make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio `/home/esca/moses' make: *** [all] Error 2 Do the warnings on './install' and './configure --with-irstlm' cause errors on 'make -j 4'? Regards, Miguel Miles Osborne wrote: > ... or try the csh > > Miles > > 2008/7/16 Barry Haddow <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>: > > Hi l José > > The main problem is that your shell does not have pushd or popd > (neither does > mine). > > Replace 'pushd' with 'cd $dir' and 'popd' with 'cd ..' and it > should work. > The 'unexpected operator' message is because == is incorrect - > there should > only one =. > > regards > Barry > > On Tuesday 15 July 2008 15:41:53 Miguel José Hernández Vidal wrote: > > Hi all, > > > > I am trying to compile IRST with my Moses system. First, I > followed J. > > Schroeder's steps > (http://homepages.inf.ed.ac.uk/jschroe1/mt-marathon/) > > in order to build my system with IRSTLM. > > > > I couldn't find IRSTLM on the svn repository, so I supposed I had > > downloaded a newer version which didn't include IRSTLM. I downloaded > > separately version 5.05.01 of the toolkit and I tried to install it. > > > > when I run ./install there appears the following: > > > > > > --------------------------------------------------------------------------- > >------------------------------- MACHTYPE is actually undefined > > Set environment variable MACHTYPE with "uname -m" > > OSTYPE is actually undefined > > Set environment variable OSTYPE with "uname -s" > > CREATING DIRECTORIES > > CREATING ALIASES FOR OTHER MACHINE TYPES > > [: 39: ==: unexpected operator > > [: 39: ==: unexpected operator > > COMPILING CODE > > ./install: 45: pushd: not found > > make: *** No hay ninguna regla para construir el objetivo > `clean'. Alto. > > make: *** No hay ninguna regla para construir el objetivo `all'. > Alto. > > ./install: 47: popd: not found > > INSTALLING INCLUDE DIR > > INSTALLING SCRIPTS > > INSTALLING ARCHITECTURE-INDEPENDENT WRAPPERS > > > > --------------------------------------------------------------------------- > >------------------------------- > > > > I've manually defined MACHTYPE and OSTYPE, but always appear the > same > > errors. What am I doing wrong? > > > > Thanks in advance. > > > > Miguel > > > > _______________________________________________ > > Moses-support mailing list > > [email protected] <mailto:[email protected]> > > http://mailman.mit.edu/mailman/listinfo/moses-support > > > > ------------------------------------------------------- > > > _______________________________________________ > Moses-support mailing list > [email protected] <mailto:[email protected]> > http://mailman.mit.edu/mailman/listinfo/moses-support > > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > > > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
