Problem:
When running
conan install .
you see ERROR: Missing binary
error messages like this:
Installing (downloading, building) binaries... ERROR: Missing binary: cpr/1.6.2:76fe60a9d5c829a2384b0f578695b5a6357b8acc ERROR: Missing binary: gtest/cci.20210126:c37dc23725d84483088a68c29e2dd7122c328359 ERROR: Missing binary: jsoncpp/1.9.4:718278bac9f92b77a9a44bfbe1aa00d1c8344d51 ERROR: Missing binary: libcurl/7.78.0:d287dc966931230205222ceabf47400733e72fa3 ERROR: Missing binary: openssl/1.1.1l:c3baf9fae083edda2e0c5ef3337b6a111016a898 ERROR: Missing binary: zlib/1.2.11:c3baf9fae083edda2e0c5ef3337b6a111016a898
Solution:
Use the --build=missing
flag for conan install
to enable building the dependencies for which no binaries are available:
conan install . --build=missing
Complete error log example
Configuration: [settings] arch=armv8 arch_build=armv8 build_type=Release compiler=gcc compiler.libcxx=libstdc++ compiler.version=9 os=Linux os_build=Linux [options] [build_requires] [env] openssl/1.1.1l: Not found in local cache, looking in remotes... openssl/1.1.1l: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.26k] Downloading conanfile.py completed [40.47k] Downloading conan_export.tgz completed [0.25k] Decompressing conan_export.tgz completed [0.00k] openssl/1.1.1l: Downloaded recipe revision 0 cpr/1.6.2: Not found in local cache, looking in remotes... cpr/1.6.2: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.25k] Downloading conanfile.py completed [9.62k] Downloading conan_export.tgz completed [0.30k] Decompressing conan_export.tgz completed [0.00k] cpr/1.6.2: Downloaded recipe revision 0 WARN: cpr/1.6.2: requirement libcurl/7.80.0 overridden by elasticlient/0.2 to libcurl/7.78.0 libcurl/7.78.0: Not found in local cache, looking in remotes... libcurl/7.78.0: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.70k] Downloading conanfile.py completed [27.11k] Downloading conan_export.tgz completed [0.23k] Decompressing conan_export.tgz completed [0.00k] libcurl/7.78.0: Downloaded recipe revision 0 jsoncpp/1.9.4: Not found in local cache, looking in remotes... jsoncpp/1.9.4: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.65k] Downloading conanfile.py completed [4.90k] Downloading conan_export.tgz completed [0.25k] Decompressing conan_export.tgz completed [0.00k] jsoncpp/1.9.4: Downloaded recipe revision 0 gtest/cci.20210126: Not found in local cache, looking in remotes... gtest/cci.20210126: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.39k] Downloading conanfile.py completed [8.14k] Downloading conan_export.tgz completed [0.32k] Decompressing conan_export.tgz completed [0.00k] gtest/cci.20210126: Downloaded recipe revision 0 conanfile.py (elasticlient/0.2): Installing package Requirements cpr/1.6.2 from 'conancenter' - Downloaded jsoncpp/1.9.4 from 'conancenter' - Downloaded libcurl/7.78.0 from 'conancenter' - Downloaded openssl/1.1.1l from 'conancenter' - Downloaded zlib/1.2.11 from 'conancenter' - Cache Packages cpr/1.6.2:76fe60a9d5c829a2384b0f578695b5a6357b8acc - Missing jsoncpp/1.9.4:718278bac9f92b77a9a44bfbe1aa00d1c8344d51 - Missing libcurl/7.78.0:d287dc966931230205222ceabf47400733e72fa3 - Missing openssl/1.1.1l:c3baf9fae083edda2e0c5ef3337b6a111016a898 - Missing zlib/1.2.11:c3baf9fae083edda2e0c5ef3337b6a111016a898 - Missing Build requirements gtest/cci.20210126 from 'conancenter' - Downloaded Build requirements packages gtest/cci.20210126:c37dc23725d84483088a68c29e2dd7122c328359 - Missing Installing (downloading, building) binaries... ERROR: Missing binary: cpr/1.6.2:76fe60a9d5c829a2384b0f578695b5a6357b8acc ERROR: Missing binary: gtest/cci.20210126:c37dc23725d84483088a68c29e2dd7122c328359 ERROR: Missing binary: jsoncpp/1.9.4:718278bac9f92b77a9a44bfbe1aa00d1c8344d51 ERROR: Missing binary: libcurl/7.78.0:d287dc966931230205222ceabf47400733e72fa3 ERROR: Missing binary: openssl/1.1.1l:c3baf9fae083edda2e0c5ef3337b6a111016a898 ERROR: Missing binary: zlib/1.2.11:c3baf9fae083edda2e0c5ef3337b6a111016a898