May 8, 2021


Write linux code on mac

write linux code on mac

write linux code on mac

How to write linux code on mac. Cross platform code is another term on write linux code code on mac, or any other system for that matter. There is a few things you need to download and install on your mac before starting writing linux code on mac.

First you need to download and install Mono Develop, or Xamarin Studio as it is called now. Xamarin Studio is a cross platform IDE for .net languages like C# and F#. If you want to program in C/C++ you should check out gcc instead. Xamarin Studio runs on Windows, Linux and OS X. And support most .net languages available today. Xamarin Studio is free and can be downloaded here:

Second you need Mono, the cross platform .net framework. Mono project is sponsored by Microsoft, but is free to anyone. You will need this to compile and run your projects written in Xamarin Studio. The cool thing about Mono Project is that you can deploy your programs to most major operating systems. Like Linux, Windows and OS X. As long as they are supported by Mono Project.

To get the Mono Project framework, go to:

To run your code on a Linux system you need to install Mono Project to the Linux system. This will vary from which Linux Distribution you are using. Debian based, Red Hat based or Suse based. Several of the Linux Distributions have a Mono Project package included in their repository, but rarely the latest. So I recommend going to their site and get it.

That is really the tools you need to write .net programs for Linux on a mac. A framework developed by Microsoft to run for Windows. There are even some community packages of Mono Project out there, even linked on their website. These are usually not tested by Xamarin.

Happy cross coding!