I want to generate sha512
key for a file, When I looked through internet I found that c4
can help me to do that thing and when I open it's github repository I am not ablke to found how can I run the cmd/c4
in my ubuntu terminal. I have installed the go
in my system and when I clone this repo
https://github.com/Avalanche-io/c4.git
And went to path cmd/c4
there is no make
file present except five go
files which are
flags.go
id.go
main.go
output.go
walker.go
I am not able to implement thiscmd
version ofc4
in myubuntu
system. Please help. As one of the answer has told me to run this commandgo get github.com/Avalanche-io/c4/cmd/c4
I have done this it not producing any error but as written in the answernow you can use c4 as command
but it's not happening. When I usec4
ubuntu sayscommand c4 not recognized
. So now I just clone the givenrepo
in the pc and then run the commandgo get *
so inside therepo
so it was giving following error.
package CODE_OF_CONDUCT.md: unrecognized import path "CODE_OF_CONDUCT.md" (https fetch: Get https://CODE_OF_CONDUCT.md/?go-get=1: dial tcp: lookup CODE_OF_CONDUCT.md: no such host)
package CONTRIBUTORS: unrecognized import path "CONTRIBUTORS" (import path does not begin with hostname)
package db: unrecognized import path "db" (import path does not begin with hostname)
package doc.go: unrecognized import path "doc.go" (https fetch: Get https://doc.go/?go-get=1: dial tcp: lookup doc.go: no such host)
package id: unrecognized import path "id" (import path does not begin with hostname)
package id.go: unrecognized import path "id.go" (https fetch: Get https://id.go/?go-get=1: dial tcp: lookup id.go: no such host)
package id_test.go: unrecognized import path "id_test.go" (https fetch: Get https://id_test.go/?go-get=1: dial tcp: lookup id_test.go: no such host)
package internals_test.go: unrecognized import path "internals_test.go" (https fetch: Get https://internals_test.go/?go-get=1: dial tcp: lookup internals_test.go: no such host)
package LICENSE: unrecognized import path "LICENSE" (import path does not begin with hostname)
package manifest: unrecognized import path "manifest" (import path does not begin with hostname)
package README.md: unrecognized import path "README.md" (parse https://README.md/?go-get=1: no go-import meta tags ())
package store: unrecognized import path "store" (import path does not begin with hostname)
package tree.go: unrecognized import path "tree.go" (https fetch: Get https://tree.go/?go-get=1: dial tcp: lookup tree.go: no such host)
package treeslice_bench_test.go: unrecognized import path "treeslice_bench_test.go" (https fetch: Get https://treeslice_bench_test.go/?go-get=1: dial tcp: lookup treeslice_bench_test.go: no such host)
package tree_test.go: unrecognized import path "tree_test.go" (https fetch: Get https://tree_test.go/?go-get=1: dial tcp: lookup tree_test.go: no such host)
package util: unrecognized import path "util" (import path does not begin with hostname)
To install go compilable commands, you just go get them:
This will produce the "c4" binary in your GOPATH/bin.
If you did not configure this, or add it to your PATH variable, you can run it as:
Otherwise it's in your path, and you can just run it as "c4".
For a guide on how to configure paths related to Golang, take a look here: How do I SET the GOPATH environment variable on Ubuntu? What file must I edit?