Inotify安装
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Inotify安装相关的知识,希望对你有一定的参考价值。
1.下载Inotify工具
[[email protected] ~]# wget http://cloud.github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz --2016-12-11 01:10:47-- http://cloud.github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz Resolving cloud.github.com... 54.182.2.201, 54.182.2.71, 54.182.2.151, ... Connecting to cloud.github.com|54.182.2.201|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://cloud.github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz [following] --2016-12-11 01:10:49-- https://cloud.github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz Connecting to cloud.github.com|54.182.2.201|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 358772 (350K) [null] Saving to: “inotify-tools-3.14.tar.gz” 100%[========================================================================================>] 358,772 152K/s in 2.3s 2016-12-11 01:10:52 (152 KB/s) - “inotify-tools-3.14.tar.gz” saved [358772/358772]
2.使用tar进行解压缩
[[email protected] ~]# tar -xvf inotify-tools-3.14.tar.gz inotify-tools-3.14/ inotify-tools-3.14/AUTHORS inotify-tools-3.14/src/ inotify-tools-3.14/src/Makefile.am inotify-tools-3.14/src/inotifywatch.c inotify-tools-3.14/src/Makefile.in inotify-tools-3.14/src/common.c inotify-tools-3.14/src/common.h inotify-tools-3.14/src/inotifywait.c inotify-tools-3.14/config.guess inotify-tools-3.14/README inotify-tools-3.14/Makefile.am inotify-tools-3.14/configure.ac inotify-tools-3.14/config.h.in inotify-tools-3.14/ChangeLog inotify-tools-3.14/man/ inotify-tools-3.14/man/Makefile.am inotify-tools-3.14/man/Makefile.in inotify-tools-3.14/man/inotifywait.1 inotify-tools-3.14/man/inotifywatch.1 inotify-tools-3.14/config.sub inotify-tools-3.14/Makefile.in inotify-tools-3.14/aclocal.m4 inotify-tools-3.14/configure inotify-tools-3.14/COPYING inotify-tools-3.14/install-sh inotify-tools-3.14/missing inotify-tools-3.14/NEWS inotify-tools-3.14/libinotifytools/ inotify-tools-3.14/libinotifytools/src/ inotify-tools-3.14/libinotifytools/src/inotifytools_p.h inotify-tools-3.14/libinotifytools/src/Makefile.am inotify-tools-3.14/libinotifytools/src/redblack.h inotify-tools-3.14/libinotifytools/src/redblack.c inotify-tools-3.14/libinotifytools/src/inotifytools.c inotify-tools-3.14/libinotifytools/src/Makefile.in inotify-tools-3.14/libinotifytools/src/Doxyfile inotify-tools-3.14/libinotifytools/src/example.c inotify-tools-3.14/libinotifytools/src/inotifytools/ inotify-tools-3.14/libinotifytools/src/inotifytools/Makefile.am inotify-tools-3.14/libinotifytools/src/inotifytools/inotify.h.in inotify-tools-3.14/libinotifytools/src/inotifytools/inotifytools.h inotify-tools-3.14/libinotifytools/src/inotifytools/Makefile.in inotify-tools-3.14/libinotifytools/src/inotifytools/inotify-nosys.h inotify-tools-3.14/libinotifytools/src/test.c inotify-tools-3.14/libinotifytools/Makefile.am inotify-tools-3.14/libinotifytools/Makefile.in inotify-tools-3.14/INSTALL inotify-tools-3.14/ltmain.sh inotify-tools-3.14/depcomp [[email protected] ~]# ls anaconda-ks.cfg inotify-tools-3.14 inotify-tools-3.14.tar.gz install.log install.log.syslog [[email protected] ~]# cd inotify-tools-3.14
3.创建application并且进行编译安装
[[email protected] inotify-tools-3.14]# mkdir /application [[email protected] inotify-tools-3.14]# ./configure --prefix=/application/inotify-tools-3.14 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make sets $(MAKE)... (cached) yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1966080 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for doxygen... /usr/bin/doxygen checking sys/inotify.h usability... yes checking sys/inotify.h presence... yes checking for sys/inotify.h... yes checking mcheck.h usability... yes checking mcheck.h presence... yes checking for mcheck.h... yes checking whether sys/inotify.h actually works... yup checking for an ANSI C-conforming const... yes checking for inline... inline configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating libinotifytools/Makefile config.status: creating libinotifytools/src/Makefile config.status: creating libinotifytools/src/inotifytools/Makefile config.status: creating config.h config.status: creating libinotifytools/src/inotifytools/inotify.h config.status: executing depfiles commands config.status: executing libtool commands [[email protected] inotify-tools-3.14]# make make all-recursive make[1]: Entering directory `/root/inotify-tools-3.14‘ Making all in libinotifytools make[2]: Entering directory `/root/inotify-tools-3.14/libinotifytools‘ make[3]: Entering directory `/root/inotify-tools-3.14‘ make[3]: Leaving directory `/root/inotify-tools-3.14‘ Making all in src make[3]: Entering directory `/root/inotify-tools-3.14/libinotifytools/src‘ make[4]: Entering directory `/root/inotify-tools-3.14‘ make[4]: Leaving directory `/root/inotify-tools-3.14‘ Making all in inotifytools make[4]: Entering directory `/root/inotify-tools-3.14/libinotifytools/src/inotifytools‘ make[5]: Entering directory `/root/inotify-tools-3.14‘ make[5]: Leaving directory `/root/inotify-tools-3.14‘ (CDPATH="${ZSH_VERSION+.}:" && cd ../../.. && /bin/sh /root/inotify-tools-3.14/missing --run autoheader) aclocal.m4:16: warning: this file was generated for autoconf 2.64. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf‘. rm -f stamp-h2 touch inotify.h.in cd ../../.. && /bin/sh ./config.status libinotifytools/src/inotifytools/inotify.h config.status: creating libinotifytools/src/inotifytools/inotify.h config.status: libinotifytools/src/inotifytools/inotify.h is unchanged make all-am make[5]: Entering directory `/root/inotify-tools-3.14/libinotifytools/src/inotifytools‘ make[6]: Entering directory `/root/inotify-tools-3.14‘ make[6]: Leaving directory `/root/inotify-tools-3.14‘ make[5]: Leaving directory `/root/inotify-tools-3.14/libinotifytools/src/inotifytools‘ make[4]: Leaving directory `/root/inotify-tools-3.14/libinotifytools/src/inotifytools‘ make[4]: Entering directory `/root/inotify-tools-3.14/libinotifytools/src‘ make[5]: Entering directory `/root/inotify-tools-3.14‘ make[5]: Leaving directory `/root/inotify-tools-3.14‘ /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c -o inotifytools.lo inotifytools.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -fPIC -DPIC -o .libs/inotifytools.o inotifytools.c: In function ‘event_compare’: inotifytools.c:2029: warning: cast from pointer to integer of different size inotifytools.c: In function ‘inotifytools_wd_sorted_by_event’: inotifytools.c:2050: warning: cast to pointer from integer of different size libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -o inotifytools.o >/dev/null 2>&1 mv -f .deps/inotifytools.Tpo .deps/inotifytools.Plo /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c -o redblack.lo redblack.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c redblack.c -fPIC -DPIC -o .libs/redblack.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c redblack.c -o redblack.o >/dev/null 2>&1 mv -f .deps/redblack.Tpo .deps/redblack.Plo /bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2 -version-info 4:1:4 -o libinotifytools.la -rpath /application/inotify-tools-3.14/lib inotifytools.lo redblack.lo libtool: link: gcc -shared .libs/inotifytools.o .libs/redblack.o -Wl,-soname -Wl,libinotifytools.so.0 -o .libs/libinotifytools.so.0.4.1 libtool: link: (cd ".libs" && rm -f "libinotifytools.so.0" && ln -s "libinotifytools.so.0.4.1" "libinotifytools.so.0") libtool: link: (cd ".libs" && rm -f "libinotifytools.so" && ln -s "libinotifytools.so.0.4.1" "libinotifytools.so") libtool: link: ar cru .libs/libinotifytools.a inotifytools.o redblack.o libtool: link: ranlib .libs/libinotifytools.a libtool: link: ( cd ".libs" && rm -f "libinotifytools.la" && ln -s "../libinotifytools.la" "libinotifytools.la" ) /usr/bin/doxygen Warning: Tag `USE_WINDOWS_ENCODING‘ at line 64 of file Doxyfile has become obsolete. To avoid this warning please update your configuration file using "doxygen -u" Warning: Tag `DETAILS_AT_TOP‘ at line 156 of file Doxyfile has become obsolete. To avoid this warning please update your configuration file using "doxygen -u" Warning: Tag `MAX_DOT_GRAPH_WIDTH‘ at line 1196 of file Doxyfile has become obsolete. To avoid this warning please update your configuration file using "doxygen -u" Warning: Tag `MAX_DOT_GRAPH_HEIGHT‘ at line 1204 of file Doxyfile has become obsolete. To avoid this warning please update your configuration file using "doxygen -u" Notice: Output directory `doc‘ does not exist. I have created it for you. Searching for include files... Searching for example files... Searching for files in directory /root/inotify-tools-3.14/libinotifytools/src Searching for images... Searching for dot files... Searching for files to exclude Searching for files to process... Reading and parsing tag files Preprocessing /root/inotify-tools-3.14/libinotifytools/src/inotifytools/inotifytools.h... Parsing file /root/inotify-tools-3.14/libinotifytools/src/inotifytools/inotifytools.h... Preprocessing /root/inotify-tools-3.14/libinotifytools/src/inotifytools.c... Parsing file /root/inotify-tools-3.14/libinotifytools/src/inotifytools.c... Building group list... Building directory list... Building namespace list... Building file list... Building class list... Associating documentation with classes... Computing nesting relations for classes... Building example list... Searching for enumerations... Searching for documented typedefs... Searching for members imported via using declarations... Searching for included using directives... Searching for documented variables... Building member list... Searching for friends... Searching for documented defines... Computing class inheritance relations... Computing class usage relations... Flushing cached template relations that have become invalid... Creating members for template instances... Computing class relations... Add enum values to enums... Searching for member function documentation... Building page list... Search for main page... Computing page relations... Determining the scope of groups... Sorting lists... Freeing entry tree Determining which enums are documented Computing member relations... Building full member lists recursively... Adding members to member groups. Computing member references... Inheriting documentation... Generating disk names... Adding source references... Adding xrefitems... Counting data structures... Resolving user defined references... Finding anchors and sections in the documentation... Combining using relations... Adding members to index pages... Generating style sheet... Generating index page... Generating page index... Generating example documentation... Generating file sources... Generating code for file inotifytools.c... Generating code for file inotifytools/inotifytools.h... Generating file documentation... Generating docs for file inotifytools/inotifytools.h... Generating page documentation... Generating docs for page todo... Generating group documentation... Generating group index... Generating class documentation... Generating annotated compound index... Generating alphabetical compound index... Generating hierarchical class index... Generating member index... Generating namespace index... Generating namespace member index... Generating graph info page... Generating file index... Generating example index... Generating file member index... make[4]: Leaving directory `/root/inotify-tools-3.14/libinotifytools/src‘ make[3]: Leaving directory `/root/inotify-tools-3.14/libinotifytools/src‘ make[3]: Entering directory `/root/inotify-tools-3.14/libinotifytools‘ make[4]: Entering directory `/root/inotify-tools-3.14‘ make[4]: Leaving directory `/root/inotify-tools-3.14‘ make[3]: Nothing to be done for `all-am‘. make[3]: Leaving directory `/root/inotify-tools-3.14/libinotifytools‘ make[2]: Leaving directory `/root/inotify-tools-3.14/libinotifytools‘ Making all in src make[2]: Entering directory `/root/inotify-tools-3.14/src‘ make[3]: Entering directory `/root/inotify-tools-3.14‘ make[3]: Leaving directory `/root/inotify-tools-3.14‘ gcc -DHAVE_CONFIG_H -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywait.o -MD -MP -MF .deps/inotifywait.Tpo -c -o inotifywait.o inotifywait.c mv -f .deps/inotifywait.Tpo .deps/inotifywait.Po gcc -DHAVE_CONFIG_H -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT common.o -MD -MP -MF .deps/common.Tpo -c -o common.o common.c mv -f .deps/common.Tpo .deps/common.Po /bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -o inotifywait inotifywait.o common.o ../libinotifytools/src/libinotifytools.la libtool: link: gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotifywait.o common.o -L/root/inotify-tools-3.14/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so -Wl,-rpath -Wl,/application/inotify-tools-3.14/lib gcc -DHAVE_CONFIG_H -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywatch.o -MD -MP -MF .deps/inotifywatch.Tpo -c -o inotifywatch.o inotifywatch.c mv -f .deps/inotifywatch.Tpo .deps/inotifywatch.Po /bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -o inotifywatch inotifywatch.o common.o ../libinotifytools/src/libinotifytools.la libtool: link: gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotifywatch.o common.o -L/root/inotify-tools-3.14/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so -Wl,-rpath -Wl,/application/inotify-tools-3.14/lib make[2]: Leaving directory `/root/inotify-tools-3.14/src‘ Making all in man make[2]: Entering directory `/root/inotify-tools-3.14/man‘ make[3]: Entering directory `/root/inotify-tools-3.14‘ make[3]: Leaving directory `/root/inotify-tools-3.14‘ make[2]: Nothing to be done for `all‘. make[2]: Leaving directory `/root/inotify-tools-3.14/man‘ make[2]: Entering directory `/root/inotify-tools-3.14‘ cd . && /bin/sh ./config.status config.h config.status: creating config.h make[2]: Leaving directory `/root/inotify-tools-3.14‘ make[1]: Leaving directory `/root/inotify-tools-3.14‘ [[email protected] inotify-tools-3.14]# make install Making install in libinotifytools make[1]: Entering directory `/root/inotify-tools-3.14/libinotifytools‘ make[2]: Entering directory `/root/inotify-tools-3.14‘ make[2]: Leaving directory `/root/inotify-tools-3.14‘ Making install in src make[2]: Entering directory `/root/inotify-tools-3.14/libinotifytools/src‘ make[3]: Entering directory `/root/inotify-tools-3.14‘ make[3]: Leaving directory `/root/inotify-tools-3.14‘ Making install in inotifytools make[3]: Entering directory `/root/inotify-tools-3.14/libinotifytools/src/inotifytools‘ make[4]: Entering directory `/root/inotify-tools-3.14‘ make[4]: Leaving directory `/root/inotify-tools-3.14‘ make[4]: Entering directory `/root/inotify-tools-3.14/libinotifytools/src/inotifytools‘ make[5]: Entering directory `/root/inotify-tools-3.14‘ make[5]: Leaving directory `/root/inotify-tools-3.14‘ make[4]: Nothing to be done for `install-exec-am‘. make[4]: Nothing to be done for `install-data-am‘. make[4]: Leaving directory `/root/inotify-tools-3.14/libinotifytools/src/inotifytools‘ make[3]: Leaving directory `/root/inotify-tools-3.14/libinotifytools/src/inotifytools‘ make[3]: Entering directory `/root/inotify-tools-3.14/libinotifytools/src‘ make[4]: Entering directory `/root/inotify-tools-3.14‘ make[4]: Leaving directory `/root/inotify-tools-3.14‘ /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c -o inotifytools.lo inotifytools.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -fPIC -DPIC -o .libs/inotifytools.o inotifytools.c: In function ‘event_compare’: inotifytools.c:2029: warning: cast from pointer to integer of different size inotifytools.c: In function ‘inotifytools_wd_sorted_by_event’: inotifytools.c:2050: warning: cast to pointer from integer of different size libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -o inotifytools.o >/dev/null 2>&1 mv -f .deps/inotifytools.Tpo .deps/inotifytools.Plo /bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2 -version-info 4:1:4 -o libinotifytools.la -rpath /application/inotify-tools-3.14/lib inotifytools.lo redblack.lo libtool: link: rm -fr .libs/libinotifytools.a .libs/libinotifytools.la .libs/libinotifytools.lai .libs/libinotifytools.so .libs/libinotifytools.so.0 .libs/libinotifytools.so.0.4.1 libtool: link: gcc -shared .libs/inotifytools.o .libs/redblack.o -Wl,-soname -Wl,libinotifytools.so.0 -o .libs/libinotifytools.so.0.4.1 libtool: link: (cd ".libs" && rm -f "libinotifytools.so.0" && ln -s "libinotifytools.so.0.4.1" "libinotifytools.so.0") libtool: link: (cd ".libs" && rm -f "libinotifytools.so" && ln -s "libinotifytools.so.0.4.1" "libinotifytools.so") libtool: link: ar cru .libs/libinotifytools.a inotifytools.o redblack.o libtool: link: ranlib .libs/libinotifytools.a libtool: link: ( cd ".libs" && rm -f "libinotifytools.la" && ln -s "../libinotifytools.la" "libinotifytools.la" ) make[4]: Entering directory `/root/inotify-tools-3.14/libinotifytools/src‘ make[5]: Entering directory `/root/inotify-tools-3.14‘ make[5]: Leaving directory `/root/inotify-tools-3.14‘ test -z "/application/inotify-tools-3.14/lib" || /bin/mkdir -p "/application/inotify-tools-3.14/lib" /bin/sh ../../libtool --mode=install /usr/bin/install -c libinotifytools.la ‘/application/inotify-tools-3.14/lib‘ libtool: install: /usr/bin/install -c .libs/libinotifytools.so.0.4.1 /application/inotify-tools-3.14/lib/libinotifytools.so.0.4.1 libtool: install: (cd /application/inotify-tools-3.14/lib && { ln -s -f libinotifytools.so.0.4.1 libinotifytools.so.0 || { rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotifytools.so.0; }; }) libtool: install: (cd /application/inotify-tools-3.14/lib && { ln -s -f libinotifytools.so.0.4.1 libinotifytools.so || { rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifytools.so; }; }) libtool: install: /usr/bin/install -c .libs/libinotifytools.lai /application/inotify-tools-3.14/lib/libinotifytools.la libtool: install: /usr/bin/install -c .libs/libinotifytools.a /application/inotify-tools-3.14/lib/libinotifytools.a libtool: install: chmod 644 /application/inotify-tools-3.14/lib/libinotifytools.a libtool: install: ranlib /application/inotify-tools-3.14/lib/libinotifytools.a libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /application/inotify-tools-3.14/lib ---------------------------------------------------------------------- Libraries have been installed in: /application/inotify-tools-3.14/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. ---------------------------------------------------------------------- test -z "/application/inotify-tools-3.14/share/doc/inotify-tools" || /bin/mkdir -p "/application/inotify-tools-3.14/share/doc/inotify-tools" /usr/bin/install -c -m 644 doc/html/doxygen.css doc/html/doxygen.png doc/html/files.html doc/html/globals_func.html doc/html/globals.html doc/html/index.html doc/html/inotifytools_8c_source.html doc/html/inotifytools_8h.html doc/html/inotifytools_8h_source.html doc/html/pages.html doc/html/tab_b.gif doc/html/tab_l.gif doc/html/tab_r.gif doc/html/tabs.css doc/html/todo.html ‘/application/inotify-tools-3.14/share/doc/inotify-tools‘ test -z "/application/inotify-tools-3.14/include" || /bin/mkdir -p "/application/inotify-tools-3.14/include" /bin/mkdir -p ‘/application/inotify-tools-3.14/include/inotifytools‘ /usr/bin/install -c -m 644 inotifytools/inotifytools.h inotifytools/inotify-nosys.h inotifytools/inotify.h ‘/application/inotify-tools-3.14/include/inotifytools‘ make[4]: Leaving directory `/root/inotify-tools-3.14/libinotifytools/src‘ make[3]: Leaving directory `/root/inotify-tools-3.14/libinotifytools/src‘ make[2]: Leaving directory `/root/inotify-tools-3.14/libinotifytools/src‘ make[2]: Entering directory `/root/inotify-tools-3.14/libinotifytools‘ make[3]: Entering directory `/root/inotify-tools-3.14‘ make[3]: Leaving directory `/root/inotify-tools-3.14‘ make[3]: Entering directory `/root/inotify-tools-3.14/libinotifytools‘ make[4]: Entering directory `/root/inotify-tools-3.14‘ make[4]: Leaving directory `/root/inotify-tools-3.14‘ make[3]: Nothing to be done for `install-exec-am‘. make[3]: Nothing to be done for `install-data-am‘. make[3]: Leaving directory `/root/inotify-tools-3.14/libinotifytools‘ make[2]: Leaving directory `/root/inotify-tools-3.14/libinotifytools‘ make[1]: Leaving directory `/root/inotify-tools-3.14/libinotifytools‘ Making install in src make[1]: Entering directory `/root/inotify-tools-3.14/src‘ make[2]: Entering directory `/root/inotify-tools-3.14‘ make[2]: Leaving directory `/root/inotify-tools-3.14‘ gcc -DHAVE_CONFIG_H -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywait.o -MD -MP -MF .deps/inotifywait.Tpo -c -o inotifywait.o inotifywait.c mv -f .deps/inotifywait.Tpo .deps/inotifywait.Po gcc -DHAVE_CONFIG_H -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT common.o -MD -MP -MF .deps/common.Tpo -c -o common.o common.c mv -f .deps/common.Tpo .deps/common.Po /bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -o inotifywait inotifywait.o common.o ../libinotifytools/src/libinotifytools.la libtool: link: gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotifywait.o common.o -L/root/inotify-tools-3.14/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so -Wl,-rpath -Wl,/application/inotify-tools-3.14/lib gcc -DHAVE_CONFIG_H -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywatch.o -MD -MP -MF .deps/inotifywatch.Tpo -c -o inotifywatch.o inotifywatch.c mv -f .deps/inotifywatch.Tpo .deps/inotifywatch.Po /bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -o inotifywatch inotifywatch.o common.o ../libinotifytools/src/libinotifytools.la libtool: link: gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotifywatch.o common.o -L/root/inotify-tools-3.14/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so -Wl,-rpath -Wl,/application/inotify-tools-3.14/lib make[2]: Entering directory `/root/inotify-tools-3.14/src‘ make[3]: Entering directory `/root/inotify-tools-3.14‘ make[3]: Leaving directory `/root/inotify-tools-3.14‘ test -z "/application/inotify-tools-3.14/bin" || /bin/mkdir -p "/application/inotify-tools-3.14/bin" /bin/sh ../libtool --mode=install /usr/bin/install -c inotifywait inotifywatch ‘/application/inotify-tools-3.14/bin‘ libtool: install: /usr/bin/install -c .libs/inotifywait /application/inotify-tools-3.14/bin/inotifywait libtool: install: /usr/bin/install -c .libs/inotifywatch /application/inotify-tools-3.14/bin/inotifywatch make[2]: Nothing to be done for `install-data-am‘. make[2]: Leaving directory `/root/inotify-tools-3.14/src‘ make[1]: Leaving directory `/root/inotify-tools-3.14/src‘ Making install in man make[1]: Entering directory `/root/inotify-tools-3.14/man‘ make[2]: Entering directory `/root/inotify-tools-3.14‘ make[2]: Leaving directory `/root/inotify-tools-3.14‘ make[2]: Entering directory `/root/inotify-tools-3.14/man‘ make[3]: Entering directory `/root/inotify-tools-3.14‘ make[3]: Leaving directory `/root/inotify-tools-3.14‘ make[2]: Nothing to be done for `install-exec-am‘. test -z "/application/inotify-tools-3.14/share/man/man1" || /bin/mkdir -p "/application/inotify-tools-3.14/share/man/man1" /usr/bin/install -c -m 644 inotifywait.1 inotifywatch.1 ‘/application/inotify-tools-3.14/share/man/man1‘ make[2]: Leaving directory `/root/inotify-tools-3.14/man‘ make[1]: Leaving directory `/root/inotify-tools-3.14/man‘ make[1]: Entering directory `/root/inotify-tools-3.14‘ make[2]: Entering directory `/root/inotify-tools-3.14‘ make[2]: Nothing to be done for `install-exec-am‘. make[2]: Nothing to be done for `install-data-am‘. make[2]: Leaving directory `/root/inotify-tools-3.14‘ make[1]: Leaving directory `/root/inotify-tools-3.14‘
4.创建软连接
[[email protected] ~]# cd /application/ [[email protected] application]# ls inotify-tools-3.14 [[email protected] application]# ln -s inotify-tools-3.14/ inotify [[email protected] application]# ls inotify inotify-tools-3.14 [[email protected] application]# cd inotify [[email protected] inotify]# ls bin include lib share
以上是关于Inotify安装的主要内容,如果未能解决你的问题,请参考以下文章