{"id":111912,"date":"2026-10-02T06:57:07","date_gmt":"2026-10-01T22:57:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/111912.html"},"modified":"2026-10-02T06:57:07","modified_gmt":"2026-10-01T22:57:07","slug":"php-%e6%89%a9%e5%b1%95%e5%8a%a0%e8%bd%bd%e5%a4%b1%e8%b4%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/111912.html","title":{"rendered":"PHP \u6269\u5c55\u52a0\u8f7d\u5931\u8d25"},"content":{"rendered":"<p>php -m \u62a5 Unable to load dynamic library\u3002\u7b54\u6848\u5176\u5b9e\u5c31\u5199\u5728\u8fd9\u6761\u62a5\u9519\u91cc&#xff0c;\u53ea\u662f\u5199\u5728\u6700\u91cc\u9762\u90a3\u5c42\u62ec\u53f7\u91cc\u3002<\/p>\n<p>\u8fd9\u4e2a\u6545\u969c\u5bb9\u6613\u8ba9\u4eba\u7ed5\u8fdc\u3002\u62a5\u9519\u6587\u672c\u957f\u3001\u5e26\u8def\u5f84\u3001\u5e26\u62ec\u53f7\u5d4c\u5957&#xff0c;\u7b2c\u4e00\u773c\u770b\u4e0d\u51fa\u8be5\u67e5\u4ec0\u4e48\u3002\u4e8e\u662f\u8f6c\u5934\u53bb\u7ffb\u9762\u677f\u3001\u91cd\u88c5\u6269\u5c55\u3001\u6bd4\u5bf9 php.ini&#xff0c;\u6298\u817e\u4e00\u5708\u95ee\u9898\u8fd8\u5728\u3002<\/p>\n<p>\u8fd9\u53f0\u662f PHP 8.4.25 \u5bb9\u5668&#xff0c;\u955c\u50cf 1panel-php-fpm:8.4.25\u3002\u57fa\u7840\u955c\u50cf Debian 13&#xff08;trixie&#xff09;\u3002\u65b9\u6cd5\u4e0d\u4f9d\u8d56 Docker&#xff0c;\u4efb\u4f55 Linux \u4e0a\u7684 PHP \u90fd\u9002\u7528\u3002<\/p>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">PHP_CTN<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;php84&#034;<\/span>   <span class=\"token comment\"># \u6362\u6210\u4f60\u7684 PHP \u5bb9\u5668\u540d<\/span><\/p>\n<p>\u5148\u628a\u90a3\u6761\u62a5\u9519\u8bfb\u660e\u767d<\/p>\n<p>\u5b8c\u6574\u7684\u4e00\u6574\u884c\u957f\u8fd9\u6837&#xff08;2026-09-16 \u5b9e\u6d4b&#xff09;&#xff1a;<\/p>\n<p>PHP Warning:  PHP Startup: Unable to load dynamic library &#039;zip&#039; (tried: &#8230;\/zip.so (libzip.so.5: cannot open shared object file: No such file or directory)) in Unknown on line 0<\/p>\n<p>\u8fd9\u6761\u62a5\u9519\u662f\u5d4c\u5957\u7684&#xff0c;\u4ece\u5916\u5f80\u91cc\u8bfb\u4e09\u5c42\u3002<\/p>\n<p>\u7b2c 1 \u5c42\u662f Unable to load dynamic library &#039;zip&#039;\u3002\u8bf4\u7684\u662f\u8c01\u5931\u8d25\u4e86&#xff1a;\u540d\u53eb zip \u7684\u6269\u5c55\u3002<\/p>\n<p>\u7b2c 2 \u5c42\u662f tried: &#8230;\/zip.so&#xff0c;\u8bf4\u7684\u662f\u5b83\u53bb\u627e\u4e86\u54ea\u4e2a\u6587\u4ef6\u3002\u6ce8\u610f\u8fd9\u4e2a .so \u6587\u4ef6\u662f\u5b58\u5728\u7684&#xff0c;\u5426\u5219\u4e0d\u4f1a\u8bf4 tried\u3002<\/p>\n<p>\u7b2c 3 \u5c42\u5728\u6700\u91cc\u9762\u90a3\u5c42\u62ec\u53f7\u91cc\u3002\u62ec\u53f7\u91cc\u5199\u7684\u662f (libzip.so.5: cannot open shared object file: No such file or directory)\u3002\u95ee\u9898\u5c31\u5728\u8fd9\u4e00\u5c42&#xff1a;zip.so \u81ea\u5df1\u8981\u7528\u7684 libzip.so.5 \u627e\u4e0d\u5230\u3002<\/p>\n<p>\u524d\u4e24\u5c42\u53ea\u56de\u7b54\u4e86\u8c01\u5931\u8d25\u4e86\u3001\u5b83\u53eb\u4ec0\u4e48\u540d\u5b57\u3002\u7b2c\u4e09\u5c42\u624d\u662f\u7b54\u6848\u3002<\/p>\n<p>\u8fd9\u6761\u62a5\u9519\u7ed9\u51fa\u7684\u6838\u5fc3\u8ba4\u77e5\u662f&#xff1a;\u6269\u5c55\u7684 .so \u6587\u4ef6\u5b58\u5728&#xff0c;\u4e0d\u4ee3\u8868\u5b83\u80fd\u88ab\u52a0\u8f7d\u3002<\/p>\n<p>.so \u662f\u52a8\u6001\u5e93&#xff0c;\u5b83\u81ea\u5df1\u4e5f\u8981\u4f9d\u8d56\u522b\u7684\u52a8\u6001\u5e93\u3002PHP \u52a0\u8f7d zip.so \u7684\u6d41\u7a0b\u662f\u627e\u5230\u6587\u4ef6\u3001\u4ea4\u7ed9\u52a8\u6001\u94fe\u63a5\u5668\u3002\u52a8\u6001\u94fe\u63a5\u5668\u518d\u53bb\u89e3\u6790 zip.so \u7684\u4f9d\u8d56&#xff0c;\u4f9d\u8d56\u91cc\u6709\u4e00\u4e2a\u627e\u4e0d\u5230&#xff0c;\u6574\u4e2a\u52a0\u8f7d\u5c31\u5931\u8d25\u3002<\/p>\n<p>\u6240\u4ee5\u6269\u5c55\u6587\u4ef6\u5728\u4e0d\u5728\u548c\u6269\u5c55\u80fd\u4e0d\u80fd\u7528&#xff0c;\u662f\u4e24\u4e2a\u72ec\u7acb\u7684\u95ee\u9898\u3002\u9762\u677f\u53ea\u56de\u7b54\u7b2c\u4e00\u4e2a&#xff0c;ldd \u624d\u56de\u7b54\u7b2c\u4e8c\u4e2a\u3002<\/p>\n<p>\u7528 ldd \u628a\u4f9d\u8d56\u5173\u7cfb\u644a\u5f00<\/p>\n<p>ldd \u6253\u5370\u4e00\u4e2a\u7a0b\u5e8f\u6216\u8005\u52a8\u6001\u5e93\u9700\u8981\u54ea\u4e9b\u5171\u4eab\u5e93&#xff0c;\u4ee5\u53ca\u6bcf\u4e2a\u4f9d\u8d56\u6700\u7ec8\u89e3\u6790\u5230\u4e86\u54ea\u4e2a\u6587\u4ef6\u3002<\/p>\n<p><span class=\"token comment\"># \u5148\u95ee PHP \u81ea\u5df1\u8981\u6269\u5c55\u76ee\u5f55\u5728\u54ea&#xff08;\u522b\u786c\u7f16\u7801\u8def\u5f84&#xff0c;\u89c1\u4e0b\u65b9\u8bf4\u660e&#xff09;<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$PHP_CTN<\/span>&#034;<\/span> php <span class=\"token parameter variable\">-r<\/span> <span class=\"token string\">&#039;echo ini_get(&#034;extension_dir&#034;), &#034;\\\\n&#034;;&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u7136\u540e\u5bf9\u5177\u4f53\u6269\u5c55\u8dd1 ldd&#xff0c;\u53ea\u6311\u51fa\u627e\u4e0d\u5230\u7684<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$PHP_CTN<\/span>&#034;<\/span> <span class=\"token function\">bash<\/span> <span class=\"token parameter variable\">-c<\/span> <span class=\"token string\">&#039;<br \/>\n  EXT_DIR&#061;&#034;$(php -r &#034;echo ini_get(\\\\&#034;extension_dir\\\\&#034;);&#034;)&#034;<br \/>\n  ldd &#034;$EXT_DIR\/zip.so&#034; | grep &#034;not found&#034;&#039;<\/span><\/p>\n<p>\u522b\u786c\u7f16\u7801\u6269\u5c55\u76ee\u5f55\u3002\u5b83\u7684\u540d\u5b57\u91cc\u5e26\u7740 PHP \u7684 API \u7248\u672c\u53f7&#xff0c;\u6362\u4e2a\u5c0f\u7248\u672c\u5c31\u53ef\u80fd\u53d8\u3002\u6bd4\u5982 \/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20240924\/\u3002\u7528 php -r &#039;echo ini_get(&#034;extension_dir&#034;);&#039; \u95ee PHP \u81ea\u5df1&#xff0c;\u6c38\u8fdc\u662f\u5bf9\u7684\u3002<\/p>\n<p>\u6b63\u5e38\u7684 ldd \u8f93\u51fa\u957f\u8fd9\u6837&#xff0c;\u8fd9\u662f glibc \u7684 man page \u91cc\u7ed9\u7684\u6807\u51c6\u793a\u4f8b&#xff1a;<\/p>\n<p>linux-vdso.so.1 (0x00007ffcc3563000)<br \/>\nlibselinux.so.1 &#061;&gt; \/lib64\/libselinux.so.1 (0x00007f87e5459000)<br \/>\nlibc.so.6 &#061;&gt; \/lib64\/libc.so.6 (0x00007f87e4e92000)<\/p>\n<p>\u683c\u5f0f\u662f \u540d\u5b57 &#061;&gt; \u89e3\u6790\u5230\u7684\u8def\u5f84 (\u52a0\u8f7d\u5730\u5740)\u3002\u5de6\u8fb9\u7684\u540d\u5b57\u662f\u9700\u8981\u54ea\u4e2a\u5e93&#xff0c;\u8fd9\u662f\u5199\u5728\u6587\u4ef6\u91cc\u7684 soname\u3002&#061;&gt; \u53f3\u8fb9\u662f\u5b9e\u9645\u627e\u5230\u4e86\u54ea\u4e2a\u6587\u4ef6\u3002\u672b\u5c3e\u90a3\u4e2a (0x&#8230;) \u662f\u52a0\u8f7d\u5730\u5740&#xff0c;\u6392\u67e5\u7f3a\u5e93\u65f6\u4e0d\u7528\u7ba1\u3002<\/p>\n<p>\u7f3a\u5e93\u7684\u65f6\u5019 &#061;&gt; \u53f3\u8fb9\u53d8\u6210 not found&#xff1a;<\/p>\n<p>libzip.so.5 &#061;&gt; not found<\/p>\n<p>\u4e24\u4e2a\u7279\u6b8a\u9879\u7b2c\u4e00\u6b21\u770b\u4f1a\u7591\u60d1&#xff0c;\u90fd\u4e0d\u7528\u7ba1\u3002linux-vdso.so.1 \u6ca1\u6709 &#061;&gt;&#xff0c;\u5b83\u662f\u5185\u6838\u63d0\u4f9b\u7684\u865a\u62df DSO\u3002\u5b83\u4e0d\u5bf9\u5e94\u78c1\u76d8\u4e0a\u7684\u6587\u4ef6&#xff0c;\u6240\u4ee5\u6ca1\u6709\u8def\u5f84\u53ef\u89e3\u6790&#xff0c;\u8fd9\u4e0d\u53eb\u7f3a\u5e93\u3002ld-linux-x86-64.so.2 \u662f\u52a8\u6001\u94fe\u63a5\u5668\u81ea\u5df1&#xff0c;\u51fa\u73b0\u5728\u4f9d\u8d56\u5217\u8868\u91cc\u662f\u6b63\u5e38\u7684\u3002<\/p>\n<p>\u6211\u8fd9\u6b21\u5b9e\u6d4b\u5230\u7684\u7ed3\u679c<\/p>\n<p>\u56db\u4e2a\u6269\u5c55\u540c\u65f6\u52a0\u8f7d\u5931\u8d25&#xff0c;\u4e00\u6761\u547d\u4ee4\u5217\u51fa\u5168\u90e8\u7f3a\u5931\u5e93&#xff08;2026-09-16 \u5b9e\u6d4b&#xff09;&#xff1a;<\/p>\n<p>&#8212; gd &#8212;<br \/>\nlibpng16.so.16 &#061;&gt; not found<br \/>\nlibavif.so.16 &#061;&gt; not found<br \/>\nlibwebp.so.7 &#061;&gt; not found<br \/>\nlibjpeg.so.62 &#061;&gt; not found<br \/>\nlibXpm.so.4 &#061;&gt; not found<br \/>\nlibfreetype.so.6 &#061;&gt; not found<br \/>\n&#8212; intl &#8212;<br \/>\nlibicuio.so.76 &#061;&gt; not found<br \/>\nlibicui18n.so.76 &#061;&gt; not found<br \/>\nlibicuuc.so.76 &#061;&gt; not found<br \/>\n&#8212; zip &#8212;<br \/>\nlibzip.so.5 &#061;&gt; not found<br \/>\n&#8212; memcached &#8212;<br \/>\nlibmemcached.so.11 &#061;&gt; not found<\/p>\n<p>\u56db\u4e2a\u6269\u5c55&#xff0c;\u5171\u7f3a 11 \u4e2a\u5171\u4eab\u5e93\u3002\u5230\u8fd9\u91cc&#xff0c;\u95ee\u9898\u5df2\u7ecf\u4ece\u300c\u6269\u5c55\u52a0\u8f7d\u5931\u8d25\u300d\u53d8\u6210\u4e86\u4e00\u4e2a\u5177\u4f53\u7684\u3001\u53ef\u6267\u884c\u7684\u6e05\u5355\u3002<\/p>\n<p>\u5b9a\u4f4d\u5230\u5e93\u540d\u53ea\u5b8c\u6210\u4e86\u4e00\u534a&#xff0c;\u4f60\u8fd8\u9700\u8981\u77e5\u9053\u8fd9\u4e2a\u5e93\u5c5e\u4e8e\u54ea\u4e2a\u5305\u3002<\/p>\n<p>\u6700\u5feb\u7684\u529e\u6cd5\u662f\u6309\u547d\u540d\u89c4\u5f8b\u63a8\u3002Debian \u7684\u5305\u540d\u548c\u5e93\u540d\u6709\u5927\u81f4\u5bf9\u5e94\u5173\u7cfb\u3002libzip.so.5 \u901a\u5e38\u5bf9\u5e94 libzip5\u3002libpng16.so.16 \u5bf9\u5e94 libpng16-16&#xff0c;libicuuc.so.76 \u5bf9\u5e94 libicu76\u3002\u89c4\u5f8b\u662f\u300clib &#043; \u540d\u5b57 &#043; .so. &#043; \u4e3b\u7248\u672c\u53f7\u300d\u5bf9\u5e94\u300clib &#043; \u540d\u5b57 &#043; \u4e3b\u7248\u672c\u53f7\u300d\u3002\u80fd\u7528&#xff0c;\u4f46\u4e0d\u80fd\u5199\u6b7b&#xff0c;\u4e0b\u9762\u90a3\u4e2a\u5751\u5c31\u662f\u53cd\u4f8b\u3002<\/p>\n<p>\u6700\u51c6\u7684\u662f\u76f4\u63a5\u67e5&#xff1a;<\/p>\n<p><span class=\"token comment\"># Debian\/Ubuntu&#xff1a;\u67e5\u67d0\u4e2a\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e2a\u5305&#xff08;\u9700\u8981 apt-file&#xff09;<\/span><br \/>\napt-file search libzip.so.5<\/p>\n<p><span class=\"token comment\"># \u5df2\u88c5\u7684\u5305\u53cd\u67e5\u5b83\u63d0\u4f9b\u4e86\u54ea\u4e9b\u6587\u4ef6<\/span><br \/>\ndpkg <span class=\"token parameter variable\">-S<\/span> libzip.so.5<\/p>\n<p>apt-file search \u662f\u6700\u53ef\u9760\u7684\u7b54\u6848\u3002\u4ee3\u4ef7\u662f\u5148\u88c5 apt-file \u5e76\u8dd1\u4e00\u6b21 apt-file update&#xff0c;\u4f1a\u62c9\u4e00\u4efd\u7d22\u5f15&#xff0c;\u6709\u70b9\u91cd\u3002<\/p>\n<p>\u6700\u7701\u4e8b\u7684\u662f\u8bd5\u88c5\u5faa\u73af&#xff0c;\u628a\u5019\u9009\u5305\u540d\u9010\u4e2a\u8bd5&#xff0c;\u8c01\u6210\u529f\u7528\u8c01&#xff0c;\u5bb9\u5fcd\u4e0d\u786e\u5b9a&#xff1a;<\/p>\n<p><span class=\"token keyword\">for<\/span> <span class=\"token for-or-select variable\">p<\/span> <span class=\"token keyword\">in<\/span> libzip5 libzip4<span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">do<\/span><br \/>\n  <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> &#8211;no-install-recommends <span class=\"token string\">&#034;<span class=\"token variable\">$p<\/span>&#034;<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;libzip \u6765\u81ea <span class=\"token variable\">$p<\/span>&#034;<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token builtin class-name\">break<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token keyword\">done<\/span><\/p>\n<p>Debian \u6b63\u5728\u505a 64 \u4f4d time_t \u8fc7\u6e21&#xff08;t64&#xff09;&#xff0c;\u4e00\u6279\u5e93\u6539\u4e86\u5305\u540d\u3002<\/p>\n<p>libpng16.so.16 \u5bf9\u5e94\u7684\u5305&#xff0c;\u4ece libpng16-16 \u53d8\u6210\u4e86 libpng16-16t64\u3002\u540e\u679c\u5f88\u76f4\u63a5\u3002\u8981\u662f\u4f60\u7684\u8865\u5e93\u811a\u672c\u5199\u6b7b\u4e86 libpng16-16&#xff0c;\u5728 t64 \u4e4b\u540e\u7684\u7cfb\u7edf\u4e0a\u5b83\u4f1a\u76f4\u63a5\u62a5\u9519\u3002\u62a5\u7684\u662f E: Unable to locate package libpng16-16&#xff0c;\u800c\u5e93\u540d\u770b\u8d77\u6765\u4e00\u70b9\u6ca1\u9519\u3002<\/p>\n<p>\u6240\u4ee5\u5019\u9009\u540d\u8981\u517c\u5bb9\u65b0\u65e7&#xff1a;<\/p>\n<p><span class=\"token keyword\">for<\/span> <span class=\"token for-or-select variable\">p<\/span> <span class=\"token keyword\">in<\/span> libpng16-16t64 libpng16-16<span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">do<\/span><br \/>\n  <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> &#8211;no-install-recommends <span class=\"token string\">&#034;<span class=\"token variable\">$p<\/span>&#034;<\/span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token builtin class-name\">break<\/span><br \/>\n<span class=\"token keyword\">done<\/span><\/p>\n<p>\u8fd9\u6761\u7ed9\u4e86\u4e00\u4e2a\u66f4\u4e00\u822c\u7684\u6559\u8bad&#xff1a;\u6392\u67e5\u811a\u672c\u91cc\u51e1\u662f\u6309\u540d\u5b57\u63a8\u65ad\u51fa\u6765\u7684\u4e1c\u897f&#xff0c;\u90fd\u8981\u7559\u4e00\u6761\u9000\u8def\u3002\u5e93\u540d\u662f\u4e8b\u5b9e&#xff0c;ldd \u8bfb\u51fa\u6765\u7684&#xff1b;\u5305\u540d\u662f\u63a8\u65ad&#xff0c;\u6309\u89c4\u5f8b\u731c\u7684\u3002\u4e24\u8005\u7684\u53ef\u9760\u5ea6\u5b8c\u5168\u4e0d\u540c\u3002<\/p>\n<p>\u6392\u67e5\u65f6\u901a\u5e38\u4e0d\u6b62\u4e00\u4e2a\u6269\u5c55\u51fa\u95ee\u9898&#xff0c;\u6211\u8fd9\u6b21\u662f\u56db\u4e2a\u3002\u4e0e\u5176\u4e00\u4e2a\u4e2a\u6765&#xff0c;\u4e0d\u5982\u4e00\u6b21\u626b\u5b8c&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u904d\u5386\u6269\u5c55\u76ee\u5f55&#xff0c;\u5217\u51fa\u6240\u6709\u4f9d\u8d56\u7f3a\u5931\u7684\u6269\u5c55<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$PHP_CTN<\/span>&#034;<\/span> <span class=\"token function\">bash<\/span> <span class=\"token parameter variable\">-c<\/span> <span class=\"token string\">&#039;<br \/>\n  EXT_DIR&#061;&#034;$(php -r &#034;echo ini_get(\\\\&#034;extension_dir\\\\&#034;);&#034;)&#034;<br \/>\n  for so in &#034;$EXT_DIR&#034;\/*.so; do<br \/>\n    [ -e &#034;$so&#034; ] || continue                       # \u901a\u914d\u7b26\u6ca1\u5339\u914d\u5230\u65f6\u7684\u4fdd\u62a4<br \/>\n    miss&#061;$(ldd &#034;$so&#034; 2&gt;\/dev\/null | grep &#034;not found&#034;)<br \/>\n    if [ -n &#034;$miss&#034; ]; then<br \/>\n      echo &#034;&#8212; $(basename &#034;$so&#034;) &#8212;&#034;<br \/>\n      echo &#034;$miss&#034;<br \/>\n    fi<br \/>\n  done&#039;<\/span><\/p>\n<p>\u4e09\u4e2a\u7ec6\u8282\u3002<\/p>\n<p>[ -e &#034;$so&#034; ] || continue\u3002\u76ee\u5f55\u91cc\u6ca1\u6709 .so \u65f6&#xff0c;$so \u4f1a\u662f\u5b57\u9762\u91cf *.so&#xff0c;\u8fd9\u884c\u628a\u5b83\u6321\u6389\u3002<\/p>\n<p>2&gt;\/dev\/null\u3002\u76ee\u5f55\u91cc\u53ef\u80fd\u6709\u975e\u52a8\u6001\u5e93\u6587\u4ef6&#xff0c;ldd \u4f1a\u5bf9\u5b83\u4eec\u62a5\u9519\u5230 stderr\u3002\u8fd9\u91cc\u662f\u6545\u610f\u9759\u97f3&#xff0c;\u8fd9\u7c7b\u62a5\u9519\u4e0d\u662f\u95ee\u9898\u3002<\/p>\n<p>ldd \u53ea\u56de\u7b54\u7f3a\u4e0d\u7f3a&#xff0c;\u4e0d\u56de\u7b54\u8be5\u4e0d\u8be5\u88c5\u3002\u7f3a\u5e93\u7684\u6269\u5c55\u4e0d\u4ee3\u8868\u4f60\u90fd\u9700\u8981&#xff0c;\u8865\u4e4b\u524d\u5148\u786e\u8ba4\u54ea\u4e9b\u6269\u5c55\u662f\u9879\u76ee\u771f\u5728\u7528\u7684\u3002<\/p>\n<p>ldd \u7684\u4e24\u6761\u8fb9\u754c<\/p>\n<p>\u8fb9\u754c\u4e00&#xff1a;\u5b83\u9ed8\u8ba4\u53ea\u67e5\u627e\u4e0d\u627e\u5f97\u5230&#xff0c;\u4e0d\u67e5\u7b26\u53f7\u3002<\/p>\n<p>ldd \u80fd\u544a\u8bc9\u4f60 libzip.so.5 \u627e\u4e0d\u5230\u3002\u4f46\u5982\u679c\u5e93\u627e\u5230\u4e86&#xff0c;\u91cc\u9762\u7684\u7b26\u53f7\u7248\u672c\u5374\u5bf9\u4e0d\u4e0a&#xff0c;ldd \u4f1a\u663e\u793a\u4e00\u5207\u6b63\u5e38&#xff0c;\u7a0b\u5e8f\u7167\u6837\u8d77\u4e0d\u6765\u3002\u6bd4\u5982\u7cfb\u7edf\u5347\u8fc7\u5e93\u3001\u6269\u5c55\u8fd8\u662f\u6309\u8001\u7248\u672c\u7f16\u8bd1\u7684\u3002<\/p>\n<p>glibc \u7684 man page \u5bf9 -d \u548c -r \u6709\u660e\u786e\u8bf4\u660e\u3002\u8fd9\u4e24\u4e2a\u9009\u9879\u4f1a\u6267\u884c\u91cd\u5b9a\u4f4d\u5e76\u62a5\u544a\u7f3a\u5931\u7684\u5bf9\u8c61\u6216\u51fd\u6570&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u66f4\u4e25\u683c\u7684\u68c0\u67e5&#xff1a;\u8fde\u7b26\u53f7\u4e00\u8d77\u67e5<\/span><br \/>\nldd <span class=\"token parameter variable\">-r<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$EXT_DIR<\/span>\/zip.so&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-E<\/span> <span class=\"token string\">&#034;not found|undefined symbol&#034;<\/span><\/p>\n<p>\u6392\u67e5\u65f6\u5efa\u8bae\u76f4\u63a5\u5e26\u4e0a -r\u3002\u53cd\u6b63\u90fd\u8981\u8dd1&#xff0c;\u4e00\u6b21\u628a\u4e24\u7c7b\u95ee\u9898\u90fd\u8986\u76d6\u6389\u3002<\/p>\n<p>\u8fb9\u754c\u4e8c&#xff1a;ldd \u4f1a\u6267\u884c\u76ee\u6807\u7a0b\u5e8f\u3002<\/p>\n<p>\u8fd9\u4e00\u70b9\u5f88\u591a\u4eba\u4e0d\u77e5\u9053&#xff0c;man page \u4e13\u95e8\u7528\u4e00\u6574\u6bb5\u8b66\u544a\u4e86\u5b83\u3002\u539f\u6587&#xff1a;<\/p>\n<p>In the usual case, ldd invokes the standard dynamic linker<br \/>\nwith the LD_TRACE_LOADED_OBJECTS environment variable<br \/>\nset to 1, which causes the linker to display<br \/>\nthe library dependencies.<br \/>\nBe aware, however, that in some circumstances,<br \/>\nsome versions of ldd may attempt to obtain<br \/>\nthe dependency information by directly<br \/>\nexecuting the program.<br \/>\nThus, you should never employ ldd<br \/>\non an untrusted executable, since this may result<br \/>\nin the execution of arbitrary code.<\/p>\n<p>\u5bf9\u5e94\u7684\u5b89\u5168\u66ff\u4ee3\u65b9\u6848&#xff0c;man page \u4e5f\u76f4\u63a5\u7ed9\u4e86&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u9759\u6001\u8bfb\u53d6 ELF \u5934\u91cc\u7684 NEEDED \u6bb5&#xff0c;\u5b8c\u5168\u4e0d\u6267\u884c\u6587\u4ef6<\/span><br \/>\nobjdump <span class=\"token parameter variable\">-p<\/span> \/path\/to\/program <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> NEEDED<\/p>\n<p>\u4f46\u522b\u4ee5\u4e3a objdump \u80fd\u6574\u4f53\u66ff\u4ee3 ldd<\/p>\n<p>\u8fd9\u91cc\u6709\u4e2a\u5bb9\u6613\u88ab\u5ffd\u7565\u7684\u5dee\u522b\u3002objdump -p | grep NEEDED \u53ea\u5217\u76f4\u63a5\u4f9d\u8d56&#xff0c;ldd \u4f1a\u5c55\u5f00\u6574\u68f5\u4f9d\u8d56\u6811\u3002<\/p>\n<p>\u5bf9\u6392\u67e5\u7f3a\u5e93\u8fd9\u4ef6\u4e8b\u6765\u8bf4\u5dee\u522b\u5f88\u5173\u952e\u3002\u6211\u81ea\u5df1\u7684\u6587\u4ef6\u3001\u8981\u67e5\u67d0\u4e2a\u5e93\u4e3a\u4ec0\u4e48\u627e\u4e0d\u5230&#xff0c;\u7528 ldd&#xff0c;\u56e0\u4e3a\u9700\u8981\u5b8c\u6574\u4f9d\u8d56\u6811&#xff0c;\u8fd8\u8981\u770b\u5b9e\u9645\u89e3\u6790\u8def\u5f84\u3002\u6765\u6e90\u4e0d\u660e\u3001\u4e0d\u653e\u5fc3\u7684\u4e8c\u8fdb\u5236&#xff0c;\u7528 objdump -p | grep NEEDED \u6216 readelf -d&#xff0c;\u53ea\u8bfb\u5934\u90e8&#xff0c;\u4e0d\u6267\u884c\u3002<\/p>\n<p>\u4e00\u4e2a\u5b9e\u6d4b\u53d1\u73b0&#xff1a;\u4e0d\u540c\u5b9e\u73b0\u62a5\u9519\u6587\u672c\u4e0d\u4e00\u6837<\/p>\n<p>\u6211\u5728\u672c\u673a Cygwin \u7684 ldd \u4e0a\u5b9e\u6d4b\u4e86\u4e24\u79cd\u5f02\u5e38\u8f93\u5165&#xff1a;<\/p>\n<p>$ ldd \/tmp\/plain.txt<br \/>\nldd: \/tmp\/plain.txt: Exec format error<\/p>\n<p>$ ldd \/tmp\/nonexistent.so<br \/>\nldd: \/tmp\/nonexistent.so: No such file or directory<\/p>\n<p>\u800c glibc \u7684 ldd \u78b0\u5230\u9759\u6001\u94fe\u63a5\u7684\u7a0b\u5e8f&#xff0c;\u62a5\u7684\u662f not a dynamic executable\u3002<\/p>\n<p>\u540c\u4e00\u4ef6\u4e8b&#xff0c;\u4e0d\u540c\u5b9e\u73b0\u3001\u4e0d\u540c\u6587\u672c\u3002Cygwin \u62a5\u7684\u662f Exec format error&#xff0c;glibc \u62a5\u7684\u662f not a dynamic executable\u3002\u4e3a\u4ec0\u4e48\u4f1a\u6709\u8fd9\u4e2a\u5dee\u522b&#xff0c;\u6211\u6ca1\u5f80\u4e0b\u6316\u3002\u8fd9\u6761\u6211\u5230\u73b0\u5728\u4e5f\u6ca1\u67e5\u660e\u767d\u3002<\/p>\n<p>\u6240\u4ee5\u770b\u8fd9\u7c7b\u8f93\u51fa\u522b\u6b7b\u8bb0\u67d0\u4e00\u53e5\u62a5\u9519&#xff0c;\u8981\u770b\u5b83\u5728\u8bf4\u4ec0\u4e48\u3002not found \u548c No such file or directory \u8bf4\u7684\u662f\u7f3a\u5e93\u6216\u7f3a\u6587\u4ef6\u3002Exec format error \u548c not a dynamic executable \u8bf4\u7684\u662f\u7ed9\u5b83\u7684\u4e0d\u662f\u52a8\u6001\u5e93\u3002\u53ef\u80fd\u662f\u811a\u672c\u3001\u6587\u672c\u3001\u6216\u8005\u9759\u6001\u4e8c\u8fdb\u5236\u3002<\/p>\n<p>\u5b8c\u6574\u6392\u67e5\u8def\u5f84<\/p>\n<p>#mermaid-svg-S7GYUPIywMIDFC99{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-S7GYUPIywMIDFC99 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-S7GYUPIywMIDFC99 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-S7GYUPIywMIDFC99 .error-icon{fill:#552222;}#mermaid-svg-S7GYUPIywMIDFC99 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-S7GYUPIywMIDFC99 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-S7GYUPIywMIDFC99 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-S7GYUPIywMIDFC99 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-S7GYUPIywMIDFC99 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-S7GYUPIywMIDFC99 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-S7GYUPIywMIDFC99 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-S7GYUPIywMIDFC99 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-S7GYUPIywMIDFC99 .marker.cross{stroke:#333333;}#mermaid-svg-S7GYUPIywMIDFC99 svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-S7GYUPIywMIDFC99 p{margin:0;}#mermaid-svg-S7GYUPIywMIDFC99 .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-S7GYUPIywMIDFC99 .cluster-label text{fill:#333;}#mermaid-svg-S7GYUPIywMIDFC99 .cluster-label span{color:#333;}#mermaid-svg-S7GYUPIywMIDFC99 .cluster-label span p{background-color:transparent;}#mermaid-svg-S7GYUPIywMIDFC99 .label text,#mermaid-svg-S7GYUPIywMIDFC99 span{fill:#333;color:#333;}#mermaid-svg-S7GYUPIywMIDFC99 .node rect,#mermaid-svg-S7GYUPIywMIDFC99 .node circle,#mermaid-svg-S7GYUPIywMIDFC99 .node ellipse,#mermaid-svg-S7GYUPIywMIDFC99 .node polygon,#mermaid-svg-S7GYUPIywMIDFC99 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-S7GYUPIywMIDFC99 .rough-node .label text,#mermaid-svg-S7GYUPIywMIDFC99 .node .label text,#mermaid-svg-S7GYUPIywMIDFC99 .image-shape .label,#mermaid-svg-S7GYUPIywMIDFC99 .icon-shape .label{text-anchor:middle;}#mermaid-svg-S7GYUPIywMIDFC99 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-S7GYUPIywMIDFC99 .rough-node .label,#mermaid-svg-S7GYUPIywMIDFC99 .node .label,#mermaid-svg-S7GYUPIywMIDFC99 .image-shape .label,#mermaid-svg-S7GYUPIywMIDFC99 .icon-shape .label{text-align:center;}#mermaid-svg-S7GYUPIywMIDFC99 .node.clickable{cursor:pointer;}#mermaid-svg-S7GYUPIywMIDFC99 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-S7GYUPIywMIDFC99 .arrowheadPath{fill:#333333;}#mermaid-svg-S7GYUPIywMIDFC99 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-S7GYUPIywMIDFC99 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-S7GYUPIywMIDFC99 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-S7GYUPIywMIDFC99 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-S7GYUPIywMIDFC99 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-S7GYUPIywMIDFC99 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-S7GYUPIywMIDFC99 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-S7GYUPIywMIDFC99 .cluster text{fill:#333;}#mermaid-svg-S7GYUPIywMIDFC99 .cluster span{color:#333;}#mermaid-svg-S7GYUPIywMIDFC99 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-S7GYUPIywMIDFC99 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-S7GYUPIywMIDFC99 rect.text{fill:none;stroke-width:0;}#mermaid-svg-S7GYUPIywMIDFC99 .icon-shape,#mermaid-svg-S7GYUPIywMIDFC99 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-S7GYUPIywMIDFC99 .icon-shape p,#mermaid-svg-S7GYUPIywMIDFC99 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-S7GYUPIywMIDFC99 .icon-shape .label rect,#mermaid-svg-S7GYUPIywMIDFC99 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-S7GYUPIywMIDFC99 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-S7GYUPIywMIDFC99 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-S7GYUPIywMIDFC99 :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u6709<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u6ca1\u6709<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span style=\"color:#1f2328 !important\" class=\"nodeLabel\"><\/p>\n<p>php -m \u62a5 Unable to load dynamic library<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8bfb\u62a5\u9519\u6700\u5185\u5c42\u62ec\u53f7\u62ff\u5230\u7f3a\u5931\u7684\u5e93\u540d<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5bf9\u6269\u5c55\u7684 .so \u8dd1 lddgrep not found<\/p>\n<p><\/span><span style=\"color:#1f2328 !important\" class=\"nodeLabel\"><\/p>\n<p>\u6709 not found \u5417&#xff1f;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5e93\u540d\u53cd\u63a8\u5305\u540d\u547d\u540d\u89c4\u5f8b &#043; apt-file &#043; \u8bd5\u88c5\u5faa\u73af<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5e93\u90fd\u5728\u5e26\u4e0a -r \u518d\u67e5\u4e00\u904d\u7b26\u53f7<\/p>\n<p><\/span><span style=\"color:#1a7f37 !important\" class=\"nodeLabel\"><\/p>\n<p>\u88c5\u5305 \u2192 \u91cd\u542f\u5bb9\u5668 \u2192 \u590d\u9a8c php -m<\/p>\n<p><\/span><\/p>\n<p>\u62ff\u8fd9\u4e2a\u5751\u8d70\u4e00\u904d&#xff0c;\u5c31\u662f\u8fd9\u6b21\u7684\u5b9e\u9645\u8def\u5f84\u3002\u8bfb\u62a5\u9519&#xff0c;ldd \u51fa 11 \u4e2a\u7f3a\u5931\u5e93&#xff0c;\u9010\u5e93\u53cd\u63a8\u5305\u540d&#xff0c;\u88c5\u5305&#xff0c;\u590d\u9a8c php -m \u96f6\u544a\u8b66\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>php -m \u62a5 Unable to load dynamic library\u3002\u7b54\u6848\u5176\u5b9e\u5c31\u5199\u5728\u8fd9\u6761\u62a5\u9519\u91cc&#xff0c;\u53ea\u662f\u5199\u5728\u6700\u91cc\u9762\u90a3\u5c42\u62ec\u53f7\u91cc\u3002<br \/>\n\u8fd9\u4e2a\u6545\u969c\u5bb9\u6613\u8ba9\u4eba\u7ed5\u8fdc\u3002\u62a5\u9519\u6587\u672c\u957f\u3001\u5e26\u8def\u5f84\u3001\u5e26\u62ec\u53f7\u5d4c\u5957&#xff0c;\u7b2c\u4e00\u773c\u770b\u4e0d\u51fa\u8be5\u67e5\u4ec0\u4e48\u3002\u4e8e\u662f\u8f6c\u5934\u53bb\u7ffb\u9762\u677f\u3001\u91cd\u88c5\u6269\u5c55\u3001\u6bd4\u5bf9 php.ini&#xff0c;\u6298\u817e\u4e00\u5708\u95ee\u9898\u8fd8\u5728\u3002<br \/>\n\u8fd9\u53f0\u662f PHP 8.4.25 \u5bb9\u5668&#xff0c;\u955c\u50cf 1panel-php-fpm:8.4.25\u3002\u57fa\u7840\u955c\u50cf Debian 13&#xff08;trixie&amp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9098,230],"topic":[],"class_list":["post-111912","post","type-post","status-publish","format-standard","hentry","category-server","tag-it","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP \u6269\u5c55\u52a0\u8f7d\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/111912.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP \u6269\u5c55\u52a0\u8f7d\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"php -m \u62a5 Unable to load dynamic library\u3002\u7b54\u6848\u5176\u5b9e\u5c31\u5199\u5728\u8fd9\u6761\u62a5\u9519\u91cc&#xff0c;\u53ea\u662f\u5199\u5728\u6700\u91cc\u9762\u90a3\u5c42\u62ec\u53f7\u91cc\u3002 \u8fd9\u4e2a\u6545\u969c\u5bb9\u6613\u8ba9\u4eba\u7ed5\u8fdc\u3002\u62a5\u9519\u6587\u672c\u957f\u3001\u5e26\u8def\u5f84\u3001\u5e26\u62ec\u53f7\u5d4c\u5957&#xff0c;\u7b2c\u4e00\u773c\u770b\u4e0d\u51fa\u8be5\u67e5\u4ec0\u4e48\u3002\u4e8e\u662f\u8f6c\u5934\u53bb\u7ffb\u9762\u677f\u3001\u91cd\u88c5\u6269\u5c55\u3001\u6bd4\u5bf9 php.ini&#xff0c;\u6298\u817e\u4e00\u5708\u95ee\u9898\u8fd8\u5728\u3002 \u8fd9\u53f0\u662f PHP 8.4.25 \u5bb9\u5668&#xff0c;\u955c\u50cf 1panel-php-fpm:8.4.25\u3002\u57fa\u7840\u955c\u50cf Debian 13&#xff08;trixie&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/111912.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-01T22:57:07+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111912.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/111912.html\",\"name\":\"PHP \u6269\u5c55\u52a0\u8f7d\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-01T22:57:07+00:00\",\"dateModified\":\"2026-10-01T22:57:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/111912.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/111912.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111912.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP \u6269\u5c55\u52a0\u8f7d\u5931\u8d25\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP \u6269\u5c55\u52a0\u8f7d\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/111912.html","og_locale":"zh_CN","og_type":"article","og_title":"PHP \u6269\u5c55\u52a0\u8f7d\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"php -m \u62a5 Unable to load dynamic library\u3002\u7b54\u6848\u5176\u5b9e\u5c31\u5199\u5728\u8fd9\u6761\u62a5\u9519\u91cc&#xff0c;\u53ea\u662f\u5199\u5728\u6700\u91cc\u9762\u90a3\u5c42\u62ec\u53f7\u91cc\u3002 \u8fd9\u4e2a\u6545\u969c\u5bb9\u6613\u8ba9\u4eba\u7ed5\u8fdc\u3002\u62a5\u9519\u6587\u672c\u957f\u3001\u5e26\u8def\u5f84\u3001\u5e26\u62ec\u53f7\u5d4c\u5957&#xff0c;\u7b2c\u4e00\u773c\u770b\u4e0d\u51fa\u8be5\u67e5\u4ec0\u4e48\u3002\u4e8e\u662f\u8f6c\u5934\u53bb\u7ffb\u9762\u677f\u3001\u91cd\u88c5\u6269\u5c55\u3001\u6bd4\u5bf9 php.ini&#xff0c;\u6298\u817e\u4e00\u5708\u95ee\u9898\u8fd8\u5728\u3002 \u8fd9\u53f0\u662f PHP 8.4.25 \u5bb9\u5668&#xff0c;\u955c\u50cf 1panel-php-fpm:8.4.25\u3002\u57fa\u7840\u955c\u50cf Debian 13&#xff08;trixie&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/111912.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-01T22:57:07+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/111912.html","url":"https:\/\/www.wsisp.com\/helps\/111912.html","name":"PHP \u6269\u5c55\u52a0\u8f7d\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-01T22:57:07+00:00","dateModified":"2026-10-01T22:57:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/111912.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/111912.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/111912.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"PHP \u6269\u5c55\u52a0\u8f7d\u5931\u8d25"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=111912"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111912\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=111912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=111912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=111912"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=111912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}