$ sudo dnf install tcl
$ ls -l /bin/tclsh
lrwxrwxrwx. 1 root root 8 Aug 12 2018 /bin/tclsh -> tclsh8.6
.
$ git clone https://github.com/flightaware/piaware.git
$ cd piaware
$ sudo make
'make install' as root to install client package and program
$ sudo make install
make -C package install
make[1]: Entering directory '/home/abcd/piaware/package'
echo 'pkg_mkIndex .' | /bin/tclsh
install -d /usr/lib/piaware_packages /usr/lib/piaware_packages/ca
install fa_piaware_config.tcl fa_adept_client.tcl fa_sudo.tcl fa_services.tcl fa_sysinfo.tcl fa_gps.tcl piaware.tcl tryfinallyshim.tcl egm96.tcl egm96geoid.tcl pkgIndex.tcl /usr/lib/piaware_packages
install ca/*.pem /usr/lib/piaware_packages/ca
c_rehash /usr/lib/piaware_packages/ca
make[1]: c_rehash: Command not found
make[1]: *** [Makefile:17: install] Error 127
make[1]: Leaving directory '/home/abcd/piaware/package'
make: *** [Makefile:18: install] Error 2
EDIT-1
Done this:
$ sudo find /usr -iname c_rehash
## Above command outputs nothing
$ sudo dnf install openssl
Package openssl-1:1.1.1c-2.el8.x86_64 is already installed.
$ sudo dnf install openssl-perl
$ sudo find /usr -iname c_rehash
/usr/bin/c_rehash
Tried make install
again
FAILED due to mising tcllauncher
(not available in RHEL repository)
$ sudo make install
make -C package install
make[1]: Entering directory '/home/abcd/piaware/package'
install -d /usr/lib/piaware_packages /usr/lib/piaware_packages/ca
install fa_piaware_config.tcl fa_adept_client.tcl fa_sudo.tcl fa_services.tcl fa_sysinfo.tcl fa_gps.tcl piaware.tcl tryfinallyshim.tcl egm96.tcl egm96geoid.tcl pkgIndex.tcl /usr/lib/piaware_packages
install ca/*.pem /usr/lib/piaware_packages/ca
c_rehash /usr/lib/piaware_packages/ca
Doing /usr/lib/piaware_packages/ca
make -C helpers install
make[2]: Entering directory '/home/abcd/piaware/package/helpers'
cc -Wall -Werror -O -o droproot droproot.c
install -d /usr/lib/piaware_packages/helpers
install -m 0755 update-piaware-config droproot /usr/lib/piaware_packages/helpers
make[2]: Leaving directory '/home/abcd/piaware/package/helpers'
make -C fa_adept_codec install
make[2]: Entering directory '/home/abcd/piaware/package/fa_adept_codec'
echo 'pkg_mkIndex . fa_adept_codec.tcl fa_adept_schema.tcl none.codec adept_1.x.codec adept_2.1.codec adept_2.2.codec' | /bin/tclsh
install -d /usr/lib/fa_adept_codec
install fa_adept_codec.tcl fa_adept_schema.tcl none.codec adept_1.x.codec adept_2.1.codec adept_2.2.codec pkgIndex.tcl /usr/lib/fa_adept_codec
make[2]: Leaving directory '/home/abcd/piaware/package/fa_adept_codec'
make[1]: Leaving directory '/home/abcd/piaware/package'
make -C programs/piaware install
make[1]: Entering directory '/home/abcd/piaware/programs/piaware'
which: no tcllauncher in (/sbin:/bin:/usr/sbin:/usr/bin)
install -d /usr/bin /usr/lib/piaware
install -m 0755 /usr/bin/piaware
install: missing destination file operand after '/usr/bin/piaware'
Try 'install --help' for more information.
make[1]: *** [Makefile:15: install] Error 1
make[1]: Leaving directory '/home/abcd/piaware/programs/piaware'
make: *** [Makefile:19: install] Error 2
.
$ sudo dnf install tcllauncher
Updating Subscription Management repositories.
Last metadata expiration check: 0:08:47 ago on Sun 02 Feb 2020 02:17:22 PM EST.
No match for argument: tcllauncher
Error: Unable to find a match: tcllauncher
EDIT-2
Built and installed tcllauncher
# I have installed tcl already
$ sudo dnf install tcl-devel autoconf
$ git clone https://github.com/flightaware/tcllauncher.git
$ cd tcllauncher
$ autoconf -f
$ ./configure
$ make
$ sudo make install
$ sudo find / -name tcllauncher
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/bin/tcllauncher
/home/abcd/tcllauncher
/home/abcd/tcllauncher/tcllauncher
.
Tried make install
again
$ cd piaware
$ sudo make install
make -C package install
make[1]: Entering directory '/home/abcd/piaware/package'
install -d /usr/lib/piaware_packages /usr/lib/piaware_packages/ca
install fa_piaware_config.tcl fa_adept_client.tcl fa_sudo.tcl fa_services.tcl fa_sysinfo.tcl fa_gps.tcl piaware.tcl tryfinallyshim.tcl egm96.tcl egm96geoid.tcl pkgIndex.tcl /usr/lib/piaware_packages
install ca/*.pem /usr/lib/piaware_packages/ca
c_rehash /usr/lib/piaware_packages/ca
Doing /usr/lib/piaware_packages/ca
make -C helpers install
make[2]: Entering directory '/home/abcd/piaware/package/helpers'
install -d /usr/lib/piaware_packages/helpers
install -m 0755 update-piaware-config droproot /usr/lib/piaware_packages/helpers
make[2]: Leaving directory '/home/abcd/piaware/package/helpers'
make -C fa_adept_codec install
make[2]: Entering directory '/home/abcd/piaware/package/fa_adept_codec'
install -d /usr/lib/fa_adept_codec
install fa_adept_codec.tcl fa_adept_schema.tcl none.codec adept_1.x.codec adept_2.1.codec adept_2.2.codec pkgIndex.tcl /usr/lib/fa_adept_codec
make[2]: Leaving directory '/home/abcd/piaware/package/fa_adept_codec'
make[1]: Leaving directory '/home/abcd/piaware/package'
make -C programs/piaware install
make[1]: Entering directory '/home/abcd/piaware/programs/piaware'
install -d /usr/bin /usr/lib/piaware
install -m 0755 /bin/tcllauncher /usr/bin/piaware
install *.tcl /usr/lib/piaware
make -C helpers install
make[2]: Entering directory '/home/abcd/piaware/programs/piaware/helpers'
install -d /usr/lib/piaware/helpers
install -m 0755 run-apt-get /usr/lib/piaware/helpers
install -m 0644 flightaware-archive-keyring.gpg /usr/lib/piaware/helpers
make[2]: Leaving directory '/home/abcd/piaware/programs/piaware/helpers'
make[1]: Leaving directory '/home/abcd/piaware/programs/piaware'
make -C programs/piaware-config install
make[1]: Entering directory '/home/abcd/piaware/programs/piaware-config'
install -d /usr/bin /usr/lib/piaware-config
install -m 0755 /bin/tcllauncher /usr/bin/piaware-config
install *.tcl /usr/lib/piaware-config
make[1]: Leaving directory '/home/abcd/piaware/programs/piaware-config'
make -C programs/piaware-status install
make[1]: Entering directory '/home/abcd/piaware/programs/piaware-status'
install -d /usr/bin /usr/lib/piaware-status
install -m 0755 /bin/tcllauncher /usr/bin/piaware-status
install *.tcl /usr/lib/piaware-status
make[1]: Leaving directory '/home/abcd/piaware/programs/piaware-status'
make -C programs/pirehose install
make[1]: Entering directory '/home/abcd/piaware/programs/pirehose'
install -d /usr/bin /usr/lib/pirehose
install -m 0755 /bin/tcllauncher /usr/bin/pirehose
install *.tcl /usr/lib/pirehose
install -m 0755 *.sh /usr/lib/pirehose
make[1]: Leaving directory '/home/abcd/piaware/programs/pirehose'
make -C doc install
make[1]: Entering directory '/home/abcd/piaware/doc'
install -d /usr/share/man/man1
install faup1090.1 piaware.1 piaware-config.1 piaware-status.1 /usr/share/man/man1
make[1]: Leaving directory '/home/abcd/piaware/doc'
make -C scripts install
make[1]: Entering directory '/home/abcd/piaware/scripts'
install -d /etc/init.d
install -m 0755 piaware-rc-script /etc/init.d/piaware
install -d /etc/systemd/system
install piaware.service /etc/systemd/system/piaware.service
install generate-pirehose-cert.service /etc/systemd/system/generate-pirehose-cert.service
make[1]: Leaving directory '/home/abcd/piaware/scripts'
make -C etc install
make[1]: Entering directory '/home/abcd/piaware/etc'
Not installing sudoers file (set INSTALL_SUDOERS=1 to enable)
make[1]: Leaving directory '/home/abcd/piaware/etc'
.
Checked
$ sudo find / -name piaware
find: ‘/run/user/1000/gvfs’: Permission denied
/etc/rc.d/init.d/piaware
/usr/bin/piaware
/usr/lib/piaware
/home/abcd/piaware
/home/abcd/piaware/programs/piaware
.
$ piaware
application-specific initialization failed: can't find package Tcllauncher exactly 1.10
can't find package Tclx
while executing
"package require Tclx"
(file "/usr/lib/Tcllauncher1.10/tcllauncher.tcl" line 5)
EDIT-3
Built & Installed tclx
$ git clone https://github.com/flightaware/tclx.git
$ cd tclx
$ ./configure
$ sudo make
$ sudo make install
## Checked
$ sudo find / -name tclx*
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/lib/tclx8.6
/usr/lib/tclx8.6/tclx.tcl
/home/abcd/tclx
/home/abcd/tclx/library/tclx.tcl
/home/abcd/tclx/win/tclx.rc
Piaware still fails, wants Tcllauncher1.10
.
Next I re-built and re-installed tcllauncher after giving this command
$ cd tcllauncher
$ git checkout v1.10