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

gscript shell failed to start #120

Open
mubix opened this issue Apr 30, 2020 · 2 comments
Open

gscript shell failed to start #120

mubix opened this issue Apr 30, 2020 · 2 comments

Comments

@mubix
Copy link

mubix commented Apr 30, 2020

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
Copy link
Author

mubix commented Apr 30, 2020

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"

@cauefcr
Copy link

cauefcr commented May 1, 2020

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

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

2 participants