gpt4 book ai didi

PHP 启动 : Unable to load dynamic library 'smbclient.so'

转载 作者:行者123 更新时间:2023-12-04 19:24:33 26 4
gpt4 key购买 nike

我将 Ubuntu 18 更新为 Ubuntu 20
现在,当我运行 Composer 时,我得到 Warning消息

$ composer

PHP Warning: PHP Startup: Unable to load dynamic library 'smbclient.so' (tried: /usr/lib/php/20200930/smbclient.so (/usr/lib/php/20200930/smbclient.so: undefined symbol: smbc_setOptionProtocols, version SMBCLIENT_0.2.3), /usr/lib/php/20200930/smbclient.so.so (/usr/lib/php/20200930/smbclient.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'smbclient.so' (tried: /usr/lib/php/20200930/smbclient.so (/usr/lib/php/20200930/smbclient.so: undefined symbol: smbc_setOptionProtocols, version SMBCLIENT_0.2.3), /usr/lib/php/20200930/smbclient.so.so (/usr/lib/php/20200930/smbclient.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
请帮助我理解并修复它

最佳答案

我寻找我所拥有的

$ apt list --installed | grep -i smb

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libsmbclient/focal-updates,now 2:4.13.17~dfsg-0ubuntu0.21.04.2 amd64 [installed]
libsmbios-c2/focal,now 2.4.3-1 amd64 [installed,automatic]
php8.0-smbclient/now 1.0.6-6+ubuntu18.04.1+deb.sury.org+10 amd64 [installed,local]
smbclient/focal-updates,now 2:4.13.17~dfsg-0ubuntu0.21.04.2 amd64 [installed]
并删除了一些
$ sudo apt-get remove smbclient/focal-updates
$ sudo apt-get remove php8.0-smbclient
$ sudo apt-get remove libsmbclient/focal-updates
$ sudo apt autoremove
所以我只留下了这个
libsmbios-c2/focal,now 2.4.3-1 amd64 [installed,automatic]
警告现在已经消失了

关于PHP 启动 : Unable to load dynamic library 'smbclient.so' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72370850/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com