ClamAV v0.98.7 Compilation Issues on Mac OS X

So, you’ve started getting affected by these stupid Malware problems that are plaguing Chrome installations on Macs and you’re thinking that the days when people merely attacked Windows installations are a thing of the past and that it’s time to install some type of protection– finally. Or you could simply be trying to upgrade your ClamAV. Take your pick. And now you’ve hit your first snag as you try to compile the source code.

After unpacking the contents of the tarball, you go to run ./configure and you get the following:

checking for OpenSSL installation… /usr
configure: error: OpenSSL not found.

You can search all the message boards, but the simple reality is that if you look at the source code, you’re going to see this:

if test ! -f $LIBSSL_HOME/include/openssl/ssl.h
then
     as_fn_error
$? OpenSSL not found.” $LINENO 5
fi

Now, you can modify the sources here to reflect where your ssl.h file really is located, or you can simply do the following to fix things:

cd /usr/local/include
sudo mkdir openssl
cd openssl
sudo ln -sf /usr/local/ssl/include/openssl/ssl.h ssl.h

Now, that error should go away.

Enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *