Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16903

[R] Install failure on Ubuntu-22.04 when libboost-filesystem-dev is missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • R
    • None

    Description

      Trying to install the R package on Ubuntu 22.04 gives the following unhelpful error for any configuration, even when using LIBARROW_MINIMAL=true or FORCE_BUNDLED_BUILD=true

         * installing *source* package ‘arrow’ ...
        ** using staged installation
        Replacing default rmarkdown theme...
        *** No libarrow binary found for version 8.0.0.9000 on ubuntu-22.04
        *** Proceeding without libarrow
        ------------------------- NOTE ---------------------------
        There was an issue preparing the Arrow C++ libraries.
        See https://arrow.apache.org/docs/r/articles/install.html
        ---------------------------------------------------------
      

      It would be helpful in the message above to mention `ARROW_R_DEV=true` to debug this further because that is not obvious.

      Now the issue turned out to be this:

      -- Could NOT find Boost: missing: system filesystem (found /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.58"))
      CMake Error at cmake_modules/ThirdpartyToolchain.cmake:892 (add_library):
        add_library cannot create imported target "Boost::headers" because another
        target with the same name already exists.
      Call Stack (most recent call first):
        cmake_modules/ThirdpartyToolchain.cmake:154 (build_boost)
        cmake_modules/ThirdpartyToolchain.cmake:255 (build_dependency)
        cmake_modules/ThirdpartyToolchain.cmake:1005 (resolve_dependency)
        CMakeLists.txt:567 (include)
      

      So my system had boost, but it did not have libboost-filesystem-dev. This leads to a fatal error, even when we build with bundled dependencies. Is that expected? It is not documented on https://arrow.apache.org/docs/r/articles/install.html that this is a hard requirement.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jeroenooms Jeroen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: