autogen.sh fail because of pkg_config #22771

issue soha1410 openend this issue on August 22, 2021
  1. soha1410 commented at 2:41 pm on August 22, 2021: none

    Hi, I wanna build bitcoin core on mac Os Big Sur. I installed every dependency with brew but the ./autogen.sh generate this error .

    build-aux/m4/ax_pthread.m4:89: AX_PTHREAD is expanded from… configure.ac:811: the top level configure.ac:15: error: possibly undefined macro: AC_MSG_ERROR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:261: error: possibly undefined macro: AC_DEFINE configure.ac:653: error: possibly undefined macro: AC_MSG_WARN autoreconf: error: /opt/local/bin/autoconf failed with exit status: 1

    the actual error is for pkg_config not found . but I installed it . appreciate any help.

  2. soha1410 added the label Bug on Aug 22, 2021
  3. fanquake removed the label Bug on Aug 23, 2021
  4. fanquake commented at 1:48 am on August 23, 2021: member
    There’s not much we can do here. Those errors mean that pkg-config is not available. Ensure that it is, and try re-running autogen.sh.
  5. hebasto commented at 9:28 am on August 24, 2021: member

    @soha1410

    the actual error is for pkg_config not found . but I installed it .

    Via Homebrew?

    What is output of the which pkg-config command in your terminal? If it is empty, verify the PATH environment variable, to ensure it includes the path to pkg-config binary.

  6. soha1410 commented at 9:55 am on August 24, 2021: none

    @soha1410

    the actual error is for pkg_config not found . but I installed it .

    Via Homebrew?

    What is output of the which pkg-config command in your terminal? If it is empty, verify the PATH environment variable, to ensure it includes the path to pkg-config binary.

    which pkg-config /usr/local/bin/pkg-config

  7. hebasto commented at 10:12 am on August 24, 2021: member
    Could you try to start from the clean repo using git clean -xdff?
  8. soha1410 commented at 12:08 pm on August 24, 2021: none

    Could you try to start from the clean repo using git clean -xdff?

    I try that too , no success.

  9. fanquake added the label macOS on Sep 16, 2021
  10. fanquake commented at 0:57 am on September 16, 2021: member
    I’m going to close this for now. Without more debugging information, there’s not really anything we can do here. This is almost certainly an issue with your local environment. Can reopen if we get more info.
  11. fanquake closed this on Sep 16, 2021

  12. DrahtBot locked this on Oct 30, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-09-29 01:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me