Closed sozialwelten closed 10 months ago
It could be that your $GOPATH/bin
is not part of your $PATH
variable. You could try to run the app in the console with $GOPATH/bin/madonctl
Thank you for your quick reply and help.
I have added the following line to my /home/user/.profile as well as to /etc/profile
export PATH=$PATH:/usr/local/go/bin
"which go" seems to correctly show me
/usr/local/go/bin/go
However, I was able to get madonctl running by simply using the prebuild binary. So I think this can be closed.
I manually installed go version go1.21.4 linux/amd64 on a newly installed debian 12 machine.
After typing in the installation command "go install github.com/McKael/madonctl@latest" these lines appear:
go: finding module for package github.com/spf13/cobra go: finding module for package github.com/mattn/go-isatty go: finding module for package github.com/McKael/madon go: finding module for package github.com/pkg/errors go: finding module for package github.com/spf13/pflag go: finding module for package github.com/spf13/viper go: finding module for package github.com/ghodss/yaml go: finding module for package github.com/kr/text go: finding module for package golang.org/x/net/html go: found github.com/McKael/madon in github.com/McKael/madon v2.3.0+incompatible go: found github.com/mattn/go-isatty in github.com/mattn/go-isatty v0.0.20 go: found github.com/pkg/errors in github.com/pkg/errors v0.9.1 go: found github.com/spf13/cobra in github.com/spf13/cobra v1.8.0 go: found github.com/spf13/pflag in github.com/spf13/pflag v1.0.5 go: found github.com/spf13/viper in github.com/spf13/viper v1.17.0 go: found github.com/ghodss/yaml in github.com/ghodss/yaml v1.0.0 go: found github.com/kr/text in github.com/kr/text v0.2.0 go: found golang.org/x/net/html in golang.org/x/net v0.18.0 go: finding module for package gopkg.in/yaml.v2 go: finding module for package github.com/gorilla/websocket go: finding module for package github.com/sendgrid/rest go: found github.com/gorilla/websocket in github.com/gorilla/websocket v1.5.1 go: found github.com/sendgrid/rest in github.com/sendgrid/rest v2.6.9+incompatible go: found gopkg.in/yaml.v2 in gopkg.in/yaml.v2 v2.4.0
After that, when typing in madonctl in the console, bash responds with "command not found".
Any hints are appreciated, Thank you.