conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.13k stars 968 forks source link

Conan doesn't support Macos, apparently? #3481

Closed bgenchel closed 6 years ago

bgenchel commented 6 years ago

OSX 10.11.6 El Capitan Homebrew 1.7.3

Installed Conan with homebrew via brew install conan

the conan version is 1.6.1

Getting this when I try to install anything: Invalid setting 'Macos' is not a valid 'settings.os' value.

Look inside my settings.yml file to find

os:
    Windows:
    ┆   subsystem: [None, cygwin, msys, msys2, wsl]
    WindowsStore:
    ┆   version: ["8.1", "10.0"]
    Linux:
    Macos:
    ┆   version: [None, "10.6", "10.7", "10.8", "10.9", "10.10", "10.11", "10.12", "10.13", "10.14"]
    Android:
    ┆   api_level: ANY
    iOS:
    ┆   version: ["7.0", "7.1", "8.0", "8.1", "8.2", "8.3", "9.0", "9.1", "9.2", "9.3", "10.0", "10.1",
 "10.2", "10.3", "11.0"]
    watchOS:
    ┆   version: ["4.0"]
    tvOS:
    ┆   version: ["11.0"]
    FreeBSD:
    SunOS:
    Arduino:
    ┆   board: ANY

For further specificity, here is my test conanfile.txt, taken almost directly from the virtualenv page (https://blog.conan.io/2016/08/04/Conan-virtual-environments-Manage-your-C-and-C++-tools.html)

[requires]
mingw_installer/1.0@conan/stable
cmake_installer/3.8.1@conan/stable

[generators]
virtualenv

No idea what's happening, but honestly, I'm about to give up. I wanted to use conan to set up a common dev environment for a software team, but I've already had to do a bunch of custom fanagling to get it to even run the examples given in the docs.

I really have a very low opinion of this software at this point. I don't understand why this is such a headache when every other package manager just works out of box.

acgetchell commented 6 years ago

It works for my projects:

https://github.com/acgetchell/causal-sets-explorer

https://github.com/acgetchell/CDT-plusplus

Croydon commented 6 years ago

macOS is definitely supported.

Not sure why but it seems like the homebrew version did also fall a little bit behind the current release.

Have you tried installing via pip?

Croydon commented 6 years ago

It would also help to know what Conan packages you have tried to install

sztomi commented 6 years ago

Try installing conan via pip. If that works, this is a bug that should be reported to homebrew.

memsharded commented 6 years ago

Thanks all for the feedback. From the docs: https://docs.conan.io/en/latest/installation.html

The preferred and strongly recommended way to install Conan is from PyPI, the Python Package Index, using the pip command.

The brew installation is managed by the homebrew team, not by conan team.

sztomi commented 6 years ago

To be fair though, the brew installation is listed on that page. I think it would be useful to highlight visibly which is official and supported and which is not.

lasote commented 6 years ago

Fair enough. Download page updated: https://conan.io/downloads.html

danimtb commented 6 years ago

@ilovezfs seems to be maintaining the the brew formula for Conan. Maybe can help to clarify the issue.

I would also like to ask if the brew updated for Conan are automated somehow or if it is something done manually.

Thanks!