hackerschoice / gsocket

Connect like there is no firewall. Securely.
https://www.gsocket.io
BSD 2-Clause "Simplified" License
1.55k stars 131 forks source link

gsocket broken dependencies #98

Open KernelKrise opened 1 year ago

KernelKrise commented 1 year ago

I use Debian via wsl2. I installed gsocket via:

sudo apt install gsocket

And get an error:

$ gsocket --help
gsocket: gsocket_uchroot_dso.so.0 not found.

But i have gsocket_uchroot_dso.so.0 in /usr/lib/x86_64-linux-gnu So I started reading the code and find this in gs_funcs:

UCHROOT_BIN=$(gs_find_so "$PREFIX" "gsocket_uchroot_dso.so.0${EXE}")
[[ -z "$UCHROOT_BIN" ]] && { echo >&2 "gsocket: gsocket_uchroot_dso.so.0${EXE} not found."; exit 5; }

In function gs_find_so i found:

# Debian packaging requires libs in /usr/lib/x86_64-linux-gnu  :/
if command -v dpkg-architecture &>/dev/null; then
         DL+=("/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)")
fi

When i try to execute dpkg-architecture i get:

$ dpkg-architecture
-bash: dpkg-architecture: command not found

So i have an error in gs_find_so, so this function cant find shared libs in /usr/lib/x86_64-linux-gnu I fixed this error with:

$ sudo apt install dpkg-dev

But it would be great if the program reported the absence of dpkg-architecture, or ideally if it was installed together with gsocket!