| View previous topic :: View next topic |
| Author |
Message |
Chron
Joined: 04 Jan 2011 Posts: 1
|
Posted: Wed Jan 05, 2011 12:53 am Post subject: Netbeans 6.9.1 error 127 with cygwin and MinGW |
|
|
I've just installed NetBeans 6.9.1 full version. I followed the process on the website to set up the cygwin correctly. But when I try to build the sample program "Welcome", it output an error 127. Search through the internet didn't get me any luck. So I switch to using MinGW and did all the configuration again, but it's still not working. I don't know what's wrong with my computer or my set up.
Thank you in advance if anyone has any idea~ |
|
| Back to top |
|
 |
Amoxaphobic
Joined: 23 Jan 2011 Posts: 7 Location: SS, Arkansas
|
Posted: Sun Jan 23, 2011 10:39 pm Post subject: |
|
|
I'm having the same issue... here is a bit more information on my situation, this may or may not be the same as the above:
| Code: |
"/c/Users/Amoxaphobic/Documents/NetBeansProjects/Welcome/"C:/Program Files/MinGW/msys/1.0/bin/make.exe"" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
/bin/sh: /c/Users/Amoxaphobic/Documents/NetBeansProjects/Welcome/C:/Program: No such file or directory
make.exe": *** [.build-impl] Error 127
BUILD FAILED (exit value 2, total time: 778ms)
|
I have put both the make and compiler dir in PATH, and as far as I know, I installed everything correctly.
Now, I have noticed when looking at other codes that the starting lines are not the same as mine... they start out with something like this...
| Code: |
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/William/Documents/NetBeansProjects/Welcome_1'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/welcome_1.exe
|
I was thinking maybe this had something to do with it, but I am not sure.
Can anyone help me with this? Anyone know why I am getting this error 127? Thanks for you help. |
|
| Back to top |
|
 |
Amoxaphobic
Joined: 23 Jan 2011 Posts: 7 Location: SS, Arkansas
|
Posted: Sun Jan 23, 2011 10:53 pm Post subject: |
|
|
Okay, well just out of curiosity I uninstalled MinGW and reinstalled it with the default dir of C:\MinGW\. This seemed to have helped many issues and I actually got somehwere. But now I have a new issue:
| Code: |
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/Amoxaphobic/Documents/NetBeansProjects/Welcome'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/welcome.exe
make[2]: Entering directory `/c/Users/Amoxaphobic/Documents/NetBeansProjects/Welcome'
mkdir -p build/Debug/MinGW-Windows
rm -f build/Debug/MinGW-Windows/main.o.d
g++.exe -c -g -MMD -MP -MF build/Debug/MinGW-Windows/main.o.d -o build/Debug/MinGW-Windows/main.o main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:16:5: error: 'cout' was not declared in this scope
make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[2]: Leaving directory `/c/Users/Amoxaphobic/Documents/NetBeansProjects/Welcome'
make[1]: Leaving directory `/c/Users/Amoxaphobic/Documents/NetBeansProjects/Welcome'
BUILD FAILED (exit value 2, total time: 2s)
| .
I'll look at this more and if anyone wants to help, I'd appreciate it. If not, that's fine too.
Chron - try to check your install directories. Maybe that's your problem too? |
|
| Back to top |
|
 |
Amoxaphobic
Joined: 23 Jan 2011 Posts: 7 Location: SS, Arkansas
|
Posted: Sun Jan 23, 2011 11:45 pm Post subject: |
|
|
Okay, I figured my problem out... I had two projects and netbeans was trying to compile the second one (the unfinished one). I removed it and all was good.
Chron - if you can post more details about your problem (if checking the dir did not work), it might be more useful for others. I'm a newbie, so it might help me as well. |
|
| Back to top |
|
 |
nabuhodonozor
Joined: 07 Aug 2011 Posts: 4
|
Posted: Sun Aug 07, 2011 12:02 pm Post subject: |
|
|
I have same problem:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Documents and Settings/Piotrek/Moje dokumenty/NetBeansProjects/CppApplication_2'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/cppapplication_2.exe
make[2]: Entering directory `/c/Documents and Settings/Piotrek/Moje dokumenty/NetBeansProjects/CppApplication_2'
make[2]: mkdir: Command not found
mkdir -p build/Debug/MinGW-Windows
make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 127
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[2]: Leaving directory `/c/Documents and Settings/Piotrek/Moje dokumenty/NetBeansProjects/CppApplication_2'
make[1]: Leaving directory `/c/Documents and Settings/Piotrek/Moje dokumenty/NetBeansProjects/CppApplication_2'
BUILD FAILED (exit value 2, total time: 2s)
But I didn't create any other projects. What can I do? |
|
| Back to top |
|
 |
nabuhodonozor
Joined: 07 Aug 2011 Posts: 4
|
Posted: Sun Aug 07, 2011 8:34 pm Post subject: |
|
|
| My Netbeans version is 7.0.1 |
|
| Back to top |
|
 |
nabuhodonozor
Joined: 07 Aug 2011 Posts: 4
|
Posted: Mon Aug 08, 2011 3:39 pm Post subject: |
|
|
| Can anybody help me? Please. |
|
| Back to top |
|
 |
soldatov
Joined: 05 Nov 2009 Posts: 393
|
Posted: Mon Aug 08, 2011 9:06 pm Post subject: |
|
|
| nabuhodonozor wrote: | | Can anybody help me? Please. |
Your problem is "make[2]: mkdir: Command not found "
MSYS must be installed and path to mkdir.exe should be added into system %Path% |
|
| Back to top |
|
 |
soldatov
Joined: 05 Nov 2009 Posts: 393
|
Posted: Mon Aug 08, 2011 9:10 pm Post subject: |
|
|
| soldatov wrote: | | nabuhodonozor wrote: | | Can anybody help me? Please. |
Your problem is "make[2]: mkdir: Command not found "
MSYS must be installed and path to mkdir.exe should be added into system %Path% |
path to mkdir is C:\MinGW\msys\1.0\bin |
|
| Back to top |
|
 |
nabuhodonozor
Joined: 07 Aug 2011 Posts: 4
|
Posted: Tue Aug 09, 2011 1:23 pm Post subject: |
|
|
| Thank you very much. Solved. |
|
| Back to top |
|
 |
shima
Joined: 25 Mar 2012 Posts: 10
|
Posted: Wed Apr 04, 2012 6:44 pm Post subject: c++ error |
|
|
Hi
I have same problem and the error is:
make.exe": /bin/sh: Command not found
make.exe": /bin/sh: Command not found
make.exe": *** [.validate-impl] Error 127
BUILD FAILED (exit value 2, total time: 358ms)
I install MinGW in C and in environment variable I put C:\MinGW\msys\1.0\bin but nothing change |
|
| Back to top |
|
 |
shima
Joined: 25 Mar 2012 Posts: 10
|
Posted: Sat Apr 07, 2012 8:55 am Post subject: Re: c++ error |
|
|
Nobody know this problem?please help  |
|
| Back to top |
|
 |
|