edponce commented on issue #10222: URL: https://github.com/apache/arrow/issues/10222#issuecomment-831363193
@Atharex Besides downloading the dependency packages (e.g., Boost) you can also force cmake to use the downloaded (aka bundled) packages and ignore system-wide versions. I am able to do an offline build of Arrow 1.0.1 via the following steps: 1. Given that bintray has been retired, in `cpp/thirdparty/versions.txt` change the Boost URL from `https://dl.bintray.com/ursalabs/arrow-boost` to `https://github.com/ursa-labs/thirdparty/releases/download/27apr2021`. 2. In cmake command, specify the package dependency resolution to use the bundled version, refer to https://arrow.apache.org/docs/developers/cpp/building.html#individual-dependency-resolution. If you want to use all the downloaded packages, add `-DARROW_DEPENDENCY_SOURCE=BUNDLED`, and if you want only the Boost library package, use only `-DBOOST_SOURCE=BUNDLED`. 3. From your initial build, use the following commands ``` ## Apache Arrow build dependencies and source corresponding environment variables bash $ARROW_HOME/cpp/thirdparty/download_dependencies.sh > environ.sh source environ.sh ## Apache Arrow C++ build cmake -DCMAKE_INSTALL_PREFIX=/usr/local/lib/arrow \ -DCMAKE_INSTALL_LIBDIR=lib \ -DARROW_FLIGHT=ON \ -DARROW_ORC=ON \ -DARROW_WITH_BZ2=ON \ -DARROW_WITH_ZLIB=ON \ -DARROW_WITH_ZSTD=ON \ -DARROW_WITH_LZ4=ON \ -DARROW_WITH_SNAPPY=ON \ -DARROW_WITH_BROTLI=ON \ -DARROW_PARQUET=ON \ -DARROW_PYTHON=ON \ -DARROW_PLASMA=ON \ -DARROW_CUDA=ON \ -DARROW_DEPENDENCY_SOURCE=BUNDLED \ .. make -j 24 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
