$ ./configure ... $ make ... $ sudo make install
$ sudo ./madwimax ./madwimax: error while loading shared libraries: libusb-1.0.so.0I had to ask for advice from specialists.
$ ls -al / usr / local / lib total 376 drwxr-xr-x 5 root root 4096 2009-05-19 23:51. drwxr-xr-x 11 root root 4096 2009-05-19 23:12 .. drwxrwsr-x 4 root staff 4096 2009-04-29 23:09 eclipse <strong> -rw-r - r-- 1 root root 193128 2009-05-19 23:51 libusb-1.0.a -rwxr-xr-x 1 root root 954 2009-05-19 23:51 libusb-1.0.la lrwxrwxrwx 1 root root 19 2009-05-19 23:51 libusb-1.0.so -> libusb-1.0.so.0.0.0 lrwxrwxrwx 1 root root 19 2009-05-19 23:51 libusb-1.0.so.0 -> libusb-1.0.so.0.0.0 -rwxr-xr-x 1 root root 153012 2009-05-19 23:51 libusb-1.0.so.0.0.0 </ strong> drwxr-xr-x 2 root root 4096 2009-05-19 23:51 pkgconfig drwxrwsr-x 3 root staff 4096 2008-10-30 01:53 python2.5And we see that the library is really installed in the right place.
ldd / usr / local / madwimax / sbin / madwimax linux-gate.so.1 => (0xb7fc7000) <strong> libusb-1.0.so.0 => not found </ strong> libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f83000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e24000) /lib/ld-linux.so.2 (0xb7fad000)That's the problem!
include /etc/ld.so.conf.d/*.confOn the advice of a specialist, I inserted another line before this line, the file began to look like this:
/ usr / local / lib include /etc/ld.so.conf.d/*.conf
$ sudo ldconfigand make sure that the library has become visible madwimax'u:
ldd / usr / local / madwimax / sbin / madwimax linux-gate.so.1 => (0xb8008000) <strong> libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0 (0xb7fd0000) </ strong> libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f83000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e24000) librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7e4f000) /lib/ld-linux.so.2 (0xb7fad000)Done!
$ sudo / usr / local / madwimax / sbin / madwimaxand use the network!
Source: https://habr.com/ru/post/60040/
All Articles