Version GLIBX_3.4.32 not found (required by ~/.../nvim-treesitter/parser/norg.so
Prerequisites
- [x] I am using the latest stable release of Neovim
- [x] I am using the latest version of the plugin
Neovim Version
0.10.4
Neorg setup
{
"nvim-neorg/neorg",
lazy = false,
version = "*",
config = true,
},
Actual behavior
When running
:Neorg sync-parsers
I get the following error:
Downloading tree-sitter-norg...
Creating temporary directory
Extracting tree-sitter-norg...
Compiling...
Could not load parser for norg: "...0/usr/share/nvim/runtime/lua/vim/treesitter/language.lua:112: Failed to load parser for language 'norg': uv_dlopen: /snap/core22/current/usr/lib/x86_64-linux-gnu/libstdc++.so.6:
version `GLIBCXX_3.4.32' not found (required by /home/s0001483/.local/share/nvim/lazy/nvim-treesitter/parser/norg.so)"
Treesitter parser for norg has been installed
Downloading tree-sitter-norg_meta...
Creating temporary directory
Extracting tree-sitter-norg_meta...
Compiling...
Treesitter parser for norg_meta has been installed
Expected behavior
The above error shouldn't happen and I should be able to update the parsers, as well as create a *.norg file
Steps to reproduce
After a fresh install, with
luarocks --version
3.8.0
and with the Neorg setup above, I get the error above whether I run sync-parsers or when trying to open a file with the *.norg extension
Potentially conflicting plugins
No response
Other information
No response
Help
None
Implementation help
No response
please include your operating system, and any potential oddities about your setup (ie. please disclose nix usage if there is any)
Ubuntu 24.04 No oddities that I can think of
I can't test or do much to confirm that this will work, but this seems very similar to the issue here: https://askubuntu.com/questions/575505/glibcxx-3-4-20-not-found-how-to-fix-this-error
check that you don't see the package in:
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
and then run these to get it added:
sudo apt-get install libstdc++6
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade
Run the strings ... command again, hopefully you see 3.4.32 in the list
3.4.32 was already on the list. I should've added that.
However, is the fact that libstdc++.so.6 is in /snap/core22/current/usr/lib/x86_64-linux-gnu/ seems odd (the fact that it's in snap)
I can confirm that this is an issue with specifically the snap install of nvim on Ubuntu 24.04.2 LTS. After removing this, installing the latest neovim (NVIM v0.12.0-dev) via apt, installing/syncing Rocks, etc the same configuration works.