Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Problems encountered in porting Beego+go-sqlite3 Arm platform

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report