【发布时间】:2013-08-08 22:40:56
【问题描述】:
我大约一周前安装了 NetBeans IDE 7.3.1,但仍然无法让它编译任何东西。
我正在为 C/C++ 使用 Cygwin 的编译器,对于一个简单的 “Hello World” 程序,我收到以下错误消息:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Users/CaptFuzzyboots/Documents/NetBeansProjects/Hello World'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin_1-Windows/hello_world.exe
make[2]: Entering directory `/cygdrive/c/Users/CaptFuzzyboots/Documents/NetBeansProjects/Hello World'
mkdir -p build/Debug/Cygwin_1-Windows
rm -f build/Debug/Cygwin_1-Windows/main.o.d
gcc -c -g -MMD -MP -MF build/Debug/Cygwin_1-Windows/main.o.d -o build/Debug/Cygwin_1-Windows/main.o main.c
make[2]: gcc: Command not found
nbproject/Makefile-Debug.mk:66: recipe for target `build/Debug/Cygwin_1-Windows/main.o' failed
make[2]: *** [build/Debug/Cygwin_1-Windows/main.o] Error 127
make[2]: Leaving directory `/cygdrive/c/Users/CaptFuzzyboots/Documents/NetBeansProjects/Hello World'
nbproject/Makefile-Debug.mk:59: recipe for target `.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/cygdrive/c/Users/CaptFuzzyboots/Documents/NetBeansProjects/Hello World'
nbproject/Makefile-impl.mk:39: recipe for target `.build-impl' failed
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 472ms)
编辑
我修复了这个问题,只需制作一个新工具包并将基本目录添加为 Cygwin -> bin。
现在的问题是我不断得到
无法启动 pty 进程
【问题讨论】:
-
gcc: Command not found,听起来您的 cygwin 安装可能没有所有需要的工具。你检查了here列出的工具吗? -
madth3 - 我得到了所有这些:) 仍然不知道为什么我得到了 C 编译器、调试器、C++ 编译器和 make 实用程序