Unable to install OpenVPN on macOS - configure: error: lzo enabled but missing - macos

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
UPDATE
If you had to install lzo:
using brew: brew install lzo or brew link lzo in case it already exists
using port: sudo port install lzo

I use a M1 MacBook Pro so freedev's answer did not work. I had to instead include the library from inside the homebrew directories so my final configure command was:
./configure LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/openssl#3/lib" CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openssl#3/include"

The following resolved the issue for me:
sudo apt-get install libssl-dev liblzo2-dev libpam0g-dev
I got this fix from this askubuntu.com openvpn lzo enabled but missing question.
More details: I got each of the 3 error messages shown below separately. Each one was resolved, then I got the next. All 3 are resolved with the one command line above. Basically, 3 developer packages were missing.
configure: error: OpenSSL version too old (resolved with libssl-dev)
configure: error: lzo enabled but missing (resolved with liblzo2-dev)
configure: error: libpam required but missing (resolved with libpam0g-dev)
Thanks to all the other answers which helped to confirm things, triangulate to the answer I felt most confident about!

Related

Getting this error message while installing solana: error: failed to run custom build command for `prost-build v0.10.1`

I'm got this error after running this command: ./scripts/cargo-install-all.sh .
error: failed to run custom build command for `prost-build v0.10.1`
I'm installing solana on m1 mac
Anyone please help me with this.
The prost-build crate compilation is failing because it can't find protocol-buffer implementation, and the crate build.rs tries to compile it via cmake (which you don't have installed).
I solved it by installing protocol-buffers directly, but since there are problems with the pre-compiled binary in M1 you have to compile it locally. It's simple:
git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf
brew install autoconf
brew install automake
brew install Libtool
autoreconf -i
./autogen.sh
./configure
make
make check
sudo make install
export PATH=/opt/usr/local/bin:$PATH
This works!!!

fatal error: 'sodium/version.h' file not found white setting up libsodium-go

I was working with the Github API in order create a script to transfer secrets from Gitlab.
While doing so I have been trying to setup the libsodium-go package to encrypt the secrets.
Here is the link for reference https://github.com/GoKillers/libsodium-go
I have followed the steps mentioned on the page.
Pre-setup:
Please install Libsodium here https://download.libsodium.org/doc/installation/index.html
sudo ldconfig
sudo apt-get install pkg-config
Install libsodium-go:
go get -d github.com/GoKillers/libsodium-go
cd $GOPATH/src/github.com/GoKillers/libsodium-go
./build.sh
But for the pre setup have used brew install libsodium
When I run the ./build.sh
I get the following error
In file included from cryptohash/crypto_hash.go:5:
/usr/local/include/sodium.h:5:10: fatal error: 'sodium/version.h' file not found
#include "sodium/version.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
Not sure how to resolve this. Any help would be appreciated!
Was having the same issue, when I ran brew install libsodium, a warning was displayed stating that libsodium has been installed, it's just not linked.
To link run brew link libsodium. If conflicting files are found, running brew link --overwrite libsodium resolved the problem.

autoreconf: 'configure.ac' or 'configure.in' is required

I followed the instructions to install FB Machine Learning tools.
One of the libraries installation instructions are
cd ~/libraries
git clone https://github.com/facebook/folly.git
cd folly/folly/
autoreconf -ivf
./configure
cp -R ~/libraries/gtest-1.7/* ./test/gtest-1.7/
make
make check
sudo make install
sudo ldconfig # reload the lib paths after freshly installed folly. fbthrift needs it.
I have problem at autoreconf -ivf, the error is
autoreconf: 'configure.ac' or 'configure.in' is required
But when I install autoreconf, I have the newest version.
autoconf is already the newest version (2.69-9).
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
What could be wrong?
folly is not using the autotols anymore, but CMake (there is only a CMakeLists.txt file, not configure.*).
See here for the steps: https://github.com/facebook/folly#dependencies
Installing pkgconf package fixed it for me.
error: autoreconf: 'configure.ac' or 'configure.in' is required
Just don't try to install.
In most cases the autoreconf -i command helps, but it did not work for you due to an inappropriate package :\
In your case will be adequately to look at the documentation for installation from the terminal to your OS.

Janus WebRTC installation issue

I am installing Janus WebRTC Gateway in a Ubuntu Machine (14.04 64 bit). I followed the instructions as in the following link:
However, I get the following error when trying to execute janus:
https://github.com/meetecho/janus-gateway (readme.md file)
[FATAL] [janus.c:main:3670] No Janus API transport is available...
enable at least one and restart Janus
Anyone has any idea what the issue might be? I will only use the REST API without WebStockets or RabbitMQ.
I successfully installed Janus on Ubuntu 14 according to the following steps:
sudo apt-get install libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libini-config-dev libcollection-dev libwebsockets-dev pkg-config gengetopt automake libtool doxygen graphviz git cmake
sudo apt-get install libavformat-dev
mkdir -p ~/build
cd ~/build
git clone git://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --disable-data-channels --disable-websockets --disable-rabbitmq --disable-docs --prefix=/opt/janus LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" CFLAGS="-I/usr/local/include"
make && sudo make install
sudo make configs
Running it by:
cd /opt/janus/bin/
./janus -F /opt/janus/etc/janus/
I had this issue before, I had write a script to install everything just run this
wget https://gist.githubusercontent.com/johnmelodyme/966f474a99b6dd0cf4e7ac19ba4258da/raw/0f1779499c62eeee3e2a577ef641e94e57b71154/janus.sh && sh janus.sh
Hope This Help Much, I believe there are certain dependencies needs to be installation but you missed it. In https://github.com/meetecho/janus-gateway it stated the Dependencies needed, have to be installed without error.
It is because libmicrohttpd version is lower than requirement, Download and install libmicrohttpd manually (dont use yum or apt-get).

Compiling Hadoop Examples in Mac

I am new to Unixlike operating systems.
After installing Hadoop as per the instructions below,
http://wiki.apache.org/hadoop/Running_Hadoop_On_OS_X_10.5_64-bit_(Single-Node_Cluster)
I am trying to build the examples as given in the same URL using
ant examples
This gives me an exception as below
compile-mapred-classes:
Trying to override old definition of task jsp-compile
[javac] /Users/hadoop/hadoop-1.2.1/build.xml:549: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
create-native-configure:
BUILD FAILED
/Users/hadoop/hadoop-1.2.1/build.xml:634: Execute failed: java.io.IOException: Cannot run program "autoreconf" (in directory "/Users/hadoop/hadoop-1.2.1/src/native"): error=2, No such file or directory
What exactly is needed for my Mac to get past this?
As the error says, you need to install autoreconf. The easiest way to do it is through Homebrew (brew install autoconf, after you install the Homebrew itself).
Incidentally, hadoop can be installed through Homebrew as well.
I had the same issue, and was able to resolve it by installing automake, autoconf and libtool:
brew install automake autoconf libtool
Running a couple of brew unlink {formula} && brew link {formula} on automake, autoconf and libtool did the trick for me

Resources