-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
Installation Instructions Incorrect / go get fails #211
Comments
|
I have found a very crude way of fixing this before a patch is made.
|
Is sloved? I hava same problem. |
Install with GoInstall Go (if you don't have it)Mac, Linux curl https://webinstall.dev/golang | bash Windows 10 curl.exe -A MS https://webinstall.dev/golang | powershell Build mkdir -p ~/github.com/mholt/
git clone https://github.com/mholt/archiver ~/github.com/mholt/archiver
pushd ~/github.com/mholt/archiver/
export CGO_ENABLED=0
go build -o arc cmd/arc/*.go Install without GoMac, Linux curl https://webinstall.dev/arc | bash Windows 10 curl.exe -A MS https://webinstall.dev/arc | powershell
|
@coolaj86 Can this be closed or is there more details to add to: https://github.com/mholt/archiver#install ? |
@Dean-Coakley Yes, this was fixed in #236 and I forgot to close it out. Thanks. |
This issue was closed but I still experience the issue when trying to use the library with Go: $ go get github.com/mholt/archiver/v3
cannot find package "github.com/mholt/archiver/v3" in any of:
/usr/local/opt/go/libexec/src/github.com/mholt/archiver/v3 (from $GOROOT)
/Users/user1/.go/src/github.com/mholt/archiver/v3 (from $GOPATH)
$ go get github.com/mholt/archiver
cannot find package "github.com/pierrec/lz4/v3" in any of:
/usr/local/opt/go/libexec/src/github.com/pierrec/lz4/v3 (from $GOROOT)
/Users/user1/.go/src/github.com/pierrec/lz4/v3 (from $GOPATH) Am I missing some step here? |
You probably need to run |
Also, you may need to upgrade to a recent version of Go or explicitly set If you are just trying to install it as a binary, you can also use the github downloads or https://webinstall.dev/arc |
Also, it looks like you may have installed Go from brew or some other package manager that gave you a modified version. I highly discourage that. I’d recommend using https://webinstall.dev/golang which uses unadulterated official tar and zip packages from golang.org, and won’t mess up /usr/local permissions like the .pkg does. If your .bashrc or .profile or .zshrc have been modified by brew you may need to manually inspect them, back them up, and remove any GO* variables that you see. |
Thank you for the help, I switched from a brew version to using the curl command and it seems to have fixed it. |
What version of the package or command are you using?
Not sure how to check. I just ran
go get github.com/mholt/archiver/v3
What are you trying to do?
Install the package and use it.
What steps did you take?
Installed go on Windows.
Ran
go get github.com/mholt/archiver/v3
What did you expect to happen, and what actually happened instead?
The package should successfully install.
This happened instead:
Doing
go get github.com/mholt/archiver
works better and throws the following error instead:Please link to any related issues, pull requests, and/or discussion
#195
The text was updated successfully, but these errors were encountered: