Building YARA 1.7 on OSX

2013-03-05 21:10:11 by chort

Several people have been having issues building YARA on OSX. This is what I did to get it working on Snow Leopard with Macports. Testing working with -r 164

$ sudo port install re2
$ svn checkout http://yara-project.googlecode.com/svn/trunk/ yara-project-read-only
$ cd yara-project-read-only
$ export LDFLAGS='-L/opt/local/lib'
$ export CPPFLAGS='-I/opt/local/include'
$ aclocal
$ automake
$ autoconf
$ ./configure --with-re2
$ ./bootstrap.sh
$ make
$ sudo make install

POW!

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

PS the first version of this blog post missed ./bootstrap.sh, which is required.

Add a comment:

  name

  email

  url

max length 1000 chars