Comments (6)
Hello @PacoH,
Replying to your first question:
My question now is, why wasn't this part of the installation instructions as well as the suggestion that Go be installed using brew?
- We didn't encounter this problem ourselves (not having GOBIN in the PATH variable) and this is why it was not part of the documentation. Since it is a pretty common problem (as you can see we have some other users reporting the same problem) we'll add it.
- The brew formula is not maintained by us and that's why we don't mention it in our docs.
Thank you for your feedback, we'll update our docs.
Regards,
Marta
from vt-cli.
Hello @PacoH,
How did you install it? I need more details to help you troubleshoot.
Anyways, you can try the instructions provided in this issue and see if it helps -> #41 (comment)
Regards,
Marta
from vt-cli.
Hello Marta,
Thanks for the speedy reply. I followed the instructions at VirusTotal/vt-cli: VirusTotal Command Line Interface.
~ $ git clone https://github.com/VirusTotal/vt-cli
Cloning into 'vt-cli'...
remote: Enumerating objects: 1169, done.
remote: Counting objects: 100% (233/233), done.
remote: Compressing objects: 100% (130/130), done.
remote: Total 1169 (delta 125), reused 169 (delta 97), pack-reused 936
Receiving objects: 100% (1169/1169), 314.36 KiB | 1.98 MiB/s, done.
Resolving deltas: 100% (830/830), done.
~ $ cd vt-cli
vt-cli $ make install
go install -ldflags "-X github.com/VirusTotal/vt-cli/cmd.Version=" github.com/VirusTotal/vt-cli/vt
vt-cli $ vt
-bash: vt: command not found
vt-cli $ vt init
-bash: vt: command not found
Brew installed Go:
vt-cli $ go version
go version go1.20.1 darwin/amd64
I followed the instructions you linked to at help with the installation of this repository ยท Issue #41 ยท VirusTotal/vt-cli and that worked.
For the sake of others having this problem this is what worked:
root@a7197fdf3d55:/vt-cli# go env GOPATH
/root/go
root@a7197fdf3d55:/vt-cli# go env GOBIN
root@a7197fdf3d55:/vt-cli# export GOBIN=`go env GOPATH`/bin
root@a7197fdf3d55:/vt-cli# go env GOBIN
/root/go/bin
root@a7197fdf3d55:/vt-cli# ls $GOBIN
vt
root@a7197fdf3d55:/vt-cli# export PATH=$PATH:$GOBIN
root@a7197fdf3d55:/vt-cli# vt
A command-line tool for interacting with VirusTotal.
My question now is, why wasn't this part of the installation instructions as well as the suggestion that Go be installed using brew
? I run into this problem a lot with github
installations. They almost never work 'right out of the box'. It takes time to chase down the problem, and in this case I could find nothing online to help. The Darwin environment is significantly different from the other UNIces' environment, thanks to 'stupid Apple' and their agrammatical mantra 'Think different'. It would help if instructions were tested and written by an Apple user.
from vt-cli.
After all that I discovered that Macos users can install the client with brew
and avoid all the problems.
virustotal-cli โ Homebrew Formulae
brew install virustotal-cli
It even installs Bash completion for you. And it makes it easy to update.
This should be the preferred installation procedure. This is one of the few times that Mac 'makes things easier' 'for the rest of us', so we might as well embrace the rare experience.
from vt-cli.
The solution to the problem for me was to rename vt/main.go
to vt/vt.go
.
Go creates a binary with the name of the file by default.
You can simply clone the repo, rename that file, then type go install vt/vt.go
and it should take care of the rest assuming you have go installed.
from vt-cli.
You should never have to change anything like that. How did you even know what to change? The solution offered worked and the installation using brew
worked even better. If there is a brew
repo available, it is always faster, easier, and more reliable to use brew
.
from vt-cli.
Related Issues (20)
- Error downloading files by vt download HOT 2
- help with the installation of this repository HOT 10
- FreeBSD Release
- Please add zsh-completion instructions to README HOT 1
- Help with Installation. HOT 4
- [FEATURE]: add shell completions for Fish
- error - gzip: invalid header HOT 10
- How is the `behash` value calculated? HOT 1
- Unable to obtain more than 100 results per lookup HOT 2
- How to scan contents of a folder? HOT 3
- vt-cli init not saving the conf file with an a bytes-like object is required, not 'str' HOT 1
- Installation issue on macOS HOT 1
- vt version doesn't print the version number HOT 4
- Make Virustotal Downloader For Telegram Bot HOT 3
- How do I turn off the --verbose flag? HOT 7
- Flatpak build HOT 2
- Show the analysis result before scanning the file again, just like the web GUI? HOT 7
- VT CLI Download Error HOT 2
- More options for config location, e.g. XDG_CONFIG_HOME
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 vt-cli.