lsa icon indicating copy to clipboard operation
lsa copied to clipboard

how to install

Open valgert opened this issue 4 years ago • 1 comments

Hello, I wanted to install on Vbox on Ubuntu 20.04 but ran into a problem:

root@anlz:/home/qwerty# go get github.com/binstreamio/lsa
# gopkg.in/gizak/termui.v2
/root/go/src/gopkg.in/gizak/termui.v2/render.go:107:21: error: reference to undefined identifier ‘stack.ParseDump’
  107 |    gs, err := stack.ParseDump(bytes.NewReader(debug.Stack()), os.Stderr, false)
      |                     ^
/root/go/src/gopkg.in/gizak/termui.v2/render.go:112:21: error: reference to undefined identifier ‘stack.Aggregate’
  112 |    buckets := stack.Aggregate(gs.Goroutines, stack.AnyValue)
      |                     ^
/root/go/src/gopkg.in/gizak/termui.v2/render.go:115:5: error: range clause must have array, slice, string, map, or channel type
  115 |     for _, line := range bucket.Signature.Stack.Calls {
      |     ^
/root/go/src/gopkg.in/gizak/termui.v2/render.go:135:5: error: range clause must have array, slice, string, map, or channel type
  135 |     for _, line := range bucket.Stack.Calls {
      |     ^
/root/go/src/gopkg.in/gizak/termui.v2/render.go:113:4: error: range clause must have array, slice, string, map, or channel type
  113 |    for _, bucket := range buckets {
      |    ^
/root/go/src/gopkg.in/gizak/termui.v2/render.go:113:8: error: invalid type for range clause
  113 |    for _, bucket := range buckets {
      |        ^

Please help if anyone encountered a similar problem.

valgert avatar Oct 11 '21 15:10 valgert

Near same result in my Ubuntu 18.04

go get -v github.com/binstreamio/lsa
github.com/3d0c/gmf
gopkg.in/gizak/termui.v2
# gopkg.in/gizak/termui.v2
go/src/gopkg.in/gizak/termui.v2/render.go:107:15: undefined: stack.ParseDump
go/src/gopkg.in/gizak/termui.v2/render.go:112:15: undefined: stack.Aggregate
# github.com/3d0c/gmf
go/src/github.com/3d0c/gmf/avio_go16.go:58: undefined: sync in sync.Mutex

Saentist avatar Dec 01 '21 19:12 Saentist