Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While using the application CodeRunner with C#, whenever I try to "run" the program it gives me this error:

bash: Run Command: No such file or directory.

How can I resolve this?

share|improve this question

closed as off topic by MrDaniel, CajunLuke, gentmatt, jmlumpkin, Mark Oct 9 '12 at 8:33

Questions on Ask Different are expected to relate to Apple hardware or software within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to Ask Different! You had two questions in here. This site works better when there is only one question per question. That way, it's easier for other people to find solutions if they have the same problem. I've edited out your second question, but feel free to ask it separately. Just keep in mind that this site isn't about programming. Please take a look at the FAQs for more info. Thanks. – Nathan Greenstein Sep 25 '12 at 0:28

Have you installed Mono and added the configuration to CodeRunner to enable C# support?

I found a solution if you have installed Mono over at MacRumors forums posted by user David Sheeks outlined below:

Configure CodeRunner

Open the CodeRunner Preferences dialog, go to the "Languages" tab, click the "+" icon and and specify "C#" as the Language name.

On the right you have fields where you can populate the language settings. Check the "Language uses compilation script" check box, enter /usr/bin/mono $compiler for the Run Command and set the File Extension to cs

Click the "Edit Script..." button and append the following to the script (this will open in the CodeRunner editor):

/usr/bin/mcs "$file"
if [ $status -ne 0 ]
exit $status
echo $file | sed -e "s/\.cs/.exe/"
exit 0

Mono installs it's compiler and runtime executable in /usr/bin and this is verified with the current version of the Mono SDK.

If you have done part of the above, and not setup the path's correctly, I would assume that the missing path it's complaining about is the fact that you either a) haven't installed Mono and the config can't find the compiler or b) youve installed Mono and the config in CodeRunner is invalid.

share|improve this answer
Note that due to the new updates in OS X 10.11 with system integrity protection (rootless), you will have to specify the path as /usr/local/bin/mono $compiler with the latest version of Mono (4.0.4 at the time of writing). – safwanc Oct 6 '15 at 21:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.