-
Notifications
You must be signed in to change notification settings - Fork 417
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
How to compile the SQL source plugin? #2986
Comments
@Maingol The .so/.json file and .yaml (if any) must be in the root of the zip file. It seems you put it in a directory named sql |
@ngjaying |
@Maingol In the zip file, did you have that sql directory in the root? We cannot tell from this screenshot. Sql.so must be in the root of the zip. |
@ngjaying |
What about attach the zip file? |
you are right,and now another mistake comes,”invalid ELF header“ |
maybe the CentOS 7 virtual machine in windows can not compile the expected file? |
If you run with docker image, you can install pre-compiled plugin, check https://ekuiper.org/docs/en/latest/operation/manager-ui/plugins_in_manager.html. If you do need to build by yourself, check https://ekuiper.org/docs/en/latest/extension/native/develop/plugins_tutorial.html Golang plugin system has very strict restriction. You need to make sure you build eKuiper and plugin with nearly the same environment including go version or even package path. |
Please paste the log |
I want to compile the SQL source plugin myself. The reference documentation is:
After modifying the source code, I executed the following command in a CentOS 7 virtual machine on Windows:
go build -trimpath --buildmode=plugin -o plugins/sources/Sql.so extensions/sources/sql/*.go
This produced
Sql.so
, which I placed in thesql
directory and then compressed into asql.zip
file. The directory structure is as follows:The .zip file uploaded successfully, but the plugin could not be created. The error message is as follows:
How to resolve it?
The text was updated successfully, but these errors were encountered: