Installation of Gawk
First, ensure some unneeded files are not installed:
sed -i 's/extras//' Makefile.in
Prepare Gawk for compilation:
./configure --prefix=/usr
Compile the package:
make
To test the results, issue:
chown -R tester .
su tester -c "PATH=$PATH make check"
Install the package:
rm -f /usr/bin/gawk-5.3.2
make install
The meaning of the command:
- rm -f /usr/bin/gawk-5.3.2
The building system will not recreate the hard link
gawk-5.3.2 if it already exists.
Remove it to ensure that the previous hard link installed
in the section called “Gawk-5.3.2” is updated here.
The installation process already created awk
as a symlink to gawk, create its man page as a
symlink as well:
ln -sv gawk.1 /usr/share/man/man1/awk.1
If desired, install the documentation:
install -vDm644 doc/{awkforai.txt,*.{eps,pdf,jpg}} -t /usr/share/doc/gawk-5.3.2