Every time I get a new system, I try to forget my old one and start from scratch which means ditching a lot of tools I no longer use and focusing only on what I really need. Unfortunately, I often spend a lot of time thinking about how I installed some tools, because they usually don’t work out of the box. But this is now changing. For every tool that I can’t get to run out-of-the-box, I will write an installation guide on this blog to make life easier for me, and possibly other people.
I will start with YARA, which I will install from source including all modules.
The official installation guide from YARA will help us with this.
Before downloading the source code from YARA, we need to make sure that automake, libtool, make and gcc and pkg-config are installed on our system. To do so, we use brew.
Next step will be to get the YARA source from https://github.com/VirusTotal/yara/releases and following the official installation guide.
After running the bootstrap.sh script, we need to run:
I received errors that that OpenSSL and Jansson Library could not be found.
To fix it we need to set
CPPFLAGS properly. The OpenSSL headers and libs can be found in
/opt/homebrew/opt/openssl@3/lib and the Jansson headers and libs can be found in
/opt/homebrew/lib so the flags must be as follows:
The configure script should now run without errors. Finally, we
make, let the tests run and install via
make install and we are ready to go.
All tests should pass:
Finally install via: