Merge pull request #442 from Zhoneym/patch-1

Fix `GLIBCXX_3.4.30' not found in Anaconda
This commit is contained in:
UnicornChan 2025-02-18 13:58:44 +08:00 committed by GitHub
commit ccf0f1910f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,4 +68,4 @@ Make sure you:
The detailed error: The detailed error:
>ImportError: /mnt/data/miniconda3/envs/xxx/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/xxx/xxx/ktransformers/./cpuinfer_ext.cpython-312-x86_64-linux-gnu.so) >ImportError: /mnt/data/miniconda3/envs/xxx/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/xxx/xxx/ktransformers/./cpuinfer_ext.cpython-312-x86_64-linux-gnu.so)
It may because of your conda env have no this version. Your can first exit your conda env by `conda deactivate` and use `whereis libstdc++.so.6` to find the path. And re enter your conda env and copy the .so by `cp <path of outter libstdc++> <path of your conda env libstdc++>` Running conda install -c conda-forge libstdcxx-ng can solve the problem.