botherder / kraken

Cross-platform Yara scanner written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build yara error

zhou88qiao opened this issue · comments

[rules-compiler] Compiling Yara rules...
[rules-compiler] Launching binary resource builder...
[builder] Building Linux executable...

github.com/botherder/kraken

/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/bin/ld: cannot find -ldl
/bin/ld: cannot find -lcrypto
/bin/ld: cannot find -ldl
/bin/ld: cannot find -lz
/bin/ld: cannot find -lpthread
/bin/ld: cannot find -lm
/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status

make: *** [/home/mytest/kraken-main/build/linux/kraken] Error 2

build yara static: go build --ldflags '-s -w -extldflags "-lm -static" -tags yara_static
it does not work static