由于项目中需要用到某些库,用u盘拷贝之后,执行ldconfig出现如下错误:
libMVSDK.so is not an ELF file - it has the wrong magic bytes at the start.
找了一个多小时,一直不知道哪里出了问题。
后来发现是ubuntuU盘拖拽文件拷贝时,文件可能没拷贝完成,但拷贝的进度条就显示完成了。此时拔出U盘,不会提示什么错误,但里面的东西都损坏了。
解决方法1:压缩后拷贝
解决方法2:命令行cp
解决方法3:拖拽文件后,命令行执行sync,直至推出,此时可以拔出u盘
xxx.so is not an ELF file - it has the wrong magic bytes at the start.
最新推荐文章于 2023-11-28 09:39:33 发布