boost 1.68 worked for me (on Ubuntu 22.04, gcc 11.4). Make sure you use
absolute paths in you bjam command arguments. This is what I use to compile
boost
   ./bootstrap.sh
   ./b2 -j4 --prefix=$PWD --libdir=$PWD/lib64 --layout=system link=static
install
This is what I use to compile moses
   ./bjam -j 6 --with-boost=/home/hihoan/local/workspace/github/boost_1_68_0



Hieu Hoang
https://hieuhoang.github.io/


On Fri, 24 May 2024 at 08:21, Andrew Beaton <andrew.bea...@uni-potsdam.de>
wrote:

> Hello,
> I'm currently trying to build Moses with Boost 1.68.0 (not the latest
> version, but this is for compatibility reasons with a project I'm using
> for
> my thesis). However, the build fails with the following error (full error
> log is attached):
>
> /home/users/abeaton/project/thesis/VTLM2/data/mosesdecoder2/opt/boost_1_68_0/tools/build/src/tools/types/docbook.jam:8:
>
> in load
> ERROR: rule "Copyright" unknown in module "docbook".
>
> And here is the exact command I used to build Moses:
>
> ./bjam --with-boost=opt/boost_1_68_0
>
> Is this a known problem, and is there a fix besides using a more current
> version of Boost? I've also tried with the latest version (1.85.0), but
> then
> I receive another error since the
> boost_1_85_0/tools/build/src/bootstrap.jam
> file seems to be missing in the latest version.
>
> Best,
> Andrew
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> https://mailman.mit.edu/mailman/listinfo/moses-support
>
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
https://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to