Very odd. I don't know much about the make files compilation, but your
problem seems to be with the linker.
After compilation, there should be files like Phrase.o, Word.o etc, and
a file called
libmoses.a
If there's not, then something gone wrong.
Hieu Hoang
www.hoang.co.uk/hieu
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pradeep
Muthukrishnan
Sent: 08 December 2007 20:01
To: [email protected]
Subject: [Moses-support] Problem with installing Moses!
Hello,
I have been trying to get moses installed in my system, but I have not
been able to do the make command . I have been able to execute all the
commands in the list below except the make command
cd ~/mosesdecoder
./configure --with-srilm=/path-to-srilm (or
--with-irstlm=/path-to-irstlm)
make
When I give the make command, it gives me a *lot* of errors saying
Undefined references.
[EMAIL PROTECTED]:/data0/tools/mosesdecoder> make
make all-recursive
make[1]: Entering directory `/data0/tools/mosesdecoder'
Making all in moses/src
make[2]: Entering directory `/data0/tools/mosesdecoder/moses/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/data0/tools/mosesdecoder/moses/src'
Making all in moses-cmd/src
make[2]: Entering directory `/data0/tools/mosesdecoder/moses-cmd/src'
g++ -g -O2 -L/data0/tools/mosesdecoder/irstlm//lib -o moses Main.o
IOCommandL
ine.o IOFile.o TranslationAnalysis.o
-L../../moses/src -lmoses -lirstlm -lz
Main.o: In function `readInput(InputOutput*, int, InputType*&)':
/data0/tools/mosesdecoder/moses-cmd/src/Main.cpp:71: undefined reference
to `ConfusionNet::ConfusionNet(FactorCollection*)'
Main.o: In function `readInput(InputOutput*, int, InputType*&)':
../../moses/src/Sentence.h:41: undefined reference to
`Phrase::Phrase(FactorDirection)'
../../moses/src/Sentence.h:41: undefined reference to
`InputType::InputType(long)'
../../moses/src/Sentence.h:41: undefined reference to `vtable for
Sentence'
../../moses/src/Sentence.h:41: undefined reference to `vtable for
Sentence'
../../moses/src/Sentence.h:43: undefined reference to
`Phrase::~Phrase()'
Main.o: In function `GetInputOutput(StaticData&)':
/data0/tools/mosesdecoder/moses-cmd/src/Main.cpp:166: undefined
reference to `FactorMask::FactorMask(std::vector<unsigned long,
std::allocator<unsigned long> > const&)'
/data0/tools/mosesdecoder/moses-cmd/src/Main.cpp:169: undefined
reference to `StaticData::GetIOMethod()'
/data0/tools/mosesdecoder/moses-cmd/src/Main.cpp:200: undefined
reference to `StaticData::s_instance'
/data0/tools/mosesdecoder/moses-cmd/src/Main.cpp:205: undefined
reference to `StaticData::LoadPhraseTables()'
/data0/tools/mosesdecoder/moses-cmd/src/Main.cpp:207: undefined
reference to `StaticData::LoadMapping()'
/data0/tools/mosesdecoder/moses-cmd/src/Main.cpp:171: undefined
reference to `StaticData::s_instance'
/data0/tools/mosesdecoder/moses-cmd/src/Main.cpp:176: undefined
reference to `StaticData::s_instance'
/data0/tools/mosesdecoder/moses-cmd/src/Main.cpp:188: undefined
reference to `StaticData::s_instance'
/data0/tools/mosesdecoder/moses-cmd/src/Main.cpp:191: undefined
reference to `StaticData::s_instance'
More undefined references follow. Can anyone help me with this problem?
I have been working on this for a long time now. It would be of great
help if anyone can help me with this.
regards,
Pradeep
_______________________________________________
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