yandex-tank/docs/install.rst

62 lines
2.0 KiB
ReStructuredText
Raw Normal View History

2016-02-18 12:30:32 +00:00
============
Installation
============
2012-10-11 13:40:32 +00:00
2016-02-18 12:30:32 +00:00
************************
2016-01-17 12:15:29 +00:00
Installation, from PyPi
2016-02-18 12:30:32 +00:00
************************
2016-01-17 12:15:29 +00:00
You will need some packages that are required for building different python libraries:
.. code-block:: bash
libxml2-dev libxslt1-dev python-dev zlib1g-dev
You will also need a GNU make for building them. In Ubuntu you can install a build-essential package. You should also install pip if you don't have it. Full command for Ubuntu looks like this:
.. code-block:: bash
sudo apt-get install python-pip build-essential libxml2-dev libxslt1-dev python-dev zlib1g-dev
You can do similar thing for your distribution. After you've installed all the packages, it is easy to install the Tank itself:
.. code-block:: bash
sudo pip install yandextank
Remember that if you want to use phantom as a load generator you should install it separately. On Ubuntu you can do that by adding our PPA and installing phantom and phantom-ssl packages. On other distros you will maybe need to build it from sources.
.. code-block:: bash
sudo add-apt-repository ppa:yandex-load/main && sudo apt-get update
sudo apt-get install phantom phantom-ssl
Report plugin is a distinct project. You can found it `here via github <https://github.com/yandex-load/yatank-online>`_
2016-01-17 12:15:29 +00:00
2016-02-18 12:30:32 +00:00
****************************
2016-01-17 12:15:29 +00:00
Installation, .deb packages
2016-02-18 12:30:32 +00:00
****************************
2012-10-11 13:25:49 +00:00
You should add proper repositories on Debian-based environment.
For instance, add following repos to ``sources.list`` :
2012-10-11 14:02:55 +00:00
.. code-block:: bash
2016-02-18 12:30:32 +00:00
deb http://ppa.launchpad.net/yandex-load/main/ubuntu trusty main
deb-src http://ppa.launchpad.net/yandex-load/main/ubuntu trusty main
2012-10-11 14:02:55 +00:00
2016-02-18 12:30:32 +00:00
or this way
2012-10-11 14:02:55 +00:00
.. code-block:: bash
2016-02-18 12:30:32 +00:00
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:yandex-load/main
2013-09-29 14:39:51 +00:00
2016-02-18 12:30:32 +00:00
Then update package list and install ``yandex-tank`` package:
2012-10-11 14:02:55 +00:00
.. code-block:: bash
2016-02-18 12:30:32 +00:00
sudo apt-get update && sudo apt-get install yandex-tank