Thank you Hieu, I will switch to Linux when I can.

For the time being with OSX I removed "-lrt" from CMakeList.txt and
encountered a new error in '$ make' --

[ 10%] Building CXX object
src/CMakeFiles/mgiza_lib.dir/ForwardBackward.cpp.o

/var/folders/p8/8d4g5v_53t3glcsclzx5cc8h0000gn/T//cckNoVZn.s:989:suffix or
operands invalid for `movq'

/var/folders/p8/8d4g5v_53t3glcsclzx5cc8h0000gn/T//cckNoVZn.s:993:suffix or
operands invalid for `movq'

/var/folders/p8/8d4g5v_53t3glcsclzx5cc8h0000gn/T//cckNoVZn.s:1011:suffix or
operands invalid for `movq'

/var/folders/p8/8d4g5v_53t3glcsclzx5cc8h0000gn/T//cckNoVZn.s:1467:suffix or
operands invalid for `movq'

/var/folders/p8/8d4g5v_53t3glcsclzx5cc8h0000gn/T//cckNoVZn.s:2527:suffix or
operands invalid for `movq'

make[2]: *** [src/CMakeFiles/mgiza_lib.dir/ForwardBackward.cpp.o] Error 1



On 20 July 2016 at 16:35, Hieu Hoang <[email protected]> wrote:

> In CMakeList.txt line 39, delete -lrt
>
> This is also a problem when compiling moses. I hack it by creating an
> empty rt library with the code in
>    mosesdecoder/contrib/rt
> and copying it into /usr/lib
>
> To be honest, there will be other problems when running moses on osx, not
> just compiling. Moses & most MT programs are mostly developed Linux people
> so many of the programs and scripts are untested on OSX. There are niggly
> differences between OSX and Linux such as sort, split, zcat etc.
>
> You are better off getting some experience using them on Linux and then
> switch to OSX once you know everything works. And I'm talking from my
> experience as a Mac user
>
>
> Hieu Hoang
> http://www.hoang.co.uk/hieu
>
> On 20 July 2016 at 14:44, Andrew Caines <[email protected]> wrote:
>
>> Hello,
>>
>> I've encountered a problem installing mgiza, downloaded from GitHub.
>> https://github.com/moses-smt/mgiza
>>
>> 'cmake .' runs fine.
>>
>> 'make' exits with the following message:
>>   [ 51%] Linking CXX executable ../bin/d4norm
>>   ld: library not found for -lrt
>>   clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>>   make[2]: *** [bin/d4norm] Error 1
>>
>> I'm on Mac OS X 10.11.5 (El Capitan). Any advice much appreciated.
>>
>> Andrew
>>
>> _______________________________________________
>> 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

Reply via email to