Skip to content

build also needs golang latest version installed #36

@ullhassurse

Description

@ullhassurse
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions