I would like to upgrade both my Network Manager and Modem Manager on my Raspberry Pi 3 (Stretch lite/headless). I am doing this in the hope that it solves a BUG I have using a 3G Modem with the pi. (*On a side note, maintaining a reliable connection with a 3G modem and a raspberry pi is seriously impossible or at least I have been failing miserably at this (for years). tried sakis3g for a long time and now NetworkManager)
Anyhow, I have been trying to install NetworkManager from source, I downloaded the source for Network Manager 1.8.4 I extracted the files and ran:
Code: Select all
./configure --with-modem-manager-1 Code: Select all
System paths:
prefix: /usr/local
exec_prefix: ${prefix}
systemdunitdir: $(prefix)/lib/systemd/system
nmbinary: ${sbindir}/NetworkManager
nmconfdir: ${sysconfdir}/NetworkManager
nmlibdir: ${prefix}/lib/NetworkManager
nmdatadir: ${datadir}/NetworkManager
nmstatedir: ${localstatedir}/lib/NetworkManager
nmrundir: ${runstatedir}/NetworkManager
Platform:
session tracking: consolekit
suspend/resume: consolekit
policykit: yes (restrictive modify.system) (default: main.auth-polkit=yes)
polkit agent: no
selinux: no
systemd-journald: no (default: logging.backend=syslog)
hostname persist: default
libaudit: no (default: logging.audit=false)
Features:
wext: yes
wifi: yes
ppp: yes ${exec_prefix}/lib/pppd/2.4.5
modemmanager-1: yes
ofono: no
concheck: yes
libteamdctl: no
libnm-glib: yes
nmcli: yes
nmtui: no
Configuration plugins (main.plugins=ifupdown,ibft)
ibft: yes
ifcfg-rh: no
ifupdown: yes
ifnet: no
Handlers for /etc/resolv.conf:
resolvconf: no
netconfig: no
config-dns-rc-manager-default: symlink
DHCP clients (default dhclient):
dhclient: /sbin/dhclient
dhcpcd: /sbin/dhcpcd
dhcpcd-supports-ipv6: yes
Miscellaneous:
have introspection: yes
build documentation and manpages: no
install pregenerated documentation and manpages: yes
tests: yes
more-asserts: 0
more-logging: no
more-warnings: yes
valgrind: no
code coverage: no
LTO: no
linker garbage collection: yes
JSON validation for libnm: yes
sanitizers:
Mozilla Public Suffix List: no
Code: Select all
make
sudo make install
libnm.so.0.1.0
So after some digging I found that this lib originally exists on the pi at /usr/lib/arm-linux-gnueabihf
however the "configure, make, make install" procedure installs libs into /usr/local/lib/
Im not sure if it is possible to setup the make process to install the libs correctly on the pi?
So as a hack I just copied the one lib from /usr/local/lib/ to /usr/lib/arm-linux-gnueabihf
NetworkManager now seems to work but when I try to add a "gsm" connection:
Code: Select all
sudo nmcli con add type gsm ifname "*" con-name 3GModem apn internetCode: Select all
Error: Failed to add '3GModem' connection: No plugin supported adding this connectionRegards,