Monday, January 23, 2017

google sdk.cloud storage & python 2.7 installation

Then download using the following command:wget 

yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel gcc make cc



Extract and go to the dirctory:

tar -xvf Python-2.7.12.tgz 
cd Python-2.7.12


Now, install using the command you just tried:

./configure
make 
make install

check python location

whereis python


python: /usr/bin/python /usr/bin/python2.6 /usr/lib/python2.6 /usr/local/bin/python2.7 /usr/local/bin/python /usr/local/bin/python2.7-config /usr/local/lib/python2.7 /usr/include/python2.6 /usr/share/man/man1/python.1.gz


rename old python to new

mv /usr/bin/python /usr/bin/python_old


mv /usr/bin/python2.6 /usr/bin/python2.6_old


Create Softlink

 ln -s /usr/local/bin/python2.7 /usr/bin/python

python --version
Python 2.7.12


After above steps yum get error, please follow below steps to resolve this issue

Softlink  old version 
ln -s /usr/bin/python2.6 /usr/bin/python_old

edit yum file and update old python 2.6  Softlink name 

vim /usr/bin/yum
#!/usr/bin/python_old

update db
updatedb


Google Cloud SDK Installation 

curl sdk.cloud.google.com | bash


Restart your shell:
 exec -l $SHELL
source /root/.bashrc

run gcloud setup

gcloud init

gsutil ls gs://svn-logs
gsutil cp gs://svn-logs
gsutil mv gs://svn-logs

No comments:

Post a Comment