Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux install instructions in error #5

Open
dkragen opened this issue Nov 16, 2023 · 0 comments
Open

linux install instructions in error #5

dkragen opened this issue Nov 16, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@dkragen
Copy link

dkragen commented Nov 16, 2023

<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.

@codeyourweb codeyourweb added the documentation Improvements or additions to documentation label Dec 7, 2023
@codeyourweb codeyourweb self-assigned this Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants