gscript
gscript copied to clipboard
gscript shell failed to start
In order to reproduce:
- Ubuntu 20.04
- Installed golang
- go get on gscript repo
- 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
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"
as a quick workaround you can cd the folder it outputs, go mod init shell and go run .