Github user mmiklavc commented on a diff in the pull request:

    https://github.com/apache/metron/pull/1152#discussion_r208742519
  
    --- Diff: metron-sensors/pycapa/README.md ---
    @@ -76,8 +79,83 @@ General notes on the installation of Pycapa.
         python setup.py install
         ```
     
    +### Centos 6
    +
    +* These instructions can be used directly on CentOS 6 - useful for 
developers using the Full Dev Vagrant test box.
    +* Older distributions, like CentOS 6, that come with Python 2.6 installed, 
should install Python 2.7 within a virtual environment and then run Pycapa from 
within the virtual environment.
    +
    +1. Set up a couple environment variables.
    +
    +    ```
    +    PYCAPA_HOME=/opt/pycapa
    +    PYTHON27_HOME=/opt/rh/python27/root
    +    ```
    +
    +1. Install required packages.
    +
    +    ```
    +    for item in epel-release centos-release-scl "@Development tools" 
python27 python27-scldevel python27-python-virtualenv libpcap-devel 
libselinux-python; do yum install -y $item; done
    +    ```
    +
    +1. Setup Pycapa directory.
    +
    +    ```
    +    mkdir $PYCAPA_HOME && chmod 755 $PYCAPA_HOME
    +    ```
    +
    +1. Create the virtualenv.
    +
    +    ```
    +    export LD_LIBRARY_PATH="/opt/rh/python27/root/usr/lib64"
    +    cd $PYCAPA_HOME
    +    ${PYTHON27_HOME}/usr/bin/virtualenv pycapa-venv
    +    ```
    +
    +1. Install Librdkafka at your chosen $PREFIX.
    +
    +    ```
    +    export PREFIX=/usr
    +    wget https://github.com/edenhill/librdkafka/archive/v0.11.5.tar.gz   
-O - | tar -xz
    --- End diff --
    
    I'm going to set the versions accordingly for these 3 in requirements.txt:
    
    confluent_kafka
    pcapy
    argparse
    
    ```
    # pip freeze
    You are using pip version 7.1.0, however version 18.0 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    confluent-kafka==0.11.5
    enum34==1.1.6
    futures==3.2.0
    pcapy==0.11.4
    pycapa==0.1
    wheel==0.24.0
    ```
    
    i.e.
    ```
    confluent-kafka==0.11.5
    pcapy==0.11.4
    argparse==1.4.0
    ```


---

Reply via email to