[英]Why is version `GLIBCXX_3.4.28' not found (required by /usr/lib/libQt5Widgets.so.5)
Folks I'm trying to run the following code on manjaro linux.伙计们,我正在尝试在 manjaro linux 上运行以下代码。 But as I start the server with:
但是当我启动服务器时:
python3 darknet_server.py
It reports它报告
Traceback (most recent call last):
File "darknet_server.py", line 342, in <module>
main()
File "darknet_server.py", line 328, in main
datafilepath=datafilepath.encode(),
File "/home/vfbsilva/Source/darknet_alexey/darknet/pythons/darknet.py", line 120, in __init__
self.lib = CDLL(self.libfilepath, RTLD_GLOBAL)
File "/home/vfbsilva/Programas/anaconda3/envs/darknet376/lib/python3.7/ctypes/__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /home/vfbsilva/Programas/anaconda3/envs/darknet376/lib/python3.7/site-packages/../../libstdc++.so.6: version `GLIBCXX_3.4.28' not found (required by /usr/lib/libQt5Widgets.so.5)
But但
pacman -Qo /lib/libstdc++.so.6
/usr/lib/libstdc++.so.6 pertence a gcc-libs 10.2.0-2
Shows libstdc++.so.6 as installed.显示已安装的 libstdc++.so.6。 What can I do?
我能做什么?
darknet376
comes with its own, outdated copy of libstdc++.so.6
, which overrides the system version (either due to LD_LIBRARY_PATH
or some RPATH
or RUN_PATH
setting directly in an ELF .so
file). darknet376
带有自己的、过时的libstdc++.so.6
,它会覆盖系统版本(由于LD_LIBRARY_PATH
或直接在 ELF .so
文件中的某些RPATH
或RUN_PATH
设置)。
You should be able to work around this by simply deleting the libstdc++.so.6
file (the one in the darknet376
directory tree, not the system version in /lib
) because the system version is sufficiently new, so the bundled version is probably not required for running this software.您应该可以通过简单地删除
libstdc++.so.6
文件( darknet376
目录树中的文件,而不是/lib
的系统版本)来解决此问题,因为系统版本足够新,因此捆绑版本可能不是运行此软件所需。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.