Skip to content

linux install instructions in error #5

Open
@dkragen

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions