Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9074907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:44:27+00:00 2026-06-16T18:44:27+00:00

I am trying to compile this simple C# code on OS X: using System;

  • 0

I am trying to compile this simple C# code on OS X:

using System;

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("hello");
    }
}

This was the code runner template.

I have installed Mono, and the run command is mono $compiler. I first tried using the default Compile.sh file, and it didn’t work, so I’ve found on the web a guide that says to write a shell script like this one:

enc[4]="UTF8"           # UTF-8
enc[10]="UTF16"         # UTF-16
enc[5]="ISO8859-1"      # ISO Latin 1
enc[9]="ISO8859-2"      # ISO Latin 2
enc[30]="MacRoman"      # Mac OS Roman
enc[12]="CP1252"        # Windows Latin 1
enc[3]="EUCJIS"         # Japanese (EUC)
enc[8]="SJIS"           # Japanese (Shift JIS)
enc[1]="ASCII"          # ASCII
file=$1
file=${file/\.cs/\.exe}


mcs "$1"
echo "$file"
exit 0

So I’ve changed it (backup-ed the old one), but I still get this error on the console:

bash: Run Command: No such file or directory

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:44:29+00:00Added an answer on June 16, 2026 at 6:44 pm

    Unless you have a specific need to compile from the command line, I would strongly suggest using MonoDevelop instead of trying to figure out the appropriate command line parameters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to compile this code: #include <iostream> #include <vector> using namespace std; class
I am trying to compile a simple Qt program with Code::Blocks. I am using
I'm trying to compile this simple program to start learning how to use timers:
i am trying to compile this code, but if i do using: gcc prt.c
I'm trying to get a simple program using JOGL to compile via the command
I am trying to get a very simple program to compile while using functions
I am trying to compile a very simple program using the -m32 flag. If
I am trying to use some sample code and my compiler won't compile this
I trying to compile this code: Int64 itag = BitConverter.ToInt64(temp, 0); itag &= 0xFFFFFFFFFFFFFC00;
When I'm trying to compile this code with gcc version 4.6.3 on linux with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.