{"id":2851,"date":"2026-05-12T19:54:23","date_gmt":"2026-05-12T11:54:23","guid":{"rendered":"https:\/\/thereisno.top\/?p=2851"},"modified":"2026-05-12T19:54:23","modified_gmt":"2026-05-12T11:54:23","slug":"macos-libreoffice-%e7%bc%96%e8%af%91%e9%94%99%e8%af%af%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/thereisno.top\/?p=2851","title":{"rendered":"macOS LibreOffice \u7f16\u8bd1\u9519\u8bef\u89e3\u51b3"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u9519\u8bef1<\/h2>\n\n\n\n<pre id=\"codecell0\" class=\"wp-block-preformatted\">checking for bogus pkg-config... configure: error: yes, from unknown origin. This *will* break the build. Please modify your PATH variable so that pkgconf-2.5.1\/pkgconf is no longer found by configure scripts.\n<\/pre>\n\n\n\n<p>\u6392\u67e5\u601d\u8def\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6000\u7591\u662f\u81ea\u7f16\u8bd1\u672a<code>make\u00a0install<\/code>\u00a0<code>pkg-config<\/code>\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u95ee\u9898\uff0c\u4f46\u662f\u6267\u884c<code>pkg-config\u00a0--version<\/code>\u547d\u4ee4\uff0c\u8fd4\u56de<code>0.29.2<\/code>\uff0c\u8bf4\u660e<code>pkg-config<\/code>\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6b63\u786e\u3002<\/li>\n\n\n\n<li>\u68c0\u67e5\u73af\u5883\u53d8\u91cf<code>PKG_CONFIG_PATH<\/code>\u4e5f\u6ca1\u6709\u95ee\u9898\uff0c\u6267\u884c<code>pkgconf\u00a0--libs\u00a0openssl<\/code>\u8fd4\u56de\u00a0<code>-L\/opt\/homebrew\/Cellar\/openssl@3\/3.5.0\/lib\u00a0-lssl\u00a0-lcrypto<\/code>\uff0c\u8bf4\u660e<code>pkg-config<\/code>\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6b63\u786e\u3002<\/li>\n\n\n\n<li>\u68c0\u67e5<code>configure<\/code>\u6587\u4ef6\uff0c\u53d1\u73b0\u5982\u4e0b\u5185\u5bb9<\/li>\n<\/ol>\n\n\n\n<!--more-->\n\n\n\n<pre id=\"codecell1\" class=\"wp-block-preformatted\">vi configure\n--enable-bogus-pkg-config\n           MACOSX only: on MacOSX pkg-config can cause trouble.\n           by default if one is found in the PATH, an error is\n           issued. This flag turn that error into a warning.\n<\/pre>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5<\/p>\n\n\n\n<pre id=\"codecell2\" class=\"wp-block-preformatted\">vi autogen.lastrun\n\u8ffd\u52a0\n--enable-bogus-pkg-config\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u9519\u8bef2<\/h2>\n\n\n\n<pre id=\"codecell3\" class=\"wp-block-preformatted\">\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/clang++ -target arm64-apple-macos -stdlib=libc++ -mmacosx-version-min=11.0 -isysroot \/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/MacOSX.platform\/Developer\/SDKs\/MacOSX26.2.sdk -Isrc\/libharfbuzz.a.p -Isrc -I..\/src -I. -I.. -I\/Users\/Libreoffice\/core\/workdir\/UnpackedTarball\/graphite\/include -I\/Users\/Libreoffice\/core\/workdir\/UnpackedTarball\/icu\/source\/i18n -I\/Users\/Libreoffice\/core\/workdir\/UnpackedTarball\/icu\/source\/common -fvisibility=hidden -fdiagnostics-color=always -D_LIBCPP_ENABLE_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++20 -fno-exceptions -O3 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -DGRAPHITE2_STATIC -MD -MQ src\/libharfbuzz.a.p\/hb-buffer-serialize.cc.o -MF src\/libharfbuzz.a.p\/hb-buffer-serialize.cc.o.d -o src\/libharfbuzz.a.p\/hb-buffer-serialize.cc.o -c ..\/src\/hb-buffer-serialize.cc\nIn file included from ..\/src\/hb-buffer-serialize.cc:27:\nIn file included from ..\/src\/hb.hh:199:\nIn file included from ..\/src\/hb.h:31:\nIn file included from ..\/src\/hb-blob.h:34:\nIn file included from ..\/src\/hb-common.h:66:\nIn file included from \/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/MacOSX.platform\/Developer\/SDKs\/MacOSX26.2.sdk\/usr\/include\/c++\/v1\/inttypes.h:241:\n\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/MacOSX.platform\/Developer\/SDKs\/MacOSX26.2.sdk\/usr\/include\/c++\/v1\/__config:49:6: error: \"_LIBCPP_ENABLE_ASSERTIONS has been removed, please use _LIBCPP_HARDENING_MODE instead\"\n   49 | #    error \"_LIBCPP_ENABLE_ASSERTIONS has been removed, please use _LIBCPP_HARDENING_MODE instead\"\n      |      ^\n1 error generated.\n<\/pre>\n\n\n\n<p>\u89e3\u51b3\u601d\u8def\uff1a \u9519\u8bef\u4fe1\u606f\uff1a<code>_LIBCPP_ENABLE_ASSERTIONS<\/code>\u5df2\u5f03\u7528\uff0c\u8bf7\u4f7f\u7528<code>_LIBCPP_HARDENING_MODE<\/code>\u4ee3\u66ff\u3002\u5168\u6587\u641c\u7d22<code>_LIBCPP_ENABLE_ASSERTIONS<\/code>\u627e\u5230\u4f7f\u7528<code>_LIBCPP_ENABLE_ASSERTIONS=1<\/code>\u7684\u5730\u65b9\u66ff\u6362\u4e3a<code>_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG<\/code><\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<pre id=\"codecell4\" class=\"wp-block-preformatted\">vi Libreoffice\/core\/workdir\/UnpackedTarball\/harfbuzz\/builddir\/build.ninja\n\u627e\u5230\n-D_LIBCPP_ENABLE_ASSERTIONS=1\n\u66ff\u6362\u4e3a\n-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9519\u8bef1 checking for bogus pkg-config&#8230; configure: error:  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/thereisno.top\/?p=2851\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cmacOS LibreOffice \u7f16\u8bd1\u9519\u8bef\u89e3\u51b3\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[47],"class_list":["post-2851","post","type-post","status-publish","format-standard","hentry","category-macos","tag-libreoffice"],"_links":{"self":[{"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/posts\/2851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thereisno.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2851"}],"version-history":[{"count":1,"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/posts\/2851\/revisions"}],"predecessor-version":[{"id":2852,"href":"https:\/\/thereisno.top\/index.php?rest_route=\/wp\/v2\/posts\/2851\/revisions\/2852"}],"wp:attachment":[{"href":"https:\/\/thereisno.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thereisno.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thereisno.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}