Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am trying to open visual studio code in my wsl nevertheless i have this error below. How to solve that?

To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL. You can then use the `code` command in a WSL terminal just as you would in a normal command prompt.
Do you want to continue anyway? [y/N] y
To no longer see this prompt, start Visual Studio Code with the environment variable DONT_PROMPT_WSL_INSTALL defined.
/usr/share/code/bin/../code: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory
like image 415
Arie Avatar asked May 11 '26 18:05

Arie


1 Answers

I added the following libraries and seemed to spring to life somewhat

sudo apt install libxshmfence1 libglu1
like image 140
Erik Avatar answered May 16 '26 18:05

Erik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!