I'm starting a brand new project, and trying to get it to work with conan:
https://github.com/acgetchell/causal-sets-explorer
So if I attempt to run conan install I get:
~~~
┌─[adam][hapkido][±][master U:1 ✗][~/causal-sets-explorer/build]
└─▪ conan install .. -s compiler=apple-clang -s compiler.version=7.0 -s compiler.libcxx=libc++
Requirements
Boost/1.63.0@eliaskousk/stable from conan.io
bzip2/1.0.6@lasote/stable from conan.io
zlib/1.2.8@lasote/stable from local
Packages
Boost/1.63.0@eliaskousk/stable:c4bfd0242b2bd6f833cf3dd15d54fa9aa1903ad1
bzip2/1.0.6@lasote/stable:19a77801894e2653b36aa2027b1b7c8609c33464
zlib/1.2.8@lasote/stable:4caa2a31f011ce34decef2908249751dac029ed3
bzip2/1.0.6@lasote/stable: Already installed!
WARN: Can't find a 'zlib/1.2.8@lasote/stable' package for the specified options and settings:
ERROR: Missing prebuilt package for 'zlib/1.2.8@lasote/stable'
Try to build it from sources with "--build zlib"
Or read "http://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package"
~~~
But the suggested fix doesn't work either:
~~~
┌─[adam][hapkido][±][master U:1 ✗][~/causal-sets-explorer/build]
└─▪ conan install .. -s compiler=apple-clang -s compiler.version=7.0 -s compiler.libcxx=libc++ --build zlib
Requirements
Boost/1.63.0@eliaskousk/stable from conan.io
bzip2/1.0.6@lasote/stable from conan.io
zlib/1.2.8@lasote/stable from local
Packages
Boost/1.63.0@eliaskousk/stable:c4bfd0242b2bd6f833cf3dd15d54fa9aa1903ad1
bzip2/1.0.6@lasote/stable:19a77801894e2653b36aa2027b1b7c8609c33464
zlib/1.2.8@lasote/stable:4caa2a31f011ce34decef2908249751dac029ed3
bzip2/1.0.6@lasote/stable: Already installed!
zlib/1.2.8@lasote/stable: WARN: Forced build from source
ERROR: Error while trying to get recipe sources for zlib/1.2.8@lasote/stable. No remote defined
~~~
zlib/1.2.8@lasote/stable from local
That means you exported the zlib recipe locally somehow. Try doing a conan remove zlib/1.2.8@lasote/stable and re-run the install. It will fetch the recipe from conan.io again.
Thanks, that fixed it! I've referenced this in my project in case anyone else comes across it.
Most helpful comment
That means you exported the zlib recipe locally somehow. Try doing a
conan remove zlib/1.2.8@lasote/stableand re-run the install. It will fetch the recipe from conan.io again.