gana2188 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

google_cloud_sdk should support RHEL/Centos #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On centos 6.x, rhel6.x python 2.7 is called python2.7 and not python. However 
the /usr/bin/env only supports python in the env line. Please detect on 
install/update

What steps will reproduce the problem?
1. install/update google_cloud_sdk on centos
2. Run gcutil. 
3.

What is the expected output? What do you see instead?
Expected output is help message. Actual output is 2.6 is not supports

What version of the product are you using? On what operating system?
CentOS 6.x
RHEL 6.x

Original issue reported on code.google.com by rsh...@rightscale.com on 6 Dec 2013 at 7:41

GoogleCodeExporter commented 9 years ago
If you have an unusual name for python, set the env var 
CLOUDSDK_PYTHON=python2.7, for example.

Original comment by jasm...@google.com on 6 Dec 2013 at 7:53

GoogleCodeExporter commented 9 years ago
export CLOUDSDK_PYTHON=python2.7; gcutil
ERROR: Python 2.6 is not supported by the Google Cloud SDK. Please upgrade to 
version 2.7 or greater.

Original comment by rsh...@rightscale.com on 6 Dec 2013 at 9:38

GoogleCodeExporter commented 9 years ago
That's a pretty strange error to have, when running python2.7. Looks like 
redhat is doing something weird.

python 2.6 support is going to be ready soon.

Original comment by jasm...@google.com on 6 Dec 2013 at 9:58

GoogleCodeExporter commented 9 years ago
Yeah, its because the binary name is python2.7, since 2.6 is the default.  I 
did the echo like you suggested.

export CLOUDSDK_PYTHON=echo
[root@i-4c938e967 ~]# gcloud
-S /opt/google-cloud-sdk/bin/../lib/google/cloud/sdk/gcloud/gcloud.py
[root@i-4c938e967 ~]# gcutil
ERROR: Python 2.6 is not supported by the Google Cloud SDK. Please upgrade to 
version 2.7 or greater.

Original comment by rsh...@rightscale.com on 9 Dec 2013 at 4:01