gophish / gophish

Open-Source Phishing Toolkit
https://getgophish.com
Other
11.29k stars 2.19k forks source link

mac build linux error #2302

Closed vonjk closed 3 years ago

vonjk commented 3 years ago

Thanks for reaching out! We're happy to help resolve issues as quickly as possible.

Please use this template when creating a new issue. If you do not follow this template format, your issue may be closed without comment.

Before filing a new issue, please use the search bar at the top of the browser to search for similar issues. Also, please make sure you have read our documentation, which covers how to use Gophish.

What version of Gophish are you using?:

0.11.0 Brief description of the issue:

What are you expecting to see happen? :

What are you seeing happen?

bitbucket.org/liamstask/goose/lib/goose

../../../Go/pkg/mod/bitbucket.org/liamstask/goose@v0.0.0-20150115234039-8488cc47d90c/lib/goose/dialect.go:119:7: undefined: sqlite3.Error

If this question is related to email templates or landing pages not working as expected, please provide your template or landing page below:

Insert code here

Please provide any terminal output that may be relevant below:

Insert output here

Please provide as many steps as you can to reproduce the problem:

As long as you cross build, there will be an error

image

ericbrown30 commented 3 years ago

It seems a problem with CGO and Cross Compiling. Because SQLite is developed using C language. when using cross-compiling it may happen some of the features don't work as expected. To overcome this issue you can xgo2 for cross-compiling.

Here, is an example: xgo2 --targets=darwin/amd64 gophish

Links: xgo --> https://github.com/karalabe/xgo I have used another version which is --> https://github.com/youchainhq/xgo2