Whilst trying to build OpenVAS on OSX, I encounter this message.
Package gnutls was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnutls.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnutls' found
Package gnutls was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnutls.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnutls' found
This is surprising because I have the latest version of GnuTLS installed via Homebrew. pkg-config cannot find it though
$ pkg-config --cflags gnutls
Package gnutls was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnutls.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnutls' found
Add the pkg-config configuration file /usr/local/opt/gnutls/lib/pkgconfig/gnutls.pc to PKG_CONFIG_PATH and now pkg-config will be able to locate it
$ PKG_CONFIG_PATH=/usr/local/opt/gnutls/lib/pkgconfig pkg-config --cflags gnutls
Package libtasn1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtasn1.pc'
to the PKG_CONFIG_PATH environment variable
Not so fast! GNuTLS itself has a couple of dependencies. You can either install them:
$ brew install libtasn1 p11-kit
Or in my case they had been installed, but not properly linked by homebrew:
$ brew link libtasn1 p11-kit
Now pkg-config can locate the GnuTLS library and header files
$ PKG_CONFIG_PATH=/usr/local/opt/gnutls/lib/pkgconfig pkg-config --cflags gnutls
-I/usr/local/Cellar/gnutls/3.1.10/include -I/usr/local/Cellar/libtasn1/4.2/include -I/usr/local/Cellar/p11-kit/0.18.4/include/p11-kit-1