I'm trying to install OpenVPN on macOS High Sierra
I have cloned the github repo:
git clone https://github.com/OpenVPN/openvpn
And switched to the latest stable branch:
git checkout origin release/2.4
But when I tried to build the project (following the INSTALL
instructions):
autoreconf -i -v -f
./configure
I had this error during the configure
step:
configure: error: lzo enabled but missing
Even after installing lzo
dependency with macos ports, the problem persists.
The answer to this problem was easier than I thought...
I had just to define the env vars CFLAGS
and LDFLAGS
before running configure
script:
export CFLAGS="-I/opt/local/include"
export LDFLAGS="-L/opt/local/lib"
./configure
make
sudo make install
If you had to install lzo
:
brew install lzo
or brew link lzo
in case it already existssudo port install lzo