Quantcast
Channel: Active questions tagged installation - Bitcoin Stack Exchange
Viewing all articles
Browse latest Browse all 68

Cannot build bitcoin source on macOS

$
0
0

I am following https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md guide for installing bitcoin from source(master branch) on my mac.After installing the minimal dependencies and ./autogen.sh I ran ./configure --with-gui=no whose output looks like

checking for x86_64-apple-darwin13.4.0-pkg-config... nochecking for pkg-config... /usr/local/bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking build system type... x86_64-apple-darwin13.4.0checking host system type... x86_64-apple-darwin13.4.0checking for a BSD-compatible install... /usr/local/bin/ginstall -cchecking whether build environment is sane... yeschecking for a race-free mkdir -p... /usr/local/bin/gmkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking whether to enable maintainer-specific portions of Makefiles... yeschecking whether make supports nested variables... (cached) yeschecking whether the C++ compiler works... yeschecking for C++ compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether the compiler supports GNU C++... yeschecking whether /usr/bin/g++ accepts -g... yeschecking for /usr/bin/g++ option to enable C++11 features... none neededchecking whether make supports the include directive... yes (GNU style)checking dependency style of /usr/bin/g++... gcc3checking whether /usr/bin/g++ supports C++17 features with -std=c++17... nochecking whether /usr/bin/g++ supports C++17 features with +std=c++17... nochecking whether /usr/bin/g++ supports C++17 features with -h std=c++17... nochecking whether /usr/bin/g++ supports C++17 features with -std=c++1z... nochecking whether /usr/bin/g++ supports C++17 features with +std=c++1z... nochecking whether /usr/bin/g++ supports C++17 features with -h std=c++1z... noconfigure: error: *** A compiler with support for C++17 language features is required.

INFO:

g++ --versionApple clang version 13.1.6 (clang-1316.0.21.2.5)Target: x86_64-apple-darwin21.5.0Thread model: posixInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I even tried compiling a simple C++ program with C++17 features with g++ -std=c++17 test.cpp and it works.

System: MacOS montery 12.4


Viewing all articles
Browse latest Browse all 68

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>