summaryrefslogtreecommitdiffstats
path: root/docs/how-to-use/InstallSnaps.rst
blob: cce06a0033bcd0771b14636430c9ad636735077a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
****************
Installing SNAPS
****************


Install Dependencies
====================
A few packages need to installed onto your system, before you can install SNAPS.

Git is used to download the snaps source from the OPNFV Gerrit repository.

Python, GCC and additional libraries are required to compile and install the packages used by SNAPS.  These
dependencies need to be installed whether or not a virtual Python environment is used.

CentOS 7
--------

::

    sudo yum install -7 git gcc python-pip python-devel openssl-devel

Ubuntu
------
::

      sudo apt-get install git python2.7-dev libssl-dev

Optional: Setup a Python virtual environment
--------------------------------------------

Python 2.7 (recommend leveraging a Virtual Python runtime, e.g.
   `Virtualenv <https://virtualenv.pypa.io>`__, in your development
   environment)

Install SNAPS dependencies
--------------------------

The "pip" command below needs to be executed as root, if you are not using a virtual Python environment.

::

   sudo pip install -e <path to repo>/snaps/

The install should now be complete and you can start using the SNAPS-OO libraries.