i've taken out the code to link it to libboost*-mt https://github.com/moses-smt/mosesdecoder/commit/c8d6ff05bd8a8735d9915775e4713636a50da22d I'm not sure how to override it so that it links to the newer version in preference to the system version. I guess that has to be done with environment variables.
lets see if this is good enough On 18 September 2014 10:09, Christian Hardmeier < [email protected]> wrote: > Hi Hieu, > > thanks for looking at this! > > I believe where it goes wrong is when there's an old version of Boost > somewhere in the system paths, as there is on many systems. If that version > has the -mt libs (which it would have especially if it's very old since > this was the default in the 1.30 series of Boost), moses will prefer it to > the newer version you installed. Does that sound right? > > I even think I've seen it pick up new headers from a custom installation > together with old libs from /usr/lib sometimes, but I don't remember > exactly under what circumstances that would happen. > > /Christian > > On Sep 17, 2014, at 8:10 PM, Hieu Hoang wrote: > > > it looks like Moses has been configured to use > > libboost_* > > if the tagged version isn't available. Therefore, you don't need to > create > > libboost_*-mt.a > > Isn't that good enough? > > > > > > > > On 15 September 2014 07:30, Hieu Hoang <[email protected]> wrote: > > Sounds good. Since there's been no objection, feel free to check in yhe > change yourself. Otherwise I'll do it in the next couple of weeks > > > > Sent from my flying horse > > > > > On 15 Sep 2014, at 05:44 am, Tom Hoar < > [email protected]> wrote: > > > > > > I support the effort. Updating to standard expectations almost always > > > reduces support requests. > > > > > > Regards, > > > Tom > > > > > > > > >> On 09/12/2014 02:05 PM, Pierre Lison wrote: > > >> Hi, > > >> > > >> I second Christian's request. We got into some trouble installing > Moses on our cluster because of this naming scheme. It would be great to > switch to a standard library layout for Boost. > > >> > > >> Cheers, > > >> > > >> Pierre > > >> > > >> > > >>> 10. sep. 2014 kl. 18:14 skrev Christian Hardmeier < > [email protected]>: > > >>> > > >>> Hi everyone, > > >>> > > >>> Moses currently requires installing the Boost libraries with the > --layout=tagged option. This library naming scheme has been non-standard on > Unix-like systems since Boost 1.40.0. It forces you to use special options > when installing Boost, and it can lead to trouble if you then try to link > Moses against other software that prefers a standard installation - > effectively you have to install Boost twice to make everybody happy. > > >>> > > >>> In my opinion, it would be preferable if Moses used the > --layout=system scheme that you get by default in recent versions of Boost. > Would anybody object to this? > > >>> > > >>> Best, > > >>> Christian > > >>> _______________________________________________ > > >>> Moses-support mailing list > > >>> [email protected] > > >>> http://mailman.mit.edu/mailman/listinfo/moses-support > > >> -- > > >> Pierre Lison (Postdoctoral Research Fellow) > > >> Department of Informatics, University of Oslo > > >> Mobile: +47.967.998.12 > > >> Web: http://folk.uio.no/plison > > >> > > >> > > >> _______________________________________________ > > >> 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 > > > > > > > > -- > > Hieu Hoang > > Research Associate > > University of Edinburgh > > http://www.hoang.co.uk/hieu > > > > _______________________________________________ > > Moses-support mailing list > > [email protected] > > http://mailman.mit.edu/mailman/listinfo/moses-support > > > -- Hieu Hoang Research Associate University of Edinburgh http://www.hoang.co.uk/hieu
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
