gscript icon indicating copy to clipboard operation
gscript copied to clipboard

gscript shell failed to start

Open mubix opened this issue 4 years ago • 2 comments

In order to reproduce:

  1. Ubuntu 20.04
  2. Installed golang
  3. go get on gscript repo
  4. cd into go/bin and run ./gscript shell
~/go/bin# ./gscript shell
/root/go/src/github.com/gen0cide/gscript/stdlib/requests/requests.go:21:2: cannot find package "github.com/Jeffail/gabs/v2" in any of:
        /usr/lib/go-1.13/src/github.com/Jeffail/gabs/v2 (from $GOROOT)
        /root/go/src/github.com/Jeffail/gabs/v2 (from $GOPATH)
/root/go/src/github.com/gen0cide/gscript/debugger/vm_functions.go:7:2: cannot find package "github.com/davecgh/go-spew/spew" in any of:
        /usr/lib/go-1.13/src/github.com/davecgh/go-spew/spew (from $GOROOT)
        /root/go/src/github.com/davecgh/go-spew/spew (from $GOPATH)
/root/go/src/github.com/gen0cide/gscript/debugger/repl.go:12:2: cannot find package "github.com/gohxs/readline" in any of:
        /usr/lib/go-1.13/src/github.com/gohxs/readline (from $GOROOT)
        /root/go/src/github.com/gohxs/readline (from $GOPATH)
/root/go/src/github.com/gen0cide/gscript/debugger/repl.go:13:2: cannot find package "github.com/mattn/go-isatty" in any of:
        /usr/lib/go-1.13/src/github.com/mattn/go-isatty (from $GOROOT)
        /root/go/src/github.com/mattn/go-isatty (from $GOPATH)
[gscript:cli] ERROR Build Dir Located At: /tmp/r8G2MdqAAfKGbSQN
exit status 1

mubix avatar Apr 30 '20 03:04 mubix

root@gscript:~/go/bin# go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.13"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.13/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build767030929=/tmp/go-build -gno-record-gcc-switches"

mubix avatar Apr 30 '20 04:04 mubix

as a quick workaround you can cd the folder it outputs, go mod init shell and go run .

cauefcr avatar May 01 '20 01:05 cauefcr