configure: error: libprotobuf not found. and can not use apt-get to install libprotobuf-dev on Mac os 10.11.1 #7782

issue mizhang opened this issue on April 1, 2016
  1. mizhang commented at 12:55 PM on April 1, 2016: none

    Error is

    configure: error: libprotobuf not found.

    I am using Mac os 10.11.1.

    Tried to download apt-get through port

    sudo port dpkg; sudo port apt;

    apt-get install libprotobuf-dev, get following error:

    Reading Package Lists... Done Building Dependency Tree... Done W: Couldn't stat source package list http://www.example.com stable/main Packages (/opt/local/var/db/apt/state/lists/www.example.com_packages_dists_stable_main_binary-darwin-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://www.example.com stable/contrib Packages (/opt/local/var/db/apt/state/lists/www.example.com_packages_dists_stable_contrib_binary-darwin-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://www.example.com stable/non-free Packages (/opt/local/var/db/apt/state/lists/www.example.com_packages_dists_stable_non-free_binary-darwin-i386_Packages) - stat (2 No such file or directory) W: You may want to run apt-get update to correct these problems E: Couldn't find package libprotobuf-dev

  2. paveljanik commented at 1:18 PM on April 1, 2016: contributor

    Use port install protobuf-cpp

  3. mizhang commented at 3:46 PM on April 1, 2016: none

    It works. That old error message is gone. Now I have a new error:

    checking whether the Boost::Chrono library is available... yes checking for exit in -lboost_chrono-mt... yes checking whether the Boost::Unit_Test_Framework library is available... yes checking for dynamic linked boost test... yes checking for SSL... yes checking for CRYPTO... yes checking for PROTOBUF... yes checking for QR... no checking for EVENT... no configure: error: libevent not found.

    Part of configure.log file: configure:26933: result: yes configure:26948: checking for QR configure:26955: $PKG_CONFIG --exists --print-errors "libqrencode" Package libqrencode was not found in the pkg-config search path. Perhaps you should add the directory containing libqrencode.pc' to the PKG_CONFIG_PATH environment variable No package 'libqrencode' found configure:26958: $? = 1 configure:26972: $PKG_CONFIG --exists --print-errors "libqrencode" Package libqrencode was not found in the pkg-config search path. Perhaps you should add the directory containinglibqrencode.pc' to the PKG_CONFIG_PATH environment variable No package 'libqrencode' found configure:26975: $? = 1 configure:26989: result: no No package 'libqrencode' found configure:27026: checking for EVENT configure:27033: $PKG_CONFIG --exists --print-errors "libevent" Package libevent was not found in the pkg-config search path. Perhaps you should add the directory containing libevent.pc' to the PKG_CONFIG_PATH environment variable No package 'libevent' found configure:27036: $? = 1 configure:27050: $PKG_CONFIG --exists --print-errors "libevent" Package libevent was not found in the pkg-config search path. Perhaps you should add the directory containinglibevent.pc' to the PKG_CONFIG_PATH environment variable No package 'libevent' found configure:27053: $? = 1 configure:27067: result: no No package 'libevent' found configure:27083: error: libevent not found.

    I had this problem before: #7269. At that time, I uninstalled port installed pkg-config, and brew install pkg-config. Then problem resovled.

    The same way didn't solve problem today.

    thanks a lot

  4. paveljanik commented at 4:02 PM on April 1, 2016: contributor

    Please read the the OS X build guide (https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md). This time port install libevent should fix your problem.

  5. paveljanik commented at 4:06 PM on April 1, 2016: contributor

    BTW - what do you use port, brew or both? ;-)

  6. mizhang commented at 10:40 PM on April 1, 2016: none

    @paveljanik your suggestion works like a charm. Brew uninstall libevent; sudo port install libevent, then problem fixed. thanks a lot

    I am using both port or brew. Some of the packages seems to only in one of those.

  7. mizhang closed this on Apr 1, 2016

  8. DrahtBot locked this on Sep 8, 2021
Contributors

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: 2026-04-21 21:15 UTC

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