fix Octave LibQt5Core issue in WSL Arch Linux

---
date: Nov 05, 2018
tags:
- WSL
- Arch Linux
language: English
---
This post is more than 4 years old. If this is a technical post, the post will most likely not working, but feel free to try it and see if it works.

Recently I started to do things in the Arch Linux since some people request to bring my wslu to ArchWSL(https://github.com/yuk7/ArchWSL). I found there is an issue when using Octave when it brings this error:

1
error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

This is due to the fact that WSL kernel do not support renameat2() system call.

To fix this specific issue, run:

1
sudo strip --remove-section=.note.ABI-tag /usr/lib64/libQt5Core.so.5

To fix all issue related to this, run:

1
find /lib /usr/lib /usr/libexec -name '*.so' | xargs strip --remove-section=.note.ABI-tag

But be careful, this action will be dangerous.

After executing, this problem will be solved.

Credit:
https://superuser.com/questions/1347723/arch-on-wsl-libqt5core-so-5-not-found-despite-being-installed#1348051
https://github.com/Microsoft/WSL/issues/3023

Comments

Navigation