botherder / kraken

Cross-platform Yara scanner written in Go
GNU General Public License v3.0
330 stars 43 forks source link

build yara error #16

Open zhou88qiao opened 3 years ago

zhou88qiao commented 3 years ago

[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

zhou88qiao commented 3 years ago

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