Hi togehter,
I just joint the mailing list and I'm new to use moses and especially setup an 
enviroment for moses to use as an automatic translation service.

First I tried it with your suggestion of a perl daemon.
The daemon starts and responds fine, but it has the problem of "sudden death".
Sometimes it dies silently without any notice to /var/log/messages or whatever.

Then I tried to compile moses server.
It went wrong on a 64bit machine while compiling the prerequisite xmlrpc-c:
make[2]: Entering directory `/usr/src/xmlrpc-c-1.06.37/src/cpp'
g++ -shared -Wl,-soname,libxmlrpc_cpp.so.3  -o libxmlrpc_cpp.so.3.06 XmlRpcCpp.o
/usr/bin/ld: XmlRpcCpp.o: relocation R_X86_64_32 against `a local symbol' can 
not be used when making a shared object; recompile with -fPIC
XmlRpcCpp.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libxmlrpc_cpp.so.3.06] Error 1

No idea what is going wrong here. I did "make clean" and tried it again with 
"-fPIC", but it did not solve the problem.
The author of this library did not answer to my question.


Then I compiled mosesserver on a 32bit machine and everything went fine. It is 
running and responding. The first answer takes about 5 seconds, the following 
are very fast (about 0.05 seconds).

I started it in the following way:
nohup mosesserver  -f /opt/data/moses/ini/moses_de-en_srilm.ini -xml-input 
exclusive --server-port 8080 --server-log /opt/data/moses/logs/de-en.log.txt &

The only problem is still invalid xml input.
When I sent "bla <tag1>blubb</tag2>" it just dies without any notice.

How can I prevent this?

Is there a way to create a auto respawn server?

Thanks for tips, Bernd


-- 
Bernd Münt               Durchwahl: 030/69032-509
Software Developer       Zentrale:  030/69032-300
euroscript Systems GmbH  Fax:       030/69032-505
Alt-Moabit 91            eMail:     [email protected]
10559 Berlin             Web:       http://www.euroscript.de  

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to