-
Notifications
You must be signed in to change notification settings - Fork 803
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
Error in DLL compilation (Files missing?) #36
Comments
Can you please tell me the numerical version of Merlin you're using along with the build? Can you please confirm that your
You can download per-compiled versions of Merlin from the releases page. |
Hi Russel,
I dit everything like you explained, but receive the following error:
frank@ubuntu:~/merlin/src/github.com/Ne0nd0g/merlin$ echo $GOPATH
/home/frank/merlin/src/github.com/Ne0nd0g/merlin/
frank@ubuntu:~/merlin/src/github.com/Ne0nd0g/merlin$ make
export GOOS=windows;export GOARCH=amd64;go build -ldflags "-s -X main.build=f04436131f2d88204765f905395f7d404103e360" -o data/temp/v0.6.0/f04436131f2d88204765f905395f7d404103e360/merlinServer-Windows-x64.exe cmd/merlinserver/main.go
cmd/merlinserver/main.go:34:2: cannot find package "github.com/Ne0nd0g/merlin/pkg" in any of:
/usr/lib/go-1.10/src/github.com/Ne0nd0g/merlin/pkg (from $GOROOT)
/home/frank/merlin/src/github.com/Ne0nd0g/merlin/src/github.com/Ne0nd0g/merlin/pkg (from $GOPATH)
cmd/merlinserver/main.go:29:2: cannot find package "github.com/Ne0nd0g/merlin/pkg/banner" in any of:
/usr/lib/go-1.10/src/github.com/Ne0nd0g/merlin/pkg/banner (from $GOROOT)
/home/frank/merlin/src/github.com/Ne0nd0g/merlin/src/github.com/Ne0nd0g/merlin/pkg/banner (from $GOPATH)
cmd/merlinserver/main.go:33:2: cannot find package "github.com/Ne0nd0g/merlin/pkg/cli" in any of:
/usr/lib/go-1.10/src/github.com/Ne0nd0g/merlin/pkg/cli (from $GOROOT)
/home/frank/merlin/src/github.com/Ne0nd0g/merlin/src/github.com/Ne0nd0g/merlin/pkg/cli (from $GOPATH)
cmd/merlinserver/main.go:32:2: cannot find package "github.com/Ne0nd0g/merlin/pkg/core" in any of:
/usr/lib/go-1.10/src/github.com/Ne0nd0g/merlin/pkg/core (from $GOROOT)
/home/frank/merlin/src/github.com/Ne0nd0g/merlin/src/github.com/Ne0nd0g/merlin/pkg/core (from $GOPATH)
cmd/merlinserver/main.go:31:2: cannot find package "github.com/Ne0nd0g/merlin/pkg/logging" in any of:
/usr/lib/go-1.10/src/github.com/Ne0nd0g/merlin/pkg/logging (from $GOROOT)
/home/frank/merlin/src/github.com/Ne0nd0g/merlin/src/github.com/Ne0nd0g/merlin/pkg/logging (from $GOPATH)
cmd/merlinserver/main.go:30:2: cannot find package "github.com/Ne0nd0g/merlin/pkg/servers/http2" in any of:
/usr/lib/go-1.10/src/github.com/Ne0nd0g/merlin/pkg/servers/http2 (from $GOROOT)
/home/frank/merlin/src/github.com/Ne0nd0g/merlin/src/github.com/Ne0nd0g/merlin/pkg/servers/http2 (from $GOPATH)
cmd/merlinserver/main.go:26:2: cannot find package "github.com/fatih/color" in any of:
/usr/lib/go-1.10/src/github.com/fatih/color (from $GOROOT)
/home/frank/merlin/src/github.com/Ne0nd0g/merlin/src/github.com/fatih/color (from $GOPATH)
Makefile:48: recipe for target 'server-windows' failed
make: *** [server-windows] Error 1
frank@ubuntu:~/merlin/src/github.com/Ne0nd0g/merlin$ echo $GOPATH
/home/frank/merlin/src/github.com/Ne0nd0g/merlin/
… Am 16.12.2018 um 23:21 schrieb Russel Van Tuyl ***@***.***>:
Can you please tell me the numerical version of Merlin you're using along with the build?
Can you please confirm that your GOPATH directory contains this path:
/home/frank/merlin/src/github.com/Ne0nd0g/merlin ? If not, you will need to setup your environment. To do so, move into the following directory (create it if it doesn't exist) and do a git clone of the repository:
/home/frank/merlin/src/github.com/Ne0nd0g$ git clone https://github.com/Ne0nd0g/merlin
You can download per-compiled versions of Merlin from the releases page.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#36 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AqKJ9CVVMOjzERDPMT_d9mqOgsHvtIQ6ks5u5sdkgaJpZM4ZUy6Y>.
|
It looks like your GOPATH changed, it should be |
Thats it! Thanks!
… Am 17.12.2018 um 14:59 schrieb Russel Van Tuyl ***@***.***>:
It looks like your GOPATH changed, it should be /home/frank/merlin. Can you change your GOPATH and show its new value here?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#36 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AqKJ9BFXt_9AHIgcUOTPEbKtpjXH-Akaks5u56MqgaJpZM4ZUy6Y>.
|
Glad it got sorted out. If you want to chat about Merlin more, consider signing up for the BloodHound Slack and joining me in the #merlin channel. You can signup here: https://bloodhoundgang.herokuapp.com |
Prerequisite
Environment Data
Expected Behavior
compiling DLL from source
Actual Behavior
frank@ubuntu:~/merlin/data/bin/dll$ go build -buildmode=c-archive ../../../cmd/merlinagentdll/main.go
../../../cmd/merlinagentdll/main.go:28:2: cannot find package "github.com/Ne0nd0g/merlin/pkg/agent" in any of:
/usr/local/go/src/github.com/Ne0nd0g/merlin/pkg/agent (from $GOROOT)
/home/frank/merlin/src/github.com/Ne0nd0g/merlin/pkg/agent (from $GOPATH)
Steps to Reproduce Behavior
Misc Information
There is no src/github.com/Ne0nd0g directory in the repository?
The text was updated successfully, but these errors were encountered: