debian - Octave 6.2.0 无法在 WSL1 上运行的 Debian Bullseye 11.3 上运行

标签 debian qt5 octave windows-subsystem-for-linux bullseye

截至 2022 年 6 月,Octave 6.2.0 的依赖关系似乎已损坏:

   octave
/usr/libexec/octave/6.2.0/exec/x86_64-pc-linux-gnu/octave-gui: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

所以我尝试了以下方法:

sudo apt remove octave
sudo apt upgrade
sudo apt autoremove
sudo apt update
sudo apt upgrade
sudo apt install octave

同样的问题。我认为 Debian Bullseye 仅支持 QT 6。有什么想法吗?我应该提到这是使用 WSL 在 Windows 上运行的 Debian

cat /etc/debian_version

11.3

cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye

最佳答案

好吧,我终于找到了答案。这是 Windows 中 WSL 1 的问题。修复方法是升级到 WSL 2(未经测试)或在 WSL 中发出以下命令:

sudo strip --remove-section=.note.ABI-tag/usr/lib/x86_64-linux-gnu/libQt5Core.so.5

有效!

关于debian - Octave 6.2.0 无法在 WSL1 上运行的 Debian Bullseye 11.3 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72732302/

相关文章:

elasticsearch - elasticsearch 的限制问题

php - Docker PHP7 CLI Debian Buster如何安装软件包php-imagick?

c++ - QStyledItemDelegate中如何根据qStylesheet进行绘画

c++ - 在 Qt CMake 项目中找不到 QCursor

shell - 传递参数_Shell脚本-Octave脚本

perl - 作为单独用户运行应用程序的最佳初始化脚本

c++ - 如何从 std::thread 更改 GUI?

c++ - 在 FastCGI 和 Octave 中重新定义标准输出

Octave 音阶错误文件名未定义在行 x 列 y 附近

docker/垃圾桶/sh : 1: : not found miniconda3