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

gsocket broken dependencies #98

Open
KernelKrise opened this issue Oct 30, 2023 · 0 comments
Open

gsocket broken dependencies #98

KernelKrise opened this issue Oct 30, 2023 · 0 comments

Comments

@KernelKrise
Copy link

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!

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

1 participant