Difference between revisions of "Installing Yara on Mac OS X Maverick"
From Zam Wiki
(Created page with "Get Homebrew for Mac: * ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Get Yara 3.2.0 package from https://github.com/plusvic/yara...") |
|||
Line 29: | Line 29: | ||
$ python -c "import yara;print yara.__file__" | $ python -c "import yara;print yara.__file__" | ||
/usr/local/lib/python2.7/site-packages/yara/__init__.pyc | /usr/local/lib/python2.7/site-packages/yara/__init__.pyc | ||
+ | |||
+ | Credit : http://raulf.blogspot.com/2014/02/yara-and-yara-editor.html |
Latest revision as of 01:29, 8 February 2015
Get Homebrew for Mac:
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Get Yara 3.2.0 package from https://github.com/plusvic/yara/releases/latest
- wget https://github.com/plusvic/yara/archive/v3.2.0.tar.gz
- tar -zxf v3.2.0.tar.gz
- cd yara-3.2.0
- chmod +x build.sh
- autoreconf -i --force
- ./build.sh
- autoreconf -i --force
- sudo make install
Then install yara-python extension:
- cd yara-python
- python setup.py build
- sudo python setup.py install
If it is a success, let's do some testing on yara and yara-python.
- Test yara
$ yara -v yara 3.2.0
- Test yara-python
$ python -c "import yara;print yara.__file__" /usr/local/lib/python2.7/site-packages/yara/__init__.pyc
Credit : http://raulf.blogspot.com/2014/02/yara-and-yara-editor.html