You are not logged in.

#1 2023-08-12 20:03:06

meezoarch
Member
Registered: 2022-12-01
Posts: 42

Installing language servers via Mason -error package not executable

I am using neovim and installed the below plugins amongest others for autocompletions:
mason.nvim
mason-lspconfig.nvim
nvim-lspconfig   
nvim-cmp

I am getting an error:

Mason-lspconfig.nvim failed to install tsserver
Mason-lspconfig.nvim failed to install html
Mason-lspconfig.nvim failed to install cssls
Mason-lspconfig.nvim failed to install eslint

below is part of my :checkhealth log

mason.nvim [Languages] ~
- WARNING cargo: not available
  - ADVICE:
    - spawn: cargo failed with exit code - and signal -. cargo is not executable
- WARNING luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- WARNING Ruby: not available
  - ADVICE:
    - spawn: ruby failed with exit code - and signal -. ruby is not executable
- WARNING RubyGem: not available
  - ADVICE:
    - spawn: gem failed with exit code - and signal -. gem is not executable
- OK Go: `go version go1.21.0 linux/amd64`
- WARNING javac: not available
  - ADVICE:
    - spawn: javac failed with exit code - and signal -. javac is not executable
- WARNING node: not available
  - ADVICE:
    - spawn: node failed with exit code 1 and signal 0. node: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /usr/bin/../lib/libnode.so.115)
      node: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /usr/bin/../lib/libnode.so.115)
      node: /usr/bin/../lib/libc.so.6: version `GLIBC_2.38' not found (required by /usr/bin/../lib/libnode.so.115)
- WARNING npm: not available
  - ADVICE:
    - spawn: npm failed with exit code 1 and signal 0. node: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /usr/bin/../lib/libnode.so.115)
      node: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /usr/bin/../lib/libnode.so.115)
      node: /usr/bin/../lib/libc.so.6: version `GLIBC_2.38' not found (required by /usr/bin/../lib/libnode.so.115)
- OK python: `Python 3.11.3`
- WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code 1 and signal 0. php: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by php)
      php: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by php)
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code 1 and signal 0. php: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by php)
      php: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by php)
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code 1 and signal 0. ERROR: Unable to load dependent library /usr/bin/../lib/julia/libjulia-codegen.so.1
      Message:/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /usr/bin/../lib/julia/libjulia-codegen.so.1)
- OK java: `openjdk version "20.0.1" 2023-04-18`
- OK pip: `pip 23.1.2 from /usr/lib/python3.11/site-packages/pip (python 3.11)`
- OK python venv: `Ok`

This issue seems to be reported by many other users: Automatically install npm
Any idea how to fix this?

Offline

#2 2023-08-12 21:14:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,680

Re: Installing language servers via Mason -error package not executable

A bunch of tools simply isn't installed, you've conducted a partial update (installed or updated) for php which is newer than its deps, notably glibc and the same seems to be true for julia vs. gcc-libs

Offline

#3 2023-08-12 21:47:18

meezoarch
Member
Registered: 2022-12-01
Posts: 42

Re: Installing language servers via Mason -error package not executable

seth wrote:

A bunch of tools simply isn't installed, you've conducted a partial update (installed or updated) for php which is newer than its deps, notably glibc and the same seems to be true for julia vs. gcc-libs

Thank you for your reply.
It is a fresh install.

Could you explain how can I get around this? What do I need to install? Previously my config used to work without any problems?
Can I not install and fix this manually, if Mason is not able to do so? How can I do that?

Offline

#4 2023-08-13 06:54:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,680

Re: Installing language servers via Mason -error package not executable

As for the partial updates, don't do that again and run a full system update.
Idk what tools mason will require to install what package how (as a matter of fact, I didn't know "mason" exists until yesterday) but you can just install the packages it complains about.

There're a bunch of vim plugins in the repos, some in the AUR and you don't really need any plugin manager for vim anyway (unless you're trying to juggle A LOT of plugins)
https://wiki.archlinux.org/title/Vim#Plugins

Offline

Board footer

Powered by FluxBB