mitydsp@mitydsp-dev:/media/MityDSP/Modbus library/libmodbus-3.1.4$ make install Making install in src /bin/mkdir -p '/usr/local/lib' /bin/sh ../libtool --mode=install /usr/bin/install -c libmodbus.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libmodbus.so.5.1.0 /usr/local/lib/libmodbus.so.5.1.0 /usr/bin/install: cannot create regular file `/usr/local/lib/libmodbus.so.5.1.0': Permission denied make[2]: *** [install-libLTLIBRARIES] Error 1 make[1]: *** [install-am] Error 2 make: *** [install-recursive] Error 1 mitydsp@mitydsp-dev:/media/MityDSP/Modbus library/libmodbus-3.1.4$ sudo make install [sudo] password for mitydsp: Making install in src /bin/mkdir -p '/usr/local/lib' /bin/sh ../libtool --mode=install /usr/bin/install -c libmodbus.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libmodbus.so.5.1.0 /usr/local/lib/libmodbus.so.5.1.0 libtool: install: (cd /usr/local/lib && { cp -pR -f libmodbus.so.5.1.0 libmodbus.so.5 || { rm -f libmodbus.so.5 && cp -pR libmodbus.so.5.1.0 libmodbus.so.5; }; }) libtool: install: (cd /usr/local/lib && { cp -pR -f libmodbus.so.5.1.0 libmodbus.so || { rm -f libmodbus.so && cp -pR libmodbus.so.5.1.0 libmodbus.so; }; }) libtool: install: /usr/bin/install -c .libs/libmodbus.lai /usr/local/lib/libmodbus.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib /sbin/ldconfig.real: /usr/local/lib/libmodbus.so.5 is not a symbolic link ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /bin/mkdir -p '/usr/local/include/modbus' /usr/bin/install -c -m 644 modbus.h modbus-version.h modbus-rtu.h modbus-tcp.h '/usr/local/include/modbus' Making install in doc make[2]: Nothing to be done for `install-exec-am'. Making install in tests make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Nothing to be done for `install-exec-am'. /bin/mkdir -p '/usr/local/share/doc/libmodbus' /usr/bin/install -c -m 644 MIGRATION README.md '/usr/local/share/doc/libmodbus' /bin/mkdir -p '/usr/local/lib/pkgconfig' /usr/bin/install -c -m 644 libmodbus.pc '/usr/local/lib/pkgconfig'