Comments (7)
gcc not installed?
from go-netfilter-queue.
gcc ha been installed.
from go-netfilter-queue.
gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
from go-netfilter-queue.
use go build, not go run?
from go-netfilter-queue.
When I set GOARCH=adm64
zxx@zxx-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:~/Go/work/src/mt6d-master$ go build
pkg-config --cflags -- libnetfilter_queue
Package libnetfilter_queue was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnetfilter_queue.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libnetfilter_queue' found
pkg-config: exit status 1
zxx@zxx-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:~/Go/work/src/mt6d-master$ go run *.go
pkg-config --cflags -- libnetfilter_queue
Package libnetfilter_queue was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnetfilter_queue.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libnetfilter_queue' found
pkg-config: exit status 1
When I set GOARCH =386
zxx@zxx-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:/Go/work/src/mt6d-master$ go build/Go/work/src/mt6d-master$ go run *.go
go build github.com/AkihiroSuda/go-netfilter-queue: build constraints exclude all Go files in /home/zxx/Go/work/src/github.com/AkihiroSuda/go-netfilter-queue
zxx@zxx-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:
go build github.com/AkihiroSuda/go-netfilter-queue: build constraints exclude all Go files in /home/zxx/Go/work/src/github.com/AkihiroSuda/go-netfilter-queue
from go-netfilter-queue.
@zhaoxinxin123
Did you install libnetfilter-queue-dev
or libnetfilter_queue-devel
?
in my centos7:
$ sudo yum install -y libnetfilter_queue-devel
...
$ sudo rpm -ql libnetfilter_queue-devel
/usr/include/libnetfilter_queue
/usr/include/libnetfilter_queue/libnetfilter_queue.h
/usr/include/libnetfilter_queue/libnetfilter_queue_ipv4.h
/usr/include/libnetfilter_queue/libnetfilter_queue_ipv6.h
/usr/include/libnetfilter_queue/libnetfilter_queue_tcp.h
/usr/include/libnetfilter_queue/libnetfilter_queue_udp.h
/usr/include/libnetfilter_queue/linux_nfnetlink_queue.h
/usr/include/libnetfilter_queue/pktbuff.h
/usr/lib64/libnetfilter_queue.so
/usr/lib64/pkgconfig/libnetfilter_queue.pc
$ export PKG_CONFIG_PATH=/usr/lib64/pkgconfig/
$ go get github.com/AkihiroSuda/go-netfilter-queue
$ cd AkihiroSuda/go-netfilter-queue/
$ go build
$
in ubuntu:
Following .travis.yml, it can be installing libnetfilter-queue-dev
using apt install
or apt-get install
.
from go-netfilter-queue.
On CentOS, you should install libnetfilter_queue-devel:
yum install libnetfilter_queue-devel
This resolved my issue same with yours.
from go-netfilter-queue.
Related Issues (8)
- nfq.packets should have buffer
- redirect package to a different IP HOT 1
- unbuntu22.04 No package 'libnetfilter_queue' found
- Error when trying to compile HOT 2
- why not just use queueId as nfq.idx in function NewNFQueue HOT 1
- Dropping packets too often when measuring speed with iperf3
- call SetVerdictwithPacket the system hangup and cpu usage 100% HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-netfilter-queue.