projectdiscovery / naabu

A fast port scanner written in go with a focus on reliability and simplicity. Designed to be used in combination with other tools for attack surface discovery in bug bounties and pentests
https://projectdiscovery.io
MIT License
4.78k stars 551 forks source link

Not able to install Naabu on Sequoia #1213

Closed JohnWongCHN closed 1 month ago

JohnWongCHN commented 1 month ago

MacOS: Sequoia 15.0 Go: 1.23.1

Try to install Naabu but got this error

...
golang.org/x/net/ipv4
golang.org/x/net/ipv6
github.com/google/gopacket/layers
golang.org/x/net/icmp
github.com/projectdiscovery/naabu/pkg/scan
github.com/projectdiscovery/naabu/pkg/runner
github.com/projectdiscovery/naabu/cmd/naabu
# github.com/projectdiscovery/naabu/cmd/naabu
link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg
akroidankur commented 1 month ago

┌──(akroid㉿akroid)-[~] └─$ go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest github.com/google/gopacket/pcap

github.com/google/gopacket/pcap

go/pkg/mod/github.com/google/gopacket@v1.1.19/pcap/pcap_unix.go:34:10: fatal error: pcap.h: No such file or directory 34 | #include | ^~~~ compilation terminated.

not able to installl

dogancanbakir commented 1 month ago

@JohnWongCHN Could you retry with golang 1.21?

@akroidankur see https://github.com/projectdiscovery/naabu?tab=readme-ov-file#prerequisite

JohnWongCHN commented 1 month ago

I used golang 1.22.8 to successfully install Naabu, but after installation, I realized that I had used the wrong documentation. I had installed the V1 version of Naabu.

There is no problem to use golang 1.23.2 on Sequoia to install Naabu V2. So close this issue🙂