Ah, it may not be that easy to solve. The compiler on Fedora seems to have some issues
Is there a specific reason why you need IRSTLM? KenLM is part of Moses and I've checked that it compiles ok. Make sure you install the libraries you need: http://www.statmt.org/moses/?n=Development.GetStarted (go down to the Section on Fedora / Redhat / CentOS / Scientific Linux) Hieu Hoang http://www.hoang.co.uk/hieu On 5 September 2016 at 10:56, Hieu Hoang <hieuho...@gmail.com> wrote: > IRSTLM has it's own mailing list: > https://list.fbk.eu/sympa/info/user-irstlm > > It's probably a minor compile error you can fix yourself by changing > #include_next <stdlib.h> > to > #include_next <cstdlib> > > Hieu Hoang > http://www.hoang.co.uk/hieu > > ---------- Forwarded message ---------- > From: <moses-support-ow...@mit.edu> > Date: 5 September 2016 at 10:47 > Subject: Moses-support post from aqeel.lab...@gmail.com requires approval > To: moses-support-ow...@mit.edu > > > As list administrator, your authorization is requested for the > following mailing list posting: > > List: Moses-support@mit.edu > From: aqeel.lab...@gmail.com > Subject: problem with moses installation > Reason: Post by non-member to a members-only list > > At your convenience, visit: > > http://mailman.mit.edu/mailman/admindb/moses-support > > to approve or deny the request. > > > ---------- Forwarded message ---------- > From: aqeel <aqeel.lab...@gmail.com> > To: moses-support@mit.edu > Cc: > Date: Mon, 5 Sep 2016 12:47:51 +0300 > Subject: problem with moses installation > Hello, > > OS: Fedora 24 > > I have a problem with irstlm I get the following error : > > In file included from lmContainer.cpp:23:0: > /usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file > or directory > #include_next <stdlib.h> > ^ > compilation terminated. > Makefile:724: recipe for target 'lmContainer.lo' failed > make[3]: *** [lmContainer.lo] Error 1 > make[3]: *** Waiting for unfinished jobs.... > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 > -DMY_ASSERT_FLAG -isystem/usr/include -W -Wall -ffor-scope > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT > dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c dictionary.cpp -fPIC > -DPIC -o .libs/dictionary.o > In file included from /usr/include/c++/6.1.1/ext/str > ing_conversions.h:41:0, > from /usr/include/c++/6.1.1/bits/basic_string.h:5402, > from /usr/include/c++/6.1.1/string:52, > from /usr/include/c++/6.1.1/bits/locale_classes.h:40, > from /usr/include/c++/6.1.1/bits/ios_base.h:41, > from /usr/include/c++/6.1.1/ios:42, > from /usr/include/c++/6.1.1/ostream:38, > from /usr/include/c++/6.1.1/iostream:39, > from lmclass.cpp:25: > /usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file > or directory > #include_next <stdlib.h> > ^ > compilation terminated. > In file included from /usr/include/c++/6.1.1/ext/str > ing_conversions.h:41:0, > from /usr/include/c++/6.1.1/bits/basic_string.h:5402, > from /usr/include/c++/6.1.1/string:52, > from /usr/include/c++/6.1.1/bits/locale_classes.h:40, > from /usr/include/c++/6.1.1/bits/ios_base.h:41, > from /usr/include/c++/6.1.1/ios:42, > from /usr/include/c++/6.1.1/ostream:38, > from /usr/include/c++/6.1.1/iostream:39, > from htable.cpp:26: > /usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file > or directory > #include_next <stdlib.h> > ^ > compilation terminated. > Makefile:724: recipe for target 'htable.lo' failed > make[3]: *** [htable.lo] Error 1 > Makefile:724: recipe for target 'lmclass.lo' failed > make[3]: *** [lmclass.lo] Error 1 > In file included from /usr/include/c++/6.1.1/ext/str > ing_conversions.h:41:0, > from /usr/include/c++/6.1.1/bits/basic_string.h:5402, > from /usr/include/c++/6.1.1/string:52, > from /usr/include/c++/6.1.1/bits/locale_classes.h:40, > from /usr/include/c++/6.1.1/bits/ios_base.h:41, > from /usr/include/c++/6.1.1/iomanip:40, > from dictionary.cpp:25: > /usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file > or directory > #include_next <stdlib.h> > ^ > compilation terminated. > Makefile:724: recipe for target 'dictionary.lo' failed > make[3]: *** [dictionary.lo] Error 1 > make[3]: Leaving directory '/home/aqeel/Documents/3rdseme > ster/MT/mosesdecoder/build/irstlm/irstlm-5.80.08/trunk/src' > Makefile:406: recipe for target 'all-recursive' failed > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory '/home/aqeel/Documents/3rdseme > ster/MT/mosesdecoder/build/irstlm/irstlm-5.80.08/trunk' > Makefile:338: recipe for target 'all' failed > make[1]: *** [all] Error 2 > make[1]: Leaving directory '/home/aqeel/Documents/3rdseme > ster/MT/mosesdecoder/build/irstlm/irstlm-5.80.08/trunk' > contrib/Makefiles/install-dependencies.gmake:88: recipe for target > '/home/aqeel/Documents/3rdsemester/MT/mosesdecoder/opt/irstlm-5.80.08/bin/build-lm.sh' > failed > make: *** > [/home/aqeel/Documents/3rdsemester/MT/mosesdecoder/opt/irstlm-5.80.08/bin/build-lm.sh] > Error 2 > > Thanks in advance > Best Regard > Aqeel Labash > > -- > Aqeel Labash > Msc Computer Science - Data Mining > Faculty of Science and Technology > University of TARTU > Phone: +372 56304310 > Email: aqeel.lab...@gmail.com > > > > ---------- Forwarded message ---------- > From: moses-support-requ...@mit.edu > To: > Cc: > Date: > Subject: confirm 6f042152e4360e4c7ba1cdcca3bcf55e513464e0 > If you reply to this message, keeping the Subject: header intact, > Mailman will discard the held message. Do this if the message is > spam. If you reply to this message and include an Approved: header > with the list password in it, the message will be approved for posting > to the list. The Approved: header can also appear in the first line > of the body of the reply. > > >
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support