Skip to content

The Lerna script cannot find boost when building C++ modules #40

@ghost

Description

When I built on MacOS (having installed Boost using brew) everything is fine.

When I followed the directions on Ubuntu, the lerna build script fails whenever a C++ module needs Boost. I have Boost installed with apt install libboost-dev (so it's in /usr/include).

Here's a sample of just one of the many similar errors: @jpmorganchase/perspective: In file included from /home/dj/usr/src/perspective-clone/packages/perspective/src/cpp/build_filter.cpp:11: @jpmorganchase/perspective: In file included from /home/dj/usr/src/perspective-clone/packages/perspective/src/include/perspective/build_filter.h:12: @jpmorganchase/perspective: In file included from /home/dj/usr/src/perspective-clone/packages/perspective/src/include/perspective/filter.h:12: @jpmorganchase/perspective: /home/dj/usr/src/perspective-clone/packages/perspective/src/include/perspective/base.h:29:10: fatal error: 'boost/unordered_map.hpp' file not found @jpmorganchase/perspective: #include \n ^~~~~~~~~~~~~~~~~~~~~~~~~

I'm on:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful

$ em++ --version
emcc (Emscripten gcc/clang-like replacement) 1.37.33 ()
Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt)
This is free and open source software under the MIT license.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions