network-manager-wireguard icon indicating copy to clipboard operation
network-manager-wireguard copied to clipboard

checking for LIBNM_GLIB... no - Fedora 31, Debian 10, MX-Linux

Open tomasmetal23 opened this issue 6 years ago • 8 comments

I have this problem when you tried to install it, could you help me? I tried to install it on debian 10 and fedora 31 and I have the same problem, I could only install it on arch linux

image

The libnm-glib library, deprecated in favor of libnm since NetworkManager 1.0

tomasmetal23 avatar Jan 28 '20 13:01 tomasmetal23

Add --without-libnm-glib to ./configure
Example for fedora 31:

./configure \
--without-libnm-glib


Example for debian buster / mx-linux:

./configure --prefix=/usr
--without-libnm-glib
--sysconfdir=/etc
--libdir=/usr/lib/x86_64-linux-gnu
--libexecdir=/usr/lib/NetworkManager
--localstatedir=/var


Example for ubuntu 18.04 LTS:

./configure --prefix=/usr
--sysconfdir=/etc
--libdir=/usr/lib/x86_64-linux-gnu
--libexecdir=/usr/lib/NetworkManager
--localstatedir=/var

tomasmetal23 avatar Jan 30 '20 15:01 tomasmetal23

I am experiencing the same Issue on Ubuntu 20.04 LTS: But I not getting it working. Do you have any advice for me? What I have done:

sudo apt install wireguard git dh-autoreconf libglib2.0-dev intltool build-essential libgtk-3-dev libnma-dev libsecret-1-dev network-manager-dev
git clone https://github.com/max-moser/network-manager-wireguard
cd network-manager-wireguard
./autogen.sh
./configure --without-libnm-glib 
--prefix=/usr
--sysconfdir=/etc
--libdir=/usr/lib/x86_64-linux-gnu
--libexecdir=/usr/lib/NetworkManager
--localstatedir=/var
make
sudo make sysconfdir=/etc libdir=/usr/lib install

Thank you in advance.

KingCartman avatar Apr 30 '20 07:04 KingCartman

Try with this sh and tell me how it went. https://gist.github.com/tomasmetal23/e1ccd35fdf8c2e9786e0af37fe04dcc6

tomasmetal23 avatar Apr 30 '20 10:04 tomasmetal23

Try with this sh and tell me how it went. https://gist.github.com/tomasmetal23/e1ccd35fdf8c2e9786e0af37fe04dcc6

Thanks for your reply. I already get it working. Just needed to use "sudo make install" without any parameters. So I think youre variant will work too.

But after that I still cant activate the VPN-Connection successfully. But after checking /var/log/syslog I saw that the package "resolvconf" is a dependency too and not preinstalled.

Now its fully working. Thank you anyway for your help. 👍

KingCartman avatar Apr 30 '20 10:04 KingCartman

I posted it on askubuntu.com too: https://askubuntu.com/questions/1233034/wireguard-vpn-client-gui/1233341#1233341

I hope this will help somebody in the future. So much too manage multiple WG-VPN Connections over the GUI.

KingCartman avatar Apr 30 '20 10:04 KingCartman

I'm glad, any questions with wireguard (server-client) we can talk about. You can write to my email or telegram @idontexist24.

tomasmetal23 avatar Apr 30 '20 10:04 tomasmetal23

Hi. I'm on Fedora 36 and I have the same issue.

$ ./autogen.sh \
                --prefix=/usr \
		--sysconfdir=/etc \
		--libdir=/usr/lib/x86_64-linux-gnu \
		--libexecdir=/usr/lib/NetworkManager \
		--localstatedir=/var

You should update your 'aclocal.m4' by running aclocal.
intltoolize: 'po/Makefile.in.in' exists: use '--force' to overwrite
configure.ac:27: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:27: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
...
...
...
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GTK... yes
checking for LIBNMA... yes
checking for LIBSECRET... yes
checking for LIBNM_GLIB... no
configure: error: Package requirements (NetworkManager >= 1.7.0
			libnm-util >= 1.7.0
			libnm-glib >= 1.7.0
			libnm-glib-vpn >= 1.7.0) were not met:

Package 'NetworkManager', required by 'virtual:world', not found
Package 'libnm-util', required by 'virtual:world', not found
Package 'libnm-glib', required by 'virtual:world', not found
Package 'libnm-glib-vpn', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBNM_GLIB_CFLAGS
and LIBNM_GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

yookoala avatar May 15 '22 03:05 yookoala

Hi. I'm on Fedora 36 and I have the same issue.

$ ./autogen.sh \
                --prefix=/usr \
		--sysconfdir=/etc \
		--libdir=/usr/lib/x86_64-linux-gnu \
		--libexecdir=/usr/lib/NetworkManager \
		--localstatedir=/var

You should update your 'aclocal.m4' by running aclocal.
intltoolize: 'po/Makefile.in.in' exists: use '--force' to overwrite
configure.ac:27: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:27: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
...
...
...
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GTK... yes
checking for LIBNMA... yes
checking for LIBSECRET... yes
checking for LIBNM_GLIB... no
configure: error: Package requirements (NetworkManager >= 1.7.0
			libnm-util >= 1.7.0
			libnm-glib >= 1.7.0
			libnm-glib-vpn >= 1.7.0) were not met:

Package 'NetworkManager', required by 'virtual:world', not found
Package 'libnm-util', required by 'virtual:world', not found
Package 'libnm-glib', required by 'virtual:world', not found
Package 'libnm-glib-vpn', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBNM_GLIB_CFLAGS
and LIBNM_GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

try with https://gist.github.com/tomasmetal23/feb62272524d26c0a05b47339eea6ad1

tomasmetal23 avatar May 22 '22 23:05 tomasmetal23