레이블이 How to Install Swift Client for Object Storage인 게시물을 표시합니다. 모든 게시물 표시
레이블이 How to Install Swift Client for Object Storage인 게시물을 표시합니다. 모든 게시물 표시

2016년 5월 12일 목요일

How to Install Swift Client for Object Storage

How to Install Swift Client for Object Storage


CentOS 7.x

yum install python-setuptools
easy_install pip
pip install --upgrade setuptools
pip install python-swiftclient


[root@virtualbox ~]# yum install python-setuptools
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                     | 3.6 kB     00:00
epel/x86_64/metalink                                     | 4.5 kB     00:00
epel                                                     | 4.3 kB     00:00
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
(1/5): epel/x86_64/group_gz                                | 170 kB   00:00
(2/5): epel/x86_64/updateinfo                              | 547 kB   00:00
(3/5): epel/x86_64/primary_db                              | 4.1 MB   00:00
(4/5): updates/7/x86_64/primary_db                         | 4.1 MB   00:06
(5/5): extras/7/x86_64/primary_db                          | 117 kB   00:25
Determining fastest mirrors
 * base: centos.mirror.cdnetworks.com
 * epel: ftp.jaist.ac.jp
 * extras: centos.mirror.cdnetworks.com
 * updates: centos.mirror.cdnetworks.com
Resolving Dependencies
--> Running transaction check
---> Package python-setuptools.noarch 0:0.9.8-4.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-4.el7.noarch
--> Running transaction check
---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7 will be installed
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                               Arch     Version            Repository
                                                                           Size
================================================================================
Installing:
 python-setuptools                     noarch   0.9.8-4.el7        base   396 k
Installing for dependencies:
 python-backports                      x86_64   1.0-8.el7          base   5.8 k
 python-backports-ssl_match_hostname   noarch   3.4.0.2-4.el7      base    12 k

Transaction Summary
================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 414 k
Installed size: 2.0 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): python-setuptools-0.9.8-4.el7.noarch.rpm            | 396 kB   00:00
(2/3): python-backports-1.0-8.el7.x86_64.rpm               | 5.8 kB   00:05
(3/3): python-backports-ssl_match_hostname-3.4.0.2-4.el7.n |  12 kB   00:25
--------------------------------------------------------------------------------
Total                                               16 kB/s | 414 kB  00:25
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-backports-1.0-8.el7.x86_64                            1/3
  Installing : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch     2/3
  Installing : python-setuptools-0.9.8-4.el7.noarch                         3/3
  Verifying  : python-setuptools-0.9.8-4.el7.noarch                         1/3
  Verifying  : python-backports-1.0-8.el7.x86_64                            2/3
  Verifying  : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch     3/3

Installed:
  python-setuptools.noarch 0:0.9.8-4.el7

Dependency Installed:
  python-backports.x86_64 0:1.0-8.el7
  python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7

Complete!
[root@virtualbox ~]# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 8.1.2
Downloading https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a
Processing pip-8.1.2.tar.gz
Writing /tmp/easy_install-LKbKL4/pip-8.1.2/setup.cfg
Running pip-8.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-LKbKL4/pip-8.1.2/egg-dist-tmp-7ZZIFO
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.github'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Adding pip 8.1.2 to easy-install.pth file
Installing pip script to /usr/bin
Installing pip2.7 script to /usr/bin
Installing pip2 script to /usr/bin

Installed /usr/lib/python2.7/site-packages/pip-8.1.2-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
[root@virtualbox ~]# pip install --upgrade setuptools
Collecting setuptools
  Downloading setuptools-21.0.0-py2.py3-none-any.whl (509kB)
    100% |████████████████████████████████| 512kB 1.8MB/s
Installing collected packages: setuptools
  Found existing installation: setuptools 0.9.8
    Uninstalling setuptools-0.9.8:
      Successfully uninstalled setuptools-0.9.8
Successfully installed setuptools-21.0.0
[root@virtualbox ~]# pip install python-swiftclient
Collecting python-swiftclient
  Downloading python_swiftclient-3.0.0-py2.py3-none-any.whl (62kB)
    100% |████████████████████████████████| 71kB 711kB/s
Collecting futures>=2.1.3 (from python-swiftclient)
  Downloading futures-3.0.5-py2-none-any.whl
Collecting six>=1.5.2 (from python-swiftclient)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting requests>=1.1 (from python-swiftclient)
  Downloading requests-2.10.0-py2.py3-none-any.whl (506kB)
    100% |████████████████████████████████| 512kB 1.1MB/s
Installing collected packages: futures, six, requests, python-swiftclient
Successfully installed futures-3.0.5 python-swiftclient-3.0.0 requests-2.10.0 six-1.10.0