Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Error while installing naabu, "go/pkg/mod/github.com/gopacket/[email protected]/pcap/pcap_unix.go:35:10: fatal error: pcap.h: No such file or directory" #1376

Closed
graknlabs opened this issue Feb 6, 2025 · 1 comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@graknlabs
Copy link

go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
github.com/gopacket/gopacket/pcap
github.com/gopacket/gopacket/pcap
go/pkg/mod/github.com/gopacket/[email protected]/pcap/pcap_unix.go:35:10: fatal error: pcap.h: No such file or directory
35 | #include <pcap.h>
| ^~~~~~~~
compilation terminated.

@graknlabs graknlabs added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Feb 6, 2025
@graknlabs
Copy link
Author

go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest github.com/gopacket/gopacket/pcap github.com/gopacket/gopacket/pcap go/pkg/mod/github.com/gopacket/[email protected]/pcap/pcap_unix.go:35:10: fatal error: pcap.h: No such file or directory 35 | #include <pcap.h> | ^~~~~~~~ compilation terminated.

The error is regarding the libpcap development libraries, I manually installed libpcap
sudo apt install libpcap-dev . It worked 👍

@projectdiscovery projectdiscovery locked and limited conversation to collaborators Feb 6, 2025
@Mzack9999 Mzack9999 converted this issue into discussion #1377 Feb 6, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

1 participant