Skip to content
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

build also needs golang latest version installed #36

Open
ullhassurse opened this issue Sep 25, 2023 · 0 comments
Open

build also needs golang latest version installed #36

ullhassurse opened this issue Sep 25, 2023 · 0 comments

Comments

@ullhassurse
Copy link

  • Points to be note in Prerequisite section.
  • While following Prerequisite, we need to ensure golnag is installed also. That is also latest version.
#  make build -C tools/lvctl/
make: Entering directory '/root/logsviewer/tools/lvctl'
mkdir -p bin
go build -o bin/lvctl ./cmd
make: go: Command not found
make: *** [Makefile:5: build] Error 127
make: Leaving directory '/root/logsviewer/tools/lvctl'
  • again, install latest version else it will be an issue. I tried in RHEL 8.6
note: module requires Go 1.18
# k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:62:38: syntax error: unexpected [ after top level declaration
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:63:40: syntax error: unexpected [ after top level declaration
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:64:28: syntax error: unexpected comma, expecting ]
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:81:36: syntax error: unexpected [ after top level declaration
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:82:38: syntax error: unexpected [ after top level declaration
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:83:27: syntax error: unexpected comma, expecting ]
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:85:50: method has multiple receivers
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:85:55: syntax error: unexpected newline, expecting (
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:86:14: syntax error: unexpected newline, expecting comma or )
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:87:1: syntax error: unexpected } after top level declaration
vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/arshal_funcs.go:87:1: too many errors
note: module requires Go 1.19
# k8s.io/apimachinery/pkg/util/wait
vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:138:35: undefined: any
note: module requires Go 1.20
# k8s.io/kube-openapi/pkg/cached
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:63:15: syntax error: unexpected any, expecting ]
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:70:17: syntax error: unexpected [, expecting (
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:78:18: syntax error: unexpected [, expecting (
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:85:15: syntax error: unexpected [, expecting comma or )
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:97:13: syntax error: unexpected any, expecting ]
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:104:15: syntax error: unexpected comparable, expecting ]
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:105:32: syntax error: unexpected [, expecting comma or )
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:106:2: syntax error: non-declaration statement outside function body
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:128:15: syntax error: unexpected [, expecting (
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:135:16: syntax error: unexpected [, expecting comma or )
vendor/k8s.io/kube-openapi/pkg/cached/cache.go:135:16: too many errors
note: module requires Go 1.19
make: *** [Makefile:5: build] Error 2
make: Leaving directory '/root/logsviewer/tools/lvctl'


# rpm -qa | grep golang
golang-1.17.12-1.module+el8.6.0+16014+a372c00b.x86_64
golang-bin-1.17.12-1.module+el8.6.0+16014+a372c00b.x86_64
golang-src-1.17.12-1.module+el8.6.0+16014+a372c00b.noarch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant