Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run C++ in NetBeans: "No Shell Found" error

I'm trying to learn C++ using NetBeans but even though I have CYGWIN and everything set up in my PATH, I keep getting an error that says: "No shell found. Cannot proceed. Please install either CYGWIN or Msys."

I don't know what Msys is but since the error says "or" I assume that if I have CYGWIN that I don't need to have Msys.

I'm trying to run the basic "Hello World!" tutorial but this error from what I've seen isn't covered. I'm getting aggravated because I have a project I need to have done in a few weeks.

If anyone has any answers for me, that would be great. I can supply screenshots if you need them.

like image 296
user3657777 Avatar asked Nov 01 '22 23:11

user3657777


1 Answers

Cygwin alone is not enough, first of all you have to check if you installed C++/gcc/gdb packages in your Cygwin.

From Cygwin/Net beans docs:

  1. Open the Control Panel (Start > Settings > Control Panel) and double-click the System program.
  2. Select the Advanced tab and click Environment Variables.
  3. In the System Variables panel of the Environment Variables dialog, select the Path variable and click Edit.
  4. Add the path to the cygwin-directory\bin directory to the Path variable, and click OK. By default, cygwin-directory is C:\cygwin. Directory names must be separated with a semicolon.
  5. Click OK in the Environment Variables dialog and the System Properties dialog.

If it fails you could try to Re-Install Netbeans from/within an cygwin/bash instance start the netbeans from a cygwin/bash instance.

Netbeans should automatically detect gdb/g++

PS: I'd prefer to use a good Gnu/Linux distro

like image 178
wdavilaneto Avatar answered Nov 10 '22 00:11

wdavilaneto