Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

らずぱいで .NET (mono)

More than 3 years have passed since last update.


  • .NET Core 1.0がリリース記念?
  • らずぱいで、いつつかえるようになるかわからんので、monoを使ってみる。
  • Installing Mono and ASP.NET on a Raspberry Pi を参考に、Hello World表示を
  • ポイント: そのまま sudo apt-get mono-completeやってしまうと、古いやつがインストールされてしまう


  • Raspberry Pi 3
  • 2016-05-27-raspbian-jessie.img


  1. sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get install -y htop byobu
    ... いつもの
  2. Monoインストール

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install mono-complete
    mono --version
    pi@raspberrypi:~ $ mono --version
    Mono JIT compiler version 4.4.1 (Nightly Wed Jun 22 11:38:12 UTC 2016)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       normal
    Notifications: epoll
    Architecture:  armel,vfp+hard
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen
    pi@raspberrypi:~ $ 
  3. Hello World

    • vi hello.cs

      using System;
      public class HelloWorld
          static public void Main ()
              Console.WriteLine ("Hello World!");
    • ビルド・実行

      mcs hello.cs
      mono hello.exe
    • 実行例

      pi@raspberrypi:~ $ mcs hello.cs
      pi@raspberrypi:~ $ mono hello.exe
      Hello World!
      pi@raspberrypi:~ $ 


  • らずぱいでつくった、hello.exeは、Windowsでも、実行できました。
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
2000 Contrib! [2021-04-09]


No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
Help us understand the problem. What is going on with this article?