gscripts icon indicating copy to clipboard operation
gscripts copied to clipboard

Error when compiling gscript

Open jayhill365 opened this issue 8 years ago • 4 comments

Getting this error message when trying to compile a binary using gscipt

main.go:10:2: cannot find package "github.com/gen0cide/gscript/engine" in any of: /usr/local/go/src/github.com/gen0cide/gscript/engine (from $GOROOT) /Users/pwngrillz/go/src/github.com/gen0cide/gscript/engine (from $GOPATH) [GSCRIPT:compiler] 2018-20-24 10:20:16 PM (PDT) FATAL Compilation error for /var/folders/p9/hcl_yxtx1q5_4lgtrflygfnh0000gn/T/gPRhCKImrkqhkTjh/main.go

jayhill365 avatar May 25 '18 05:05 jayhill365

I believe that is what happens when you try to compile without passing in any scripts. May we see the command you are calling?

nullmonk avatar May 25 '18 10:05 nullmonk

@micahjmartin yea sure!

This is the command i'm calling;

pwngrillzs-MBP:gscript_0.0.19_darwin_amd64 pwngrillz$ ./gscript c test.gs

test.gs is really just the grab_clipboard.gs script which I found in the attacks/osx folder I just renamed it test.gs

jayhill365 avatar May 25 '18 18:05 jayhill365

@micahjmartin found out what was wrong. Fixed the issue by making sure go get was working first then I grabbed go-bindata and grabbed gscript again:

go get -u github.com/jteeuwen/go-bindata/... go get github.com/gen0cide/gscript/cmd/gscript

Now everything works just pushed a new commit check it out !

jayhill365 avatar May 25 '18 21:05 jayhill365

@jayhill365 Awesome good to hear

nullmonk avatar May 25 '18 22:05 nullmonk