Re: Newly compiled and Installed NM and MM...Broken Libraries already



On Tue, 2016-03-01 at 16:48 -0800, Ali Nematollahi wrote:
Hi guys

I'm trying to compile and install NM 1.0.10 and MM 1.4.12 and I'm
running into a lot of trouble and it's frustrating me. 

I just compiled and installed both and everything went find in the
installation however:
1- No /etc/init.d/network-manager exists

Upstream NetworkManager doesn't provide such scripts beside systemd's
NetworkManager.service file.

Try to take the one from your distribution or get inspired by
https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=d5a8401686d98dfe5aa02fb5d29fd84e92dc54ff



2- nmcli and mmcli return with no libraries found:
nmcli: error while loading shared libraries: libnm.so.0: cannot open
shared object file: No such file or directory

mmcli: error while loading shared libraries: libmm-glib.so.0: cannot
open shared object file: No such file or directory


Here is ldd response:
root beaglebone:~/NetworkManager-1.0.10# ldd
/usr/local/sbin/NetworkManager
        libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1
(0xb6f4c000)
        libnss3.so => /usr/lib/arm-linux-gnueabihf/libnss3.so
(0xb6e9a000)
        libnssutil3.so => /usr/lib/arm-linux-gnueabihf/libnssutil3.so 
(0xb6e77000)
        libsmime3.so => /usr/lib/arm-linux-gnueabihf/libsmime3.so
(0xb6e56000)
        libssl3.so => /usr/lib/arm-linux-gnueabihf/libssl3.so
(0xb6e27000)
        libplds4.so => /usr/lib/arm-linux-gnueabihf/libplds4.so
(0xb6e1c000)
        libplc4.so => /usr/lib/arm-linux-gnueabihf/libplc4.so
(0xb6e0f000)
        libnspr4.so => /usr/lib/arm-linux-gnueabihf/libnspr4.so
(0xb6de1000)
        libdbus-glib-1.so.2 => /usr/lib/arm-linux-gnueabihf/libdbus-
glib-1.so.2 (0xb6dc2000)
        libdbus-1.so.3 => /lib/arm-linux-gnueabihf/libdbus-1.so.3
(0xb6d90000)
        libgio-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgio-
2.0.so.0 (0xb6cb5000)
        libgmodule-2.0.so.0 => /usr/lib/arm-linux-
gnueabihf/libgmodule-2.0.so.0 (0xb6ca9000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1
(0xb6c9b000)
        libgudev-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgudev-
1.0.so.0 (0xb6c8c000)
        libgobject-2.0.so.0 => /usr/lib/arm-linux-
gnueabihf/libgobject-2.0.so.0 (0xb6c4d000)
        libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 
(0xb6b8e000)
        libnl-route-3.so.200 => /usr/local/lib/libnl-route-3.so.200
(0xb6b49000)
        libnl-genl-3.so.200 => /usr/local/lib/libnl-genl-3.so.200
(0xb6b3d000)
        libnl-3.so.200 => /usr/local/lib/libnl-3.so.200 (0xb6b22000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0
(0xb6b07000)
        libndp.so.0 => not found
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2
(0xb6afb000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6a90000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1
(0xb6a6c000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6984000)
        /lib/ld-linux-armhf.so.3 (0xb6f60000)
        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb696b000)
        libselinux.so.1 => /lib/arm-linux-gnueabihf/libselinux.so.1
(0xb694d000)
        libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2
(0xb6935000)
        libudev.so.0 => /lib/arm-linux-gnueabihf/libudev.so.0
(0xb6923000)
        libgthread-2.0.so.0 => /usr/lib/arm-linux-
gnueabihf/libgthread-2.0.so.0 (0xb6919000)
        libffi.so.5 => /usr/lib/arm-linux-gnueabihf/libffi.so.5
(0xb6908000)
        libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3
(0xb68ce000)
root beaglebone:~/NetworkManager-1.0.10# ldd
/usr/local/sbin/ModemManager
        libmm-glib.so.0 => not found
        libgmodule-2.0.so.0 => /usr/lib/arm-linux-
gnueabihf/libgmodule-2.0.so.0 (0xb6edd000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1
(0xb6ecf000)
        libqmi-glib.so.1 => not found
        libmbim-glib.so.4 => not found
        libgudev-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgudev-
1.0.so.0 (0xb6ec0000)
        libgio-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgio-
2.0.so.0 (0xb6de4000)
        libgobject-2.0.so.0 => /usr/lib/arm-linux-
gnueabihf/libgobject-2.0.so.0 (0xb6da5000)
        libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 
(0xb6ce6000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1
(0xb6cc2000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0
(0xb6ca7000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6bbe000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2
(0xb6bb3000)
        /lib/ld-linux-armhf.so.3 (0xb6ef1000)
        libudev.so.0 => /lib/arm-linux-gnueabihf/libudev.so.0
(0xb6ba1000)
        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb6b88000)
        libselinux.so.1 => /lib/arm-linux-gnueabihf/libselinux.so.1
(0xb6b6b000)
        libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2
(0xb6b52000)
        libgthread-2.0.so.0 => /usr/lib/arm-linux-
gnueabihf/libgthread-2.0.so.0 (0xb6b48000)
        libffi.so.5 => /usr/lib/arm-linux-gnueabihf/libffi.so.5
(0xb6b37000)
        libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3
(0xb6afe000)
root beaglebone:~/NetworkManager-1.0.10#



What did I do wrong when installing that caused the libraries to not
get to the right places?
When I do a find on those missing libraries, I do have them all:
/usr/local/lib/libndp.so.0
/usr/local/lib/libqmi-glib.so.1
/usr/local/lib/libmbim-glib.so.4

When installing libraries to non-standard-paths, the system must be
configured so that the linker can find them at link-time (runtime).

Usually, you would put /usr/local/lib to /etc/ld.so.conf. See `man
ld.so`. An alternative is LD_LIBRARY_PATH environment variable, or some
compile options that embed the library path in the binary (https://en.w
ikipedia.org/wiki/Rpath).

Try also:
  LD_DEBUG=help nmcli
  LD_DEBUG=all nmcli



Thomas

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]