How To Install fswatch 1.9.3 On CentOS 7.6
How To Install fswatch 1.9.3 On CentOS 7.6
fswatch is a free, open-source cross-platform file change monitor utility that notifies us when the contents of the specified files or directories are changed.
This tutorial covers the method to install fswatch 1.9.3 version on centos 7.6
Download link: Click here to download
Installing fswatch
Install the appropriate dependencies and compilers to configure the fswatch binary package.
[[email protected] ~]# yum groupinstall "Development Tools" -y
Loaded plugins: fastestmirror, langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
* base: mirror.dhakacom.com
* extras: mirror.vodien.com
* updates: mirror.dhakacom.com
Resolving Dependencies
--> Running transaction check.
.
.
.
.
Dependency Installed:
apr.x86_64 0:1.4.8-5.el7 apr-util.x86_64 0:1.5.2-6.el7 cpp.x86_64 0:4.8.5-39.el7
dwz.x86_64 0:0.11-3.el7 gettext-common-devel.noarch 0:0.19.8.1-2.el7 gettext-devel.x86_64 0:0.19.8.1-2.el7
glibc-devel.x86_64 0:2.17-292.el7 glibc-headers.x86_64 0:2.17-292.el7 kernel-debug-devel.x86_64 0:3.10.0-1062.4.1.el7
kernel-headers.x86_64 0:3.10.0-1062.4.1.el7 libgfortran.x86_64 0:4.8.5-39.el7 libquadmath.x86_64 0:4.8.5-39.el7
libquadmath-devel.x86_64 0:4.8.5-39.el7 libstdc++-devel.x86_64 0:4.8.5-39.el7 m4.x86_64 0:1.4.16-10.el7
perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-Error.noarch 1:0.17020-2.el7 perl-Git.noarch 0:1.8.3.1-20.el7
perl-TermReadKey.x86_64 0:2.30-20.el7 perl-Test-Harness.noarch 0:3.28-3.el7 perl-Thread-Queue.noarch 0:3.02-2.el7
perl-XML-Parser.x86_64 0:2.41-10.el7 perl-srpm-macros.noarch 0:1-8.el7 python-srpm-macros.noarch 0:3-32.el7
subversion-libs.x86_64 0:1.7.14-14.el7 systemtap-client.x86_64 0:4.0-10.el7_7 systemtap-devel.x86_64 0:4.0-10.el7_7
Dependency Updated:
glibc.x86_64 0:2.17-292.el7 glibc-common.x86_64 0:2.17-292.el7 libgcc.x86_64 0:4.8.5-39.el7
libgomp.x86_64 0:4.8.5-39.el7 libstdc++.x86_64 0:4.8.5-39.el7 rpm.x86_64 0:4.11.3-40.el7
rpm-build-libs.x86_64 0:4.11.3-40.el7 rpm-libs.x86_64 0:4.11.3-40.el7 rpm-python.x86_64 0:4.11.3-40.el7
systemtap-runtime.x86_64 0:4.0-10.el7_7
Complete!
Download the latest binary package of fswatch.
[[email protected] ~]# wget https://github.com/emcrisostomo/fswatch/releases/download/1.9.3/fswatch-1.9.3.tar.gz
--2019-10-23 14:13:43-- https://github.com/emcrisostomo/fswatch/releases/download/1.9.3/fswatch-1.9.3.tar.gz
Resolving github.com (github.com)... 13.234.210.38
Connecting to github.com (github.com)|13.234.210.38|:443... connected.
HTTP request sent, awaiting response... 302 Found
--2019-10-23 14:13:44-- https://github-production-release-asset-2e65be.s3.amazonaws.com/236537/2f876ba4-510a-11e6-9c0c-23d688817362?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191023%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191023T031345Z&X-Amz-Expires=300&X-Amz-Signature=83ce24f22c24ba1e97c4050b124cf53955da34f529562567ec35ed2635c5db34&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dfswatch-1.9.3.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.20.107
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.20.107|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1243495 (1.2M) [application/octet-stream]
Saving to: ‘fswatch-1.9.3.tar.gz’
100%[===================================================================================================>] 1,243,495 561KB/s in 2.2s
2019-10-23 14:13:47 (561 KB/s) - ‘fswatch-1.9.3.tar.gz’ saved [1243495/1243495]
Verify the fswatch tar file in the current working directory.
[[email protected] ~]# ls -la | grep fswatch-1.9.3.tar.gz
-rw-r--r-- 1 root root 1243495 May 23 2017 fswatch-1.9.3.tar.gz
Extract the tar file of fswatch
[[email protected] ~]# tar xzf fswatch-1.9.3.tar.gz
List the extracted directory as follows
[[email protected] ~]# ls -la | grep fswatch
-rwxr-xr-x 1 501 games 311 Jul 23 2016 ._fswatch-1.9.3
drwxr-xr-x 9 501 games 4096 Jul 23 2016 fswatch-1.9.3
-rw-r--r-- 1 root root 1243495 May 23 2017 fswatch-1.9.3.tar.gz
Change the directory to fswatch to install the fswatch.
[[email protected] ~]# cd fswatch-1.9.3/
List the contents in the fswatch directory
[[email protected] fswatch-1.9.3]# ls -la
total 1212
drwxr-xr-x 9 501 games 4096 Jul 23 2016 .
dr-xr-x---. 15 root root 4096 Oct 23 14:14 ..
-rw-r--r-- 1 501 games 280 Jul 23 2016 ._ABOUT-NLS
-rw-r--r-- 1 501 games 93787 Jul 23 2016 ABOUT-NLS
-rw-r--r-- 1 501 games 280 Jul 23 2016 ._aclocal.m4
-rw-r--r-- 1 501 games 44727 Jul 23 2016 aclocal.m4
-rw-r--r-- 1 501 games 147 Apr 16 2016 AUTHORS
-rw-r--r-- 1 501 games 280 Apr 16 2016 ._AUTHORS
-rw-r--r-- 1 501 games 45919 Jul 23 2016 ChangeLog
-rw-r--r-- 1 501 games 280 Jul 23 2016 ._ChangeLog
drwxr-xr-x 2 501 games 4096 Oct 23 14:14 config
-rwxr-xr-x 1 501 games 311 Jul 23 2016 ._config
-rw-r--r-- 1 501 games 280 Jul 23 2016 ._config.h.in
-rw-r--r-- 1 501 games 2931 Jul 23 2016 config.h.in
.
.
.
.
.
.
-rw-r--r-- 1 501 games 4741 Apr 16 2016 README.osx
-rw-r--r-- 1 501 games 280 Apr 16 2016 ._README.smartos
-rw-r--r-- 1 501 games 3107 Apr 16 2016 README.smartos
-rw-r--r-- 1 501 games 280 Apr 16 2016 ._README.solaris
-rw-r--r-- 1 501 games 2127 Apr 16 2016 README.solaris
-rw-r--r-- 1 501 games 280 Apr 16 2016 ._README.windows
-rw-r--r-- 1 501 games 2839 Apr 16 2016 README.windows
drwxr-xr-x 2 501 games 202 Jul 23 2016 src
-rwxr-xr-x 1 501 games 311 Jul 23 2016 ._src
Verify the compilers and dependency packages which are essential for the fswatch installation.
[[email protected] fswatch-1.9.3]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
.
.
.
.
.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen/Makefile
config.status: creating src/Makefile
config.status: creating src/libfswatch/Makefile
config.status: creating po/Makefile.in
config.status: creating doc/doxygen/Doxyfile
config.status: creating libfswatch_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
Build the software after the successful verification of dependencies and compilers.
[[email protected] fswatch-1.9.3]# make
make all-recursive
make[1]: Entering directory `/root/fswatch-1.9.3'
Making all in libfswatch
make[2]: Entering directory `/root/fswatch-1.9.3/libfswatch'
make all-recursive
make[3]: Entering directory `/root/fswatch-1.9.3/libfswatch'
Making all in src
make[4]: Entering directory `/root/fswatch-1.9.3/libfswatch/src'
Making all in libfswatch
make[5]: Entering directory `/root/fswatch-1.9.3/libfswatch/src/libfswatch`
.
.
.
.
Making all in doc
make[2]: Entering directory `/root/fswatch-1.9.3/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/fswatch-1.9.3/doc'
make[2]: Entering directory `/root/fswatch-1.9.3'
make[2]: Leaving directory `/root/fswatch-1.9.3'
make[1]: Leaving directory `/root/fswatch-1.9.3'
Now intsall the built utility using the following command.
[[email protected] fswatch-1.9.3]# make install
Making install in libfswatch
make[1]: Entering directory `/root/fswatch-1.9.3/libfswatch'
Making install in src
make[2]: Entering directory `/root/fswatch-1.9.3/libfswatch/src'
Making install in libfswatch
.
.
.
.
.
/usr/bin/mkdir -p '/usr/local/share/doc/fswatch'
/usr/bin/install -c -m 644 README.bsd README.codestyle README.freebsd README.gnu-build-system README.illumos README.md README.linux README.osx README.smartos README.solaris README.windows ABOUT-NLS AUTHORS CONTRIBUTING.md COPYING LICENSE NEWS '/usr/local/share/doc/fswatch'
/usr/bin/mkdir -p '/usr/local/share/man/man7'
/usr/bin/install -c -m 644 man/fswatch.7 '/usr/local/share/man/man7'
make[2]: Leaving directory `/root/fswatch-1.9.3'
make[1]: Leaving directory `/root/fswatch-1.9.3'
Create A necessary link to the shared libraries so that fswatch can be used globally.
[[email protected] fswatch-1.9.3]# ldconfig
Check the version of fswatch command as follows.
[[email protected] ~]# fswatch --version
fswatch 1.9.3
Copyright (C) 2013-2016 Enrico M. Crisostomo <[email protected]>.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Enrico M. Crisostomo.
With this, successful Installation of fswatch 1.9.3 on CentOS 7.6 comes to end.
Comments ( 0 )
No comments available