gsutil command giving error while creating storage bucket
After Execution:
$ gsutil mb gs://pks-bucket3-golang/
Error reported:
Can't locate LWP/UserAgent.pm in @INC (you may need to install the LWP::UserAgent
module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.2 /usr/local/share/perl/5.26.2 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl
/usr/lib/x86_64-linux-gnu/perl-base) at /usr/bin/gsutil line 26.BEGIN failed--compilation aborted at /usr/bin/gsutil line 26.
Resolution:
- Verify if gcloud sdk is installed and configured. Type following and configure it.
-
Setup your account with GCP i.e. account, project, region system will show result as success as per below:
Did not print [3] options.Too many options [53]. Enter "list" at prompt to print choices fully.Please enter numeric choice or text value (must exactly match listitem): 35Your project default Compute Engine zone has been set to [asia-south1-c].You can change it by running [gcloud config set compute/zone NAME].Your project default Compute Engine region has been set to [asia-south1].You can change it by running [gcloud config set compute/region NAME].Your Google Cloud SDK is configured and ready to use!* Commands that require authentication will use pankajjeet001@gmail.com by
default* Commands will reference project `xyz-strata-217106` by default* Compute Engine commands will use region `asia-south1` by default* Compute Engine commands will use zone `asia-south1-c` by defaultRun `gcloud help config` to learn how to change individual settingsThis gcloud configuration is called [default]. You can create additionaconfigurations if you work with multiple accounts and/or projects.Run `gcloud topic configurations` to learn more.Some things to try next:* Run `gcloud --help` to see the Cloud Platform services you can interact with.
And run `gcloud help COMMAND` to get help on any gcloud command.* Run `gcloud topic -h` to learn about advanced features of the SDK like
arg files and output formattingxyz@pks-blockchain:~$
- if you still see this issue then you need to install the package. For example for Ubuntu/Debian:
- Install the libwww-perl :
apt-get install libwww-perl
Comments
Post a Comment