There has been a recent influx of users reporting that they are encountering an error related to missing libcrypt.so.1
:
error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
If you encounter this error, the issue is that your shell has not imported /etc/profile.d/google-cloud-sdk.sh
, causing the CLOUDSDK_PYTHON
environment variable (among others) to not be set. This causes the tool to use a bundled python
executable with its own library searching logic which fails to find the correct library.
libcrypt
is provided by core/libxcrypt
, which is required by core/python
, which is required by aur/google-cloud-sdk
. If you've installed this package, you have the correct library.
This is not a bug with the package; it is a bug with your shell. At the moment, this appears to be limited to users of fish
. Please check the wiki for information about the tasks you should perform when setting fish
as your default shell to avoid errors like this.
Pinned Comments