设为首页 收藏本站
查看: 366|回复: 0

[经验分享] Inotify安装

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2016-12-12 08:35:50 | 显示全部楼层 |阅读模式
1.下载Inotify工具

1
2
3
4
5
6
7
8
9
10
11
12
13
[iyunv@NFS ~]#  wget http://cloud.github.com/download ... y-tools-3.14.tar.gz
--2016-12-11 01:10:47--  http://cloud.github.com/download ... y-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/downloa ... y-tools-3.14.tar.gz [following]
--2016-12-11 01:10:49--  https://cloud.github.com/downloa ... y-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进行解压缩

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[iyunv@NFS ~]# 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
[iyunv@NFS ~]# ls
anaconda-ks.cfg  inotify-tools-3.14  inotify-tools-3.14.tar.gz  install.log  install.log.syslog
[iyunv@NFS ~]# cd inotify-tools-3.14



3.创建application并且进行编译安装

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
[iyunv@NFS inotify-tools-3.14]# mkdir /application
[iyunv@NFS 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

[iyunv@NFS 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'

[iyunv@NFS 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.创建软连接

1
2
3
4
5
6
7
8
9
10
[iyunv@NFS ~]# cd /application/
[iyunv@NFS application]# ls
inotify-tools-3.14

[iyunv@NFS application]# ln -s inotify-tools-3.14/ inotify
[iyunv@NFS application]# ls
inotify  inotify-tools-3.14
[iyunv@NFS application]# cd inotify
[iyunv@NFS inotify]# ls
bin  include  lib  share



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-312973-1-1.html 上篇帖子: centos7安装出现license information(license not accepted)解决办法 下篇帖子: Linux发行版及各发行版之间的联系与区别
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表