Description
<1> Under fedora 38, there is no directory or file called libyara/.libs. When I installed yara under /usr/local/sbin/, the libraries were installed in /usr/local/lib:
/usr/local/lib/libyara.a
/usr/local/lib/libyara.la
/usr/local/lib/libyara.so
/usr/local/lib/libyara.so.10 #symbolic link pointing to libyara.so.10.0.0
/usr/local/lib/libyara.so.10.0.0
Further, yara libraries need to be updated as custom paths in /etc/ld.so.conf.d as well:
#yara-x86_64.conf
/usr/local/lib
Then, as root ldconfig
<2> Without the addition of the yara ld.so configuration file, using go1.20.4, even after pointing the LDFLAGS to this directory (export CGO_LDFLAGS="-L/usr/local/lib -lyara"
),
though the build went through (as via go build -tags yara_static -a -ldflags '-s -w' .
), trying to run fastfinder resulted in error:
fastfinder: error while loading shared libraries: libyara.so.10: cannot open shared object file: No such file or directory
It might be good to include the above library adjustments in the linux directions.
Activity