gawk error: can't open shared library `filefuncs' for reading
While trying the following project - https://github.com/su8/cpuorakle , I noticed that the [b]filefuncs[/b] extension did not came with the GNU version of awk.
#1 Updated by cpuorkle about 2 months ago
After downloading and compiling the latest version of gawk - https://ftp.gnu.org/gnu/gawk/gawk-4.2.0.tar.xz , exporting the following env. variable export AWKLIBPATH=$AWKLIBPATH:/usr/lib/gawk the filefuncs extension becomes available.
Unfortunately for some reason /usr/lib is not traversed, while in linux it is.
libtool: install: build-aux/install-sh -c .libs/filefuncs.so /usr/lib/gawk/filefuncs.so libtool: install: build-aux/install-sh -c .libs/filefuncs.lai /usr/lib/gawk/filefuncs.la
#2 Updated by cpuorkle about 2 months ago
Upon further investigation it seems filefuncs did came with the gawk pkg. But it still requires the evn. variable AWKLIBPATH to be exported in order the extensions path to be traversed.
pkg list gawk|grep filefuncs /usr/local/lib/gawk/filefuncs.so /usr/local/man/man3/filefuncs.3am.gz