From 0405461d35c94ebdc7780c7c4e160322636886ea Mon Sep 17 00:00:00 2001 From: myhloli Date: Sun, 11 Aug 2024 03:12:20 +0800 Subject: [PATCH] docs(faq): add solution for libGL.so.1 missing on WSL2 Ubuntu22.04 Add FAQ entries in both English and Chinese to address the issue where the libGL.so.1 library is missing on Ubuntu22.04 when running under WSL2. The FAQ now includes instructions on how to install the missing library, resolvingthe corresponding ImportError.Closes https://github.com/opendatalab/MinerU/issues/388 --- docs/FAQ_en_us.md | 10 ++++++++++ docs/FAQ_zh_cn.md | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/docs/FAQ_en_us.md b/docs/FAQ_en_us.md index 3000db8a..eec2fab3 100644 --- a/docs/FAQ_en_us.md +++ b/docs/FAQ_en_us.md @@ -26,3 +26,13 @@ The path for the model files is configured in "magic-pdf.json". just like: This path is an absolute path, not a relative path. You can obtain the absolute path in the models directory using the "pwd" command. Reference: https://github.com/opendatalab/MinerU/issues/155#issuecomment-2230216874 + +### 4. Encountered the error `ImportError: libGL.so.1: cannot open shared object file: No such file or directory` in Ubuntu 22.04 on WSL2 + +The `libgl` library is missing in Ubuntu 22.04 on WSL2. You can install the `libgl` library with the following command to resolve the issue: + +```bash +sudo apt-get install libgl1-mesa-glx +``` + +Reference: https://github.com/opendatalab/MinerU/issues/388 diff --git a/docs/FAQ_zh_cn.md b/docs/FAQ_zh_cn.md index f906419e..301c4b17 100644 --- a/docs/FAQ_zh_cn.md +++ b/docs/FAQ_zh_cn.md @@ -25,3 +25,11 @@ pip install magic-pdf[full] 进行配置的。 这个路径是绝对路径而不是相对路径,绝对路径的获取可在models目录中通过命令 "pwd" 获取。 参考:https://github.com/opendatalab/MinerU/issues/155#issuecomment-2230216874 + +### 4.在WSL2的Ubuntu22.04中遇到报错`ImportError: libGL.so.1: cannot open shared object file: No such file or directory` + +WSL2的Ubuntu22.04中缺少`libgl`库,可通过以下命令安装`libgl`库解决: +```bash +sudo apt-get install libgl1-mesa-glx +``` +参考:https://github.com/opendatalab/MinerU/issues/388