-
Notifications
You must be signed in to change notification settings - Fork 159
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 trying to install command line tool #15
Comments
Sorry, the generated install script was out of date. I did not notice, because I use my zeus build system to compile. You can use this until I've updated the generated one in the repo:
|
Currently working using VM so I can make checkpoints for installing. I've installed using iso file from: http://releases.ubuntu.com/18.04/
The proxy error I get is:
So I removed that line in the 'install-netcap.sh' script and tried again with success. The problem I have now is when I run from project root 'home/go/': I get a bunch of 'package not found errors'
Also when running a netcap command: net.capture, net.dump, ... result of command go env:
Did I do something wrong during the install ? Again i'm not a linux or go guy, but the netcap tool shows a lot of promise for my current research project. So any info you need I can provide with the VM checkpoints. Any help is appreciated |
Your project root is not your Gopath, instead the repository is located at 'home/go/src/github.com/dreadl0ck/netcap'. If you run the tests from there with the correct go version installed it should work.
Let me know if that helps |
Hello, I currently made a workable version of netcap (by removing the proxy line in the install-netcap.sh), I also added for net.capture, net.dump, ... so I can run it from any directory. Just for your information and others interested I provide you with the results of testing out different ways to build netcap. Build 1. The way mentioned in previous post. I can test the commands manually by going to the ~/go/bin directory and running the examples from quickstart:
I added aliases in the ~/.bashrc file using this guide: https://www.hostingadvice.com/how-to/set-command-aliases-linuxubuntudebian/ When running the test command from home/go/src/github.com/dreadl0ck/netcap i get the following output:
This is because i didn't install proxy I believe Build 2. I downloaded source code and pre-compiled binaries from: https://github.com/dreadl0ck/netcap/releases When i run the tests I get a bunch of invalid psuedo-version errors. After using the replace command in go.mod to work around these errors I ran the tests:
Some test files aren't found, maybe this has to do with the invalid psuedo versions I replaced. I hope this information helps you or other people |
Hello,
Currently i'm trying to install the netcap on a ubuntu system.
current version of ubuntu i'm running:
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
I've installed Golang using following guide:
https://www.tecmint.com/install-go-in-linux/
After running command:
$ go build -o $GOPATH/bin/netcap -i github.com/dreadl0ck/netcap/cmd/...
I receive the binaries within the directory, as expected:
$GOPATH/bin/netcap/
with the go binaries: agent capture collect dump export label proxy util
After running the shell script:
chmod u+x install-netcap.sh
./install-netcap.sh
I get the following error:
can't load package: package github.com/dreadl0ck/netcap/cmd: no Go files in /home/aaron/go/src/github.com/dreadl0ck/netcap/cmd
I'm unsure of what I did wrong
The text was updated successfully, but these errors were encountered: