Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two non-blocking issues when launching a pear desktop project from Windows Subsistem for Linux (WSL) #367

Open
CastenettoA opened this issue Oct 15, 2024 · 3 comments

Comments

@CastenettoA
Copy link

I followed the "Pear Deskop Chat App" tutorial from the docs on WSL2 (Windows subsystem for Linux 2, the most recent version).

Initially I have some issues on WSL that I solved. These issues partially prevented the project from behaving normally.
Note: the installation of 'pear runtime' is archieved correctly without on my WSL problems.

Now that I can run the project correctly on WSL I share with you my simple fixes.

CASE 1 - libgbm.so.1 not installed

  • command: pear run --dev .
  • behavior: The project is not launched on pear runtime and an error is showed on console.
  • error: /home/myUserName/.config/pear/by-dkey/7216eeac5c87....4ea8bd3b28/1/by-arch/linux-x64/bin/pear-runtime-app/pear-runtime: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory
  • solution: sudo apt install libgbm1

CASE 2 - Failed to connect to the bus

  • command: pear run --dev .
  • behavior: The project is launched correctly on the pearl runtime and i can see the chat app but there are warnings on bash console
  • warnings: [23..7:10..4/10..10.93...2:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory...
  • my unaware solution:
`Update packages and install D-Bus (if not already present)
sudo apt update
sudo apt install dbus

Start the D-Bus daemon
sudo service dbus start

Check the socket
ls /run/user/1000/bus

If the socket does not exist, start a D-Bus session
eval $(dbus-launch --sh-syntax)

`

My best, Andrea.

@CastenettoA

This comment was marked as resolved.

@lejeunerenard
Copy link
Contributor

@CastenettoA thank you for the details explanation and fixes! What linux distro and version were you using with WSL2? And was it a fresh installation or have you installed packages previously?

@CastenettoA
Copy link
Author

It wasn't a fresh WSL2 installation. I just installed Pear (v0.5114) and I have these issues.
This my WSL2 infos:

  • Ubuntu.
  • WSL version: 2.3.24.0
  • kernel version: 5.15.153.1-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants