Hi Xiufeng This is a known boost compatibility issue with 1.65 and above due to the removal of TR1 library. We'll be working on a fix in upcoming release.
Typically the MADlib `make` would download boost 1.61 - in this case, since Boost is already present it didn't download a compatible package. You can force it to use a compatible version by downloading it (http://sourceforge.net/projects/boost/files/boost_1_61_0.tar.gz) and re-running cmake command with " -DBOOST_TAR_SOURCE=/path/to/boost_x_x_x.tar.gz". I would recommend clearing existing build directory before the above cmake and running make with `-j1` to allow extracting the boost download before compilation. Best, Rahul On Sat, Aug 11, 2018 at 9:55 AM xiufeng liu <toxiuf...@gmail.com> wrote: > Hi, > When I compile Madlib for Postgresql 10 on Ubuntu 18.04, I got the > following error. But, I have already install libboost1.65-all-dev, > and libboost1.65-dev > Could anybody help? thanks > > /afancy > > [ 42%] Built target pythonFiles_postgresql_10 > make[3]: Entering directory '/tmp/tmpJa2FVT/madlib-1.14.0/build' > Scanning dependencies of target madlib_postgresql_10 > make[3]: Leaving directory '/tmp/tmpJa2FVT/madlib-1.14.0/build' > make[3]: Entering directory '/tmp/tmpJa2FVT/madlib-1.14.0/build' > [ 42%] Building CXX object > src/ports/postgres/10/CMakeFiles/madlib_postgresql_10.dir/__/__/__/modules/assoc_rules/assoc_rules.cpp.o > In file included from > /tmp/tmpJa2FVT/madlib-1.14.0/src/modules/assoc_rules/assoc_rules.cpp:11:0: > /tmp/tmpJa2FVT/madlib-1.14.0/src/ports/postgres/dbconnector/dbconnector.hpp:88:10: > fatal error: boost/tr1/array.hpp: No such file or directory > #include <boost/tr1/array.hpp> > ^~~~~~~~~~~~~~~~~~~~~ > compilation terminated. > src/ports/postgres/10/CMakeFiles/madlib_postgresql_10.dir/build.make:62: > recipe for target > 'src/ports/postgres/10/CMakeFiles/madlib_postgresql_10.dir/__/__/__/modules/assoc_rules/assoc_rules.cpp.o' > failed > make[3]: *** > [src/ports/postgres/10/CMakeFiles/madlib_postgresql_10.dir/__/__/__/modules/assoc_rules/assoc_rules.cpp.o] > Error 1 > make[3]: Leaving directory '/tmp/tmpJa2FVT/madlib-1.14.0/build' > CMakeFiles/Makefile2:781: recipe for target > 'src/ports/postgres/10/CMakeFiles/madlib_postgresql_10.dir/all' failed > make[2]: *** > [src/ports/postgres/10/CMakeFiles/madlib_postgresql_10.dir/all] Error 2 > make[2]: Leaving directory '/tmp/tmpJa2FVT/madlib-1.14.0/build' > Makefile:151: recipe for target 'all' failed > make[1]: *** [all] Error 2 > make[1]: Leaving directory '/tmp/tmpJa2FVT/madlib-1.14.0/build' > Makefile:5: recipe for target 'all' failed > make: *** [all] Error 2 > ERROR: command returned 2: make PG_CONFIG=/usr/bin/pg_config all > >