IBM Support

Command not found by Cygwin make

Troubleshooting


Problem

When you have Cygwin and Rational® Software Architect (RSA) installed and are using make, gcc, g++, gdb, etc. at the command line, you might see several errors in the console window.

Cause

The source of the problem is the location of the c:\cygwin\bin in the user's PATH environment variable.

Resolving The Problem

The errors that appear in the Rational Software Architect console window are:

make -k clean all
rm -rf     circle.o cube.o main.o sphere.o square.o tetrahedron.o triangle.o circle.d cube.d main.d sphere.d square.d tetrahedron.d triangle.d   Shape.exe
make: rm: Command not found
make: [clean] Error 127 (ignored)
make: echo: Command not found
make: *** [circle.o] Error 127

You can find "rm" and "echo" at the command line, but "make" cannot find "rm" or "echo" when it runs commands from the Makefile inside RSA.

The best way to resolve this is to remove the double quotation marks from the Windows PATH, and restart the application. This is done by following these steps:

  1. Go to Start > Settings > Control Panel
  2. Select System
  3. Go to the Advanced tab
  4. Select Environment Variables
  5. Under the System Variables, find the Path and edit that path

Another option is to move the c:\cygwin\bin to the beginning of your PATH, and restart the application. You can modify the path by following steps 1 through 5 above.

[{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"6.0;6.0.0.1;6.0.1.0;6.0.1.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSCLKU","label":"Rational Software Modeler"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 September 2020

UID

swg21202071