【发布时间】:2019-06-08 08:21:36
【问题描述】:
我正在尝试在我的系统上安装一个名为 oTranscribe 的 Github 项目,这是我第一次从 Github 安装任何项目。
我按照给定的流程安装项目:-
- 安装 Node.js 和 NPM
- 运行 npm install 安装依赖项
- 运行 make build_prod 编译 dist 文件夹。
我成功完成了前两个过程,并在系统上安装了 make 并添加了 PATH 变量。当我尝试运行最后一个命令时出现问题,即make build_prod;当我执行命令并按 enter 时,命令提示符什么也不做,当我按两次 enter 时,它显示以下错误。
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\AUDICHYA>cd C:\xampp\htdocs\oTranscribe-master
C:\xampp\htdocs\oTranscribe-master>make build_prod dist
make compile_static
make[1]: Entering directory `C:/xampp/htdocs/oTranscribe-master'
# clear out existing dist folder
process_begin: CreateProcess(NULL, # clear out existing dist folder, ...) failed
.
make (e=2): The system cannot find the file specified.
make[1]: *** [compile_static] Error 2
make[1]: Leaving directory `C:/xampp/htdocs/oTranscribe-master'
make: *** [build_prod] Error 2
C:\xampp\htdocs\oTranscribe-master>
请让我知道我应该进一步做什么?
【问题讨论】:
-
失败与项目makefile的细节有关,您没有提供。仔细阅读项目的文档以确定您打算如何执行安装。然而,猜测一下,您可能不需要构建“dist”目标。该名称通常标识用于构建分发包(源 tarball、zip 文件或类似文件)的规则。安装包的目标的常规名称是“install”。
-
Makefile是为 Unix 兼容系统编写的。除非您有 Cygwin 或 WSL 或其他一些兼容性扩展,否则这不太可能在 Windows 上运行。 -
这不是那个问题的重复,我已经提到我已经安装了 make,即使在澄清了问题之后仍然标记为重复。
标签: windows github makefile command-prompt gnu-make