Get the App
SLTechnology News&Howtos  ›  Servers  › 

Problems encountered in porting Beego+go-sqlite3 Arm platform

Shulou Source: shulou.com Published: 2022-06-03 00:42:42 11月12日 Update

Use Beego+go-sqlite3 for simple blog development under windows, but after compilation, insert it into the Arm platform to run exceptions:

Compile parameter settings:

SET GOARCH=arm

SET GOOS=linux

SET GOARM=7

Go build

First of all, prompt the sqlite3 application problem, you should turn on the item CGO_ENABLED=1.

Resolve:

SET GOARCH=arm

SET GOOS=linux

SET GOARM=7

SET CGO_ENABLED=1

SET CC=arm-linux-gnueabihf-gcc

Go build

Next, the error is as follows F:\ Program Files (x86)\ GO\ pkg\ tool\ windows_amd64\ link.exe: running arm-linux-gnueabihf-gcc failed: exec: "arm-linux-gnueabihf-gcc": executable fil

E not found in PATH%

Resolve:

Install the cross-compilation tool chain under windows and add it to the system environment "PATH"

Recompile, through

Tags: Compiling platforms problems blogs parameters tools environment systems errors crossover applications development prompts runs migration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Docker NVidia vpn Huawei