Could you please help me compile gitea to 32-bit windows system by make? #5627

Closed
opened 2025-11-02 06:31:21 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @Zoranner on GitHub (Jun 24, 2020).

  • Gitea version (or commit ref): 1.12.1
  • Git version: 2.27.0
  • Operating system: Windows 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

As the title says: Could you please help me compile gitea to 32-bit windows system by make? Thank you very much.

Screenshots

Originally created by @Zoranner on GitHub (Jun 24, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.12.1 - Git version: 2.27.0 - Operating system: Windows 10 - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description As the title says: Could you please help me compile gitea to 32-bit windows system by make? Thank you very much. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/stale label 2025-11-02 06:31:22 -06:00
Author
Owner

@lunny commented on GitHub (Jun 25, 2020):

What's the problem when you run make build on target system?

@lunny commented on GitHub (Jun 25, 2020): What's the problem when you run `make build` on target system?
Author
Owner

@Zoranner commented on GitHub (Jun 25, 2020):

What's the problem when you run make build on target system?

@lunny 我尝试使用PowerShell Core执行 make build 得到以下错误:

KimoTech@KIMOZORAN  D:\Personals\Desktop\others\gitea   master ≣ ~1 -0 !                                   [12:45]
❯ make build
系统找不到指定的路径。
'C:' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
系统找不到指定的路径。
'sed' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
FIND: 参数格式不正确
拒绝访问 - CMD
拒绝访问 - INTEGRATIONS
拒绝访问 - MODELS
拒绝访问 - MODULES
拒绝访问 - ROUTERS
拒绝访问 - BUILD
拒绝访问 - SERVICES
拒绝访问 - VENDOR
找不到文件 - -TYPE
找不到文件 - F
找不到文件 - -NAME
找不到文件 - -NOT
找不到文件 - -PATH
找不到文件 - -NOT
找不到文件 - -PATH
找不到文件 - -NOT
找不到文件 - -PATH
系统找不到指定的路径。
'cut' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'printf' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
系统找不到指定的路径。
此时不应有 ""。
Makefile:191: recipe for target 'node-check' failed
make: *** [node-check] Error 255

我尝试使用 GOOS=windows GOARCH=386 go build 进行编译,得到一个65.9M大小的可执行文件,但只能在本地运行,无法部署到其他计算机。大概是没有将外部资源一块打包的原因。

@Zoranner commented on GitHub (Jun 25, 2020): > What's the problem when you run `make build` on target system? @lunny 我尝试使用PowerShell Core执行 `make build` 得到以下错误: ```bash KimoTech@KIMOZORAN  D:\Personals\Desktop\others\gitea   master ≣ ~1 -0 !  [12:45] ❯ make build 系统找不到指定的路径。 'C:' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 系统找不到指定的路径。 'sed' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 FIND: 参数格式不正确 拒绝访问 - CMD 拒绝访问 - INTEGRATIONS 拒绝访问 - MODELS 拒绝访问 - MODULES 拒绝访问 - ROUTERS 拒绝访问 - BUILD 拒绝访问 - SERVICES 拒绝访问 - VENDOR 找不到文件 - -TYPE 找不到文件 - F 找不到文件 - -NAME 找不到文件 - -NOT 找不到文件 - -PATH 找不到文件 - -NOT 找不到文件 - -PATH 找不到文件 - -NOT 找不到文件 - -PATH 系统找不到指定的路径。 'cut' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 'printf' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 系统找不到指定的路径。 此时不应有 ""。 Makefile:191: recipe for target 'node-check' failed make: *** [node-check] Error 255 ``` 我尝试使用 `GOOS=windows GOARCH=386 go build` 进行编译,得到一个65.9M大小的可执行文件,但只能在本地运行,无法部署到其他计算机。大概是没有将外部资源一块打包的原因。
Author
Owner

@frankcui95 commented on GitHub (Jun 27, 2020):

What's the problem when you run make build on target system?

@lunny 我尝试使用PowerShell Core执行 make build 得到以下错误:

KimoTech@KIMOZORAN  D:\Personals\Desktop\others\gitea   master ≣ ~1 -0 !                                   [12:45]
❯ make build
系统找不到指定的路径。
'C:' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
系统找不到指定的路径。
'sed' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
FIND: 参数格式不正确
拒绝访问 - CMD
拒绝访问 - INTEGRATIONS
拒绝访问 - MODELS
拒绝访问 - MODULES
拒绝访问 - ROUTERS
拒绝访问 - BUILD
拒绝访问 - SERVICES
拒绝访问 - VENDOR
找不到文件 - -TYPE
找不到文件 - F
找不到文件 - -NAME
找不到文件 - -NOT
找不到文件 - -PATH
找不到文件 - -NOT
找不到文件 - -PATH
找不到文件 - -NOT
找不到文件 - -PATH
系统找不到指定的路径。
'cut' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'printf' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
系统找不到指定的路径。
此时不应有 ""。
Makefile:191: recipe for target 'node-check' failed
make: *** [node-check] Error 255

我尝试使用 GOOS=windows GOARCH=386 go build 进行编译,得到一个65.9M大小的可执行文件,但只能在本地运行,无法部署到其他计算机。大概是没有将外部资源一块打包的原因。

尝试使用mingw代替msvc编译

@frankcui95 commented on GitHub (Jun 27, 2020): > > What's the problem when you run `make build` on target system? > > @lunny 我尝试使用PowerShell Core执行 `make build` 得到以下错误: > > ```shell > KimoTech@KIMOZORAN  D:\Personals\Desktop\others\gitea   master ≣ ~1 -0 !  [12:45] > ❯ make build > 系统找不到指定的路径。 > 'C:' 不是内部或外部命令,也不是可运行的程序 > 或批处理文件。 > 系统找不到指定的路径。 > 'sed' 不是内部或外部命令,也不是可运行的程序 > 或批处理文件。 > FIND: 参数格式不正确 > 拒绝访问 - CMD > 拒绝访问 - INTEGRATIONS > 拒绝访问 - MODELS > 拒绝访问 - MODULES > 拒绝访问 - ROUTERS > 拒绝访问 - BUILD > 拒绝访问 - SERVICES > 拒绝访问 - VENDOR > 找不到文件 - -TYPE > 找不到文件 - F > 找不到文件 - -NAME > 找不到文件 - -NOT > 找不到文件 - -PATH > 找不到文件 - -NOT > 找不到文件 - -PATH > 找不到文件 - -NOT > 找不到文件 - -PATH > 系统找不到指定的路径。 > 'cut' 不是内部或外部命令,也不是可运行的程序 > 或批处理文件。 > 'printf' 不是内部或外部命令,也不是可运行的程序 > 或批处理文件。 > 系统找不到指定的路径。 > 此时不应有 ""。 > Makefile:191: recipe for target 'node-check' failed > make: *** [node-check] Error 255 > ``` > > 我尝试使用 `GOOS=windows GOARCH=386 go build` 进行编译,得到一个65.9M大小的可执行文件,但只能在本地运行,无法部署到其他计算机。大概是没有将外部资源一块打包的原因。 尝试使用mingw代替msvc编译
Author
Owner

@lunny commented on GitHub (Jun 27, 2020):

Don't run the make build on powershell. You should run it on cywin or like shell.

@lunny commented on GitHub (Jun 27, 2020): Don't run the make build on powershell. You should run it on `cywin` or like shell.
Author
Owner

@stale[bot] commented on GitHub (Aug 29, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Aug 29, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Sep 12, 2020):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Sep 12, 2020): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5627