Hello thanks very much i try it now it is the same path on both of them but at cmd i have extra "cygdrive/c/windows/system32: at the first and i try to c:\cygwin\bin\bash -c "PATH=/cygwin/bin:$PATH; <MOSES-COMMAND>"
<MOSES-COMMAND> is my moses command with i try it now on cygwin and it is working and just copy it so i am sure there is no error at command and i got the same error /home/<my-user-name>/moses/moses-cmd/src/moses.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory by the way i got this error line written in moses output file thats mean it can recognize the output parameter so why it can't load library and which library does it mean is it moses.ini or what? i am really thankful for all your replay On Mon, Sep 12, 2011 at 9:18 PM, Ben Gottesman <[email protected]>wrote: > Hi, > > I suspect it has to do with environment variables. > > Enter this at a Cygwin prompt: > > echo $PATH > > Now enter this at a DOS prompt: > > c:\cygwin\bin\bash -c "echo $PATH" > > I think you'll see the results are different, and I suspect that > that's the reason the Moses command behaves differently. > > If I'm right, then something along these lines from a DOS prompt should > work: > > c:\cygwin\bin\bash -c "PATH=/cygwin/bin:$PATH; <MOSES-COMMAND>" > > where <MOSES-COMMAND> is your Moses command. > > --Ben > > On Mon, Sep 12, 2011 at 12:39 PM, <[email protected]> wrote: > > > > ---------- Forwarded message ---------- > > From: Rasha R <[email protected]> > > To: Amittai Axelrod <[email protected]> > > Date: Mon, 12 Sep 2011 13:39:15 +0300 > > Subject: Re: [Moses-support] Run Moses with cygwin from windows cmd > > thanks for your reply > > at first i think it is Cygwin/Java problem and i search for it as that > > but when i try simple shell file with one line which echo "Hello world" > > it is working correctly when i call it from java or cmd > > in this way > > c:\cygwin\bin\bash -c "/home/<USERNAME>/TEST.sh" > > so i simply replace test file call with moses call > > it gives me the previous error > > so the final > > cygwin with hello world example is working from java and windows cmd > > but moses doesn't work with both java and cmd > > > > On Mon, Sep 12, 2011 at 11:21 AM, Amittai Axelrod < > [email protected]> wrote: > >> > >> No clue; never tried. > >> > >> > >> > >> I’m guessing this is more a generic Cygwin/Java mismatch than a > Moses-specific issue, so try looking for that error message on your favorite > search engine. > >> > >> ~amittai > >> > >> > >> > >> From: Rasha R [mailto:[email protected]] > >> Sent: Monday, September 12, 2011 1:01 AM > >> To: Amittai Axelrod > >> Cc: [email protected] > >> Subject: Re: [Moses-support] Run Moses with cygwin from windows cmd > >> > >> > >> > >> thanks for your answer > >> > >> it is working under Cygwin > >> > >> but it is a project for NLP study at collage > >> > >> and i need to make a user interface for it and call moses inside it > >> i use java and my OS is windows XP > >> > >> so lets make the question like that > >> > >> how can i call cygwin moses from windows java code. > >> > >> > >> > >> On Mon, Sep 12, 2011 at 5:49 AM, Amittai Axelrod < > [email protected]> wrote: > >> > >> If you have Moses installed & working correctly under Cygwin, then just > run it from Cygwin. > >> > >> > >> > >> If it turns out that you do not have Moses installed & working correctly > under Cygwin, or have not installed all the necessary packages in Cygwin, > then check out the handy-dandy guide: > >> > >> http://ssli.ee.washington.edu/people/amittai/Moses-on-Win7.pdf > >> > >> > >> > >> (which is already in need of an update, but hey, it still works) > >> > >> ~amittai > >> > >> > >> > >> From: [email protected] [mailto: > [email protected]] On Behalf Of Rasha R > >> Sent: Saturday, September 10, 2011 2:20 PM > >> To: [email protected] > >> Subject: [Moses-support] Run Moses with cygwin from windows cmd > >> > >> > >> > >> Hi All > >> > >> Can you help me with that > >> > >> I want to run moses which is installed and working correctly under > cygwin > >> > >> from windows command line cmd > >> > >> first i am running moses under cygwin with this > >> > >> /home/<USERNAME>/moses/moses-cmd/src/moses -config > /home/<USERNAME>/work/evaluation/filtered/moses.ini -input-file > /cygdrive/d/Data.ar 1> /cygdrive/d/Eval.tuned-filtered.output 2> > /cygdrive/d/tuned-filtered.decode.out & > >> > >> > >> > >> i do some research on internet and and i found this wayto run cygwin > from cmd i try to test it with file which print Hello World and it is > working > >> > >> c:\cygwin\bin\bash -c "/home/<USERNAME>/TEST.sh" > >> > >> when i try the same command with the previous moses call like that > >> > >> I got this error in the tuned-filtered.decode.out file > >> > >> /home/<USERNAME>/moses/moses-cmd/src/moses.exe: error while loading > shared libraries: ?: cannot open shared object file: No such file or > directory > >> > >> can you help me please > >> > >> thanks > >> > >> > > >
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
