How to fix conan ERROR: The default build profile doesn't exist.

Problem:

You want to install or build a conan project using a command such as

example.sh
conan install .

but you see an error message such as

example.txt
ERROR: The default build profile '/home/uli/.conan2/profiles/default' doesn't exist.
You need to create a default profile (type 'conan profile detect' command)
or specify your own profile with '--profile:build=<myprofile>'

Solution

Typically you just want to create the default build profile using

example.sh
conan profile detect

detect means to detect the compiler.


Check out similar posts by category: Conan