Conan: Missing prebuilt package for zlib on MacOS, can't build zlib from source

Created on 5 Mar 2017  Â·  2Comments  Â·  Source: conan-io/conan

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:

  • Settings: arch=x86_64, build_type=Release, compiler=apple-clang, compiler.libcxx=libc++, compiler.version=7.0, os=Macos
  • Options: shared=True

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
~~~

Most helpful comment

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.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings