Moses-support Digest, Vol 100, Issue 54

Send Moses-support mailing list submissions to
moses-support@mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu

You can reach the person managing the list at
moses-support-owner@mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."


Today's Topics:

1. Error while building Moses (Saumitra Yadav)
2. Re: Error in Train Phrase Model (Tom Hoar)


----------------------------------------------------------------------

Message: 1
Date: Mon, 16 Feb 2015 18:33:13 +0530
From: Saumitra Yadav <yadav.saumitra07@gmail.com>
Subject: [Moses-support] Error while building Moses
To: moses-support@mit.edu
Message-ID:
<CAPeFGXbTkJexRFLEB45FdLS7-qhpbCrEsjk5xAfzUBdJt6Yu=w@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Sir,
i was compiling moses
and ran following command


*sudo ./bjam*
can you please advise how to go about this

confirm ea22b4a02880e9a79148193ad77d58b9edf0a8fd


Regards,
Saumitra Yadav
M.Tech.
Department Of Computer Science And Technology
Goa University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20150216/9f3f538e/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log.gz
Type: application/x-gzip
Size: 280 bytes
Desc: not available
Url : http://mailman.mit.edu/mailman/private/moses-support/attachments/20150216/9f3f538e/attachment-0001.bin

------------------------------

Message: 2
Date: Mon, 16 Feb 2015 20:04:17 +0700
From: Tom Hoar <tahoar@precisiontranslationtools.com>
Subject: Re: [Moses-support] Error in Train Phrase Model
To: moses-support@mit.edu
Message-ID: <54E1EAD1.2000305@precisiontranslationtools.com>
Content-Type: text/plain; charset="windows-1252"

As Barry noted, your logs show the command prompt path is "/root" which
means you're probably running as root. Several years ago, we found are
several ill-behaved utilities (in Moses and IRSTLM) that relied on
access privileges to prevent deleting system files. Running as root
bypassed this safety mechanism. Some were fixed, but others could remain.

Running Linux as root is generally a sign that the user is trying to
make Linux more "Windows-like." You said, "i have only this user in the
system." If you're referring to the "root" user, I don't know of any
Linux distro that defaults to only one user with root privileges, but if
this is true, I suggest you also change to a different Linux distro.

Learning how to properly work on a Linux system is your best safety
mechanism. Per Hieu, rebuilding your OS from scratch is the only way to
make sure you have everything you need.



On 02/16/2015 07:32 PM, Hieu Hoang wrote:
> if you don't find /dev/stdin, then something is wrong with your OS.
> You must re-install your operating system.
>
> you may have deleted /dev/stdin by accident, or a script has deleted
> it. It is highly recommended not to use the root user, running as an
> ordinary user will prevent this.
>
> On 16/02/15 10:41, mohamed hasanien wrote:
>> also when i dir dev i didn't find stdin
>> mohammed hassanien Mohammed
>> Egyption Programmers Vice-captain
>> 01000121556
>> Egyption Programmers Syndicate
>> <http://www.egprogrammers.org/>
>>
>>
>> On Monday, February 16, 2015 12:39 PM, mohamed hasanien
>> <mhmd_hasnen@yahoo.com> wrote:
>>
>>
>> hi barry,
>>
>> the out put of the cmd is
>> ls: cannot access /dev/stdin: No such file or directory
>> i have only this user in the system
>> mohammed hassanien Mohammed
>> Egyption Programmers Vice-captain
>> 01000121556
>> Egyption Programmers Syndicate
>> <http://www.egprogrammers.org/>
>>
>>
>> On Monday, February 16, 2015 11:06 AM, Barry Haddow
>> <bhaddow@staffmail.ed.ac.uk> wrote:
>>
>>
>> Hi Mohammed
>>
>> Sorry, I meant "ls -l /dev/stdin"
>>
>> I would suggest you log in and run train-model.perl as a user other than
>> root.
>>
>> cheers - Barry
>>
>> On 15/02/15 20:17, mohamed hasanien wrote:
>> > Hi Barr,
>> > this is the out put
>> > from the command you told me and also from nohup.out
>> > ls -l /dev/stdout
>> > --------------------------------------------------------
>> > -rw-r--r-- 1 root root 0 Feb 15 15:07 /dev/stdout
>> > ------------------------------------------------------------
>> > nano nohup.out
>> > ---------------------------------------------------------
>> > (2.1b) running giza en-ar @ Sun Feb 15 15:07:16 EST 2015
>> > /root/mosesdecoder/tools/GIZA++ -CoocurrenceFile
>> > /root/data/train/giza.en-ar/en-ar.cooc -c
>> > /root/data/train/corpus/en-ar-int-train.snt -m1 5 -m2 0 -m3 3 -m4 3
>> > -model1dumpfrequency 1 -model4smoothfactor 0.4 -nodumps 1 -nsmooth 4
>> > -o /roo$
>> > /root/data/train/giza.en-ar/en-ar.A3.final.gz seems finished, reusing.
>> > (3) generate word alignment @ Sun Feb 15 15:07:16 EST 2015
>> > Combining forward and inverted alignment from files:
>> > /root/data/train/giza.ar-en/ar-en.A3.final.{bz2,gz}
>> > /root/data/train/giza.en-ar/en-ar.A3.final.{bz2,gz}
>> > Executing: mkdir -p /root/data/train/model
>> > Executing: /root/mosesdecoder/scripts/training/giza2bal.pl -d "gzip
>> > -cd /root/data/train/giza.en-ar/en-ar.A3.final.gz" -i "gzip -cd
>> > /root/data/train/giza.ar-en/ar-en.A3.final.gz"
>> > |/root/mosesdecoder/scripts/../bin/symal -alignment="grow$
>> > cannot open /dev/stdin
>> > Exit code: 1
>> > ERROR: Can't generate symmetrized alignment file
>> > mohammed hassanien Mohammed
>> > Egyption Programmers Vice-captain
>> > 01000121556
>> > Egyption Programmers Syndicate
>> > <http://www.egprogrammers.org/>
>> >
>> >
>> > On Sunday, February 15, 2015 2:37 PM, Barry Haddow
>> > <bhaddow@staffmail.ed.ac.uk <mailto:bhaddow@staffmail.ed.ac.uk>> wrote:
>> >
>> >
>> > Hi Mohammed
>> >
>> > Can you run "ls -l /dev/stdout" immediately after train-model.perl and
>> > post the output?
>> >
>> > cheers - Barry
>> >
>> > On 15/02/15 11:21, mohamed hasanien wrote:
>> >> Hi Barry,
>> >>
>> >> idon't chang user , i already have single user in this system
>> >> mohammed hassanien Mohammed
>> >> Egyption Programmers Vice-captain
>> >> 01000121556
>> >> Egyption Programmers Syndicate
>> >> <http://www.egprogrammers.org/>
>> >>
>> >>
>> >> On Friday, February 13, 2015 2:12 PM, Barry Haddow
>> >> <bhaddow@staffmail.ed.ac.uk <mailto:bhaddow@staffmail.ed.ac.uk>>
>> <mailto:bhaddow@staffmail.ed.ac.uk
>> <mailto:bhaddow@staffmail.ed.ac.uk>> wrote:
>> >>
>> >>
>> >> Hi Mohammed
>> >>
>> >> If you look at this discussion:
>> >>
>> >>
>> http://unix.stackexchange.com/questions/38538/bash-dev-stderr-permission-denied
>> >>
>> >> it seems that you have changed users in a terminal session, and
>> you are
>> >> executing the script as a user that does not have permission to access
>> >> the terminal i/o devices. symal tries to explicitly open /dev/stdout
>> >> (which it probably shouldn't) and fails.
>> >>
>> >> If you can open your terminal and run the training without switching
>> >> user then it should work.
>> >>
>> >> cheers - Barry
>> >>
>> >> On 13/02/15 11:53, mhmd hassnen wrote:
>> >> > I use Linux Ubuntu <http://www.ubuntu.com/> 14
>> >> >
>> >> > Sent from my iPhone
>> >> >
>> >> > On Feb 11, 2015, at 8:10 PM, Hieu Hoang <hieuhoang@gmail.com
>> <mailto:hieuhoang@gmail.com>
>> >> <mailto:hieuhoang@gmail.com <mailto:hieuhoang@gmail.com>>
>> >> > <mailto:hieuhoang@gmail.com <mailto:hieuhoang@gmail.com>
>> <mailto:hieuhoang@gmail.com <mailto:hieuhoang@gmail.com>>>> wrote:
>> >> >
>> >> >> what operating system are you using? if linux, what exact
>> distro and
>> >> >> version. If windows/cygwin, what exact version of cygwin?
>> >> >>
>> >> >> does it have the file
>> >> >> */dev/stdin
>> >> >>
>> >> >> *
>> >> >> On 11/02/15 09:30, mohamed hasanien wrote:
>> >> >>> *when i try to execute the train-model.perl i get this error
>> >> >>> using this command *
>> >> >>> *
>> >> >>> nohup nice ~/mosesdecoder/scripts/training/train-model.perl
>> >> >>> -external-bin-dir $HOME/mosesdecoder/tools --corpus
>> >> >>> ~/corpus/news-commentary-v8.fr
>> >> >>> <http://news-commentary-v8.fr <http://news-commentary-v8.fr/>
>> >> <http://news-commentary-v8.fr/>>-en.clean --f fr --e en -lm
>> >> >>> 0:3:$HOME/lm/news-commentary-v8.fr
>> >> >>> <http://news-commentary-v8.fr <http://news-commentary-v8.fr/>
>> >> <http://news-commentary-v8.fr/>>-en.blm.en:8 ?cores 2*
>> >> >>> *
>> >> >>> Hi all, *
>> >> >>> *
>> >> >>> i get this error in the nohup.out file *
>> >> >>> *
>> >> >>> Executing: /root/mosesdecoder/scripts/training/giza2bal.pl -d
>> "gzip
>> >> >>> -cd ./giza.en-fr/en-fr.A3.final.gz" -i "gzip -cd ./giza.fr
>> >> >>> <http://giza.fr
>> <http://giza.fr/><http://giza.fr/>>-en/fr-en.A3.final.gz"
>> >> >>> |/root/mosesdecoder/scripts/../bin/symal -alignment="grow"
>> >> >>> -diagonal="yes" -final="yes" -both="no" >
>> >> >>> ./model/aligned.grow-diag-final*
>> >> >>> *cannot open /dev/stdin*
>> >> >>> *Exit code: 1*
>> >> >>> *ERROR: Can't generate symmetrized alignment file*
>> >> >>>
>> >> >>> mohammed hassanien Mohammed
>> >> >>> Egyption Programmers Vice-captain
>> >> >>> 01000121556
>> >> >>> Egyption Programmers Syndicate
>> >> >>> <http://www.egprogrammers.org/>
>> >> >>>
>> >> >>>
>> >> >>> _______________________________________________
>> >> >>> Moses-support mailing list
>> >> >>> Moses-support@mit.edu <mailto:Moses-support@mit.edu>
>> <mailto:Moses-support@mit.edu <mailto:Moses-support@mit.edu>>
>> >> >>> http://mailman.mit.edu/mailman/listinfo/moses-support
>> >> >>
>> >> >> --
>> >> >> Hieu Hoang
>> >> >> Research Associate (until March 2015)
>> >> >> ** searching for interesting commercial MT position **
>> >> >> University of Edinburgh
>> >> >> http://www.hoang.co.uk/hieu
>> >>
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Moses-support mailing list
>> >> > Moses-support@mit.edu <mailto:Moses-support@mit.edu>
>> <mailto:Moses-support@mit.edu <mailto:Moses-support@mit.edu>>
>> >> > 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.
>>
>>
>>
>>
>>
>
> --
> Hieu Hoang
> Research Associate (until March 2015)
> ** searching for interesting commercial MT position **
> University of Edinburgh
> http://www.hoang.co.uk/hieu
>
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20150216/c8f09f19/attachment.htm

------------------------------

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


End of Moses-support Digest, Vol 100, Issue 54
**********************************************

Related Posts :

0 Response to "Moses-support Digest, Vol 100, Issue 54"

Post a Comment