My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
YaraSupport  
Yara-3.1 Support for Ragpicker
YARA
Updated Oct 6, 2014 by Robby@Zeitfuchs.org

Tested under Ubuntu 12.04 LTS

http://yara.readthedocs.org/en/latest/gettingstarted.html#compiling-and-installing-yara

Download: https://github.com/plusvic/yara/archive/v3.1.0.zip

Install the Python development package

 sudo apt-get install python-dev
 

Compiling and installing YARA

 tar -xvf yara-3.1.0.tar.gz
 

cd yara-3.1.0/

chmod +x bootstrap.sh ./bootstrap.sh

./configure make sudo make install

Install the yara-python extension

 cd yara-python
 python setup.py build
 sudo python setup.py install
 

Import Error

You get the following error:

ImportError: Python-Yara is required to run this program: http://plusvic.github.io/yara/

test the following:

 >>> import yara
 >>>
 

In some operating systems (e.g: Ubuntu) you can get an error message like this one:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: libyara.so.3: cannot open shared object file: No such file or directory

If you get the previous error you should add the path /usr/local/lib to the loader configuration file:

 $ sudo su
 $ echo "/usr/local/lib" >> /etc/ld.so.conf
 $ ldconfig
 

Powered by Google Project Hosting