`google-cloud-sdk` install doesn't install dependency `libcrypt`
henrywintif opened this issue · comments
Repro steps:
- Install with command
paru -S google-cloud-sdk
- After install, run command
gcloud auth login
Expected:
gcloud auth login
command would run without error
Actual
- Error:
/opt/google-cloud-sdk/platform/bundledpythonunix/bin/python3: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
Notes:
- This is fixed by installing libxcrypt-compat via
sudo pacman -S libxcrypt-compat
This is a duplicate of #58. You encounter this error not because you are missing libxcrypt-compat
, but because your shell is not sourcing /etc/profile.d/google-cloud-sdk.sh
, and thus not populating the CLOUDSDK_PYTHON
variable, which then causes google-cloud-sdk
to use the bundled python3
(as you can see from your output), which does not include the libcrypt
library.
not because you are missing
libxcrypt-compat
➜ pacman -Qi libxcrypt | rg 'Required By'
Required By : accountsservice apr-util inetutils john libcups mkinitcpio-busybox openssh pam perl python python2 python37 shadow systemd talloc util-linux
➜ pacman -Qi google-cloud-sdk | rg 'Depends On'
Depends On : python
I'm planning some major changes to this package, which should help avoid confusing issues like this in the future.