Skip to content
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

command not found #13

Closed
krishnakdkce opened this issue Aug 20, 2019 · 7 comments
Closed

command not found #13

krishnakdkce opened this issue Aug 20, 2019 · 7 comments

Comments

@krishnakdkce
Copy link

after build all app
$ net.capture -iface eth0
command not found

@dreadl0ck
Copy link
Owner

How did you compile? The executables are not in your $PATH

@krishnakdkce
Copy link
Author

go/src/github.com/dreadl0ck # GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o netcap-linux -i github.com/dreadl0ck/netcap/cmd
can't load package: package github.com/dreadl0ck/netcap/cmd: no Go files in /go/src/github.com/dreadl0ck/netcap/cmd

@krishnakdkce
Copy link
Author

but i am using ubuntu

@dreadl0ck
Copy link
Owner

Try this:

#!/bin/bash
# generated by ZEUS v_master
# Timestamp: [Mon Jun 17 15:27:30 2019]
 
 
VERSION="0.4.0"
go build -ldflags "-X github.com/dreadl0ck/netcap.Version=v${VERSION}" -o $(go env GOPATH)/bin/net.capture -i github.com/dreadl0ck/netcap/cmd/capture
go build -ldflags "-X github.com/dreadl0ck/netcap.Version=v${VERSION}" -o $(go env GOPATH)/bin/net.label -i github.com/dreadl0ck/netcap/cmd/label
go build -ldflags "-X github.com/dreadl0ck/netcap.Version=v${VERSION}" -o $(go env GOPATH)/bin/net.collect -i github.com/dreadl0ck/netcap/cmd/collect
go build -ldflags "-X github.com/dreadl0ck/netcap.Version=v${VERSION}" -o $(go env GOPATH)/bin/net.agent -i github.com/dreadl0ck/netcap/cmd/agent
go build -ldflags "-X github.com/dreadl0ck/netcap.Version=v${VERSION}" -o $(go env GOPATH)/bin/net.proxy -i github.com/dreadl0ck/netcap/cmd/proxy
go build -ldflags "-X github.com/dreadl0ck/netcap.Version=v${VERSION}" -o $(go env GOPATH)/bin/net.export -i github.com/dreadl0ck/netcap/cmd/export
go build -ldflags "-X github.com/dreadl0ck/netcap.Version=v${VERSION}" -o $(go env GOPATH)/bin/net.dump -i github.com/dreadl0ck/netcap/cmd/dump
go build -ldflags "-X github.com/dreadl0ck/netcap.Version=v${VERSION}" -o $(go env GOPATH)/bin/net.util -i github.com/dreadl0ck/netcap/cmd/util
echo done
@dreadl0ck
Copy link
Owner

The 0.4 release contains precompiled binaries for linux by the way: https://github.com/dreadl0ck/netcap/releases/tag/v0.4.0

@krishnakdkce
Copy link
Author

thanks for quick reply,let me do that

@krishnakdkce
Copy link
Author

thanks it wok well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants