This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 99840 - C/C++ pack; compile failure: /bin/sh: command not found
Summary: C/C++ pack; compile failure: /bin/sh: command not found
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: Other All
: P3 blocker (vote)
Assignee: _ gordonp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-03 15:36 UTC by bruzak
Modified: 2016-05-07 07:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bruzak 2007-04-03 15:36:16 UTC
I receive the following error message when building the 'helloapp' sample project:

make: /bin/sh: Command not found
make: *** [.validate-impl] Error 127

Build failed. Exit value 2.

Checking the version of compilers, make and gdb :
- GNU gdb 6.5.50.200060706-cvs 
- GNU make 3.81
- g++ 3.4.4
- gcc 3.4.4

However cygwin reports "No setup information found".

PATH is:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\cygwin\bin;C:\cygwin\usr\bin;

C:\cygwin\bin\sh does exist.

Regards,

Akos
Comment 1 novakm 2007-04-05 11:08:29 UTC
Reassigning to CND for evaluation.
Comment 2 _ gordonp 2007-04-05 14:58:58 UTC
Can you run the same make command from a Cygwin Bash Shell?

If you get the same results then its a problem in your ~/.bashrc
(or ~/.profile) file. Since netbeans is finding make you're Windows
path does seem to be set up correctly. But there is no guarantee
your Cygwin path is identical.

If it does build correctly from the command line then I'm not sure
what the problem might be.
Comment 3 _ gordonp 2007-05-14 15:45:36 UTC
See what is in C:\cygwin\bin (the bin directory should be equivalent to
the \usr\bin directory). Try running the make command from a dos command
window. Let me know what you see.

This type of problem always comes down to an installation problem. We're
working on making the C/C++ pack better at recognizing this type of problem
but the best solution is often to take another look at our installation guide
a http://www.netbeans.org/communitly/releases/55/cnd-install.html, especially
the section titled "Installing and Setting Up the Compilers and Tools".
Comment 4 Alexander Pepin 2007-12-24 20:12:22 UTC
not reproducible any more
Comment 5 iamcreasy 2016-05-07 07:22:34 UTC
I solved this problem by installing MSYS Bash using "MinGW Installation Manager"

Run, C:\MinGW\bin\mingw-get.exe and check the following MSYS > MSYS Base System > msys-bash(bin, doc, lic and lnk). Apply the changes.

Now it should find the command.