GithubHelp home page GithubHelp logo

Comments (7)

AkihiroSuda avatar AkihiroSuda commented on July 3, 2024

gcc not installed?

from go-netfilter-queue.

zhaoxinxin123 avatar zhaoxinxin123 commented on July 3, 2024

gcc ha been installed.

from go-netfilter-queue.

zhaoxinxin123 avatar zhaoxinxin123 commented on July 3, 2024

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.

AkihiroSuda avatar AkihiroSuda commented on July 3, 2024

use go build, not go run?

from go-netfilter-queue.

zhaoxinxin123 avatar zhaoxinxin123 commented on July 3, 2024

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 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/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

from go-netfilter-queue.

u5surf avatar u5surf commented on July 3, 2024

@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.

iwind avatar iwind commented on July 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.