{"id":5939,"date":"2014-06-19T17:33:12","date_gmt":"2014-06-19T08:33:12","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=5939"},"modified":"2014-06-26T00:13:49","modified_gmt":"2014-06-25T15:13:49","slug":"raspberry-pi-%e3%81%a7-f-%e3%82%92%e5%8b%95%e3%81%8b%e3%81%99%e3%81%be%e3%81%a7%ef%bc%88%e3%81%be%e3%81%a8%e3%82%81%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.moonmile.net\/blog\/archives\/5939","title":{"rendered":"Raspberry Pi \u3067 F# \u3092\u52d5\u304b\u3059\u307e\u3067\uff08\u307e\u3068\u3081\uff09"},"content":{"rendered":"<p>\u624b\u5143\u306b\u3042\u308b\u306e\u304c Raspberry Pi \u306e\u30e1\u30e2\u30ea\u304c 256MB \u30bf\u30a4\u30d7\u306e\u305f\u3081\u304b F# \u3092\u30d3\u30eb\u30c9\u3059\u308b\u3068\u304d\u306b\u5931\u6557\u3057\u307e\u3059\u3002\u304c\u3001\u5225\u9014\u306e Debian \u3067\u30d3\u30eb\u30c9\u3057\u305f DLL \u3092 install \u3059\u308b\u3053\u3068\u3067\u56de\u907f\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u624b\u6301\u3061\u306e SD \u30ab\u30fc\u30c9\u306f 8GB \u3067\u3059\u3002<\/p>\n<h3>\u25a0\u4e0b\u6e96\u5099<\/h3>\n<p>\u753b\u9762\u306f\u4f7f\u308f\u305a\u306b\u30bf\u30fc\u30df\u30ca\u30eb\u3060\u3051\u3067\u4f5c\u696d\u3092\u3057\u307e\u3059\u3002\u521d\u671f\u72b6\u614b\u3067 ssh \u304c\u4f7f\u3048\u308b\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u8d77\u52d5\u3057\u305f\u3068\u304d\u306e IP \u3060\u3051\u308f\u304b\u308c\u3070 OK\u3002\u521d\u56de\u306e\u307f HDMI \u3067\u30c7\u30a3\u30b9\u30d7\u30ec\u30a3\u3092\u3064\u306a\u3052\u3066\u56fa\u5b9a IP \u306b\u3057\u3066\u304a\u3051\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u3002DHCP \u3067\u3082\u81ea\u5b85\u306e\u5834\u5408\u306f\u305d\u3046\u5909\u308f\u3089\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u3067\u3082\u3044\u3044\u304b\u306a\u3068\u3002<\/p>\n<ol>\n<li><a href=\"http:\/\/www.raspberrypi.org\/downloads\/\">Raspbian Debian Wheezy<\/a> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>sudo respi-config \u3057\u3066 Expand Filesystem \u3092\u5b9f\u884c\u3002\u3053\u3046\u3059\u308b\u3068 SD \u30ab\u30fc\u30c9\u4e00\u676f\u307e\u3067\u5bb9\u91cf\u3092\u5897\u3084\u3057\u3066\u3044\u304f\u308c\u308b\u3002<\/li>\n<li>sudo passwd root \u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3002<\/li>\n<li>adduser \u3067\u30e6\u30fc\u30b6\u3092\u4f5c\u308b\u3002<\/li>\n<li>visudo \u3067 sudo \u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3002<\/li>\n<li>sudo apt-get update \u3059\u308b\u3002<\/li>\n<li>sudo apt-get upgrade \u3059\u308b\u3002<\/li>\n<li>sudo apt-get install avahi-daemon \u3059\u308b\u3002\u30db\u30b9\u30c8\u540d\u3092\u516c\u958b\u3059\u308b\u305f\u3081\u3002<\/li>\n<li>sudo apt-get install samba \u3059\u308b\u3002Windows \u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u9001\u308b\u305f\u3081<\/li>\n<\/ol>\n<h3>\u25a0\u30d3\u30eb\u30c9\u306e\u6e96\u5099<\/h3>\n<p>Mono \u3068 F# \u3092 git \u304b\u3089\u6301\u3063\u3066\u304d\u3066\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002mono \u81ea\u4f53\u306f sudo apt-get mono-complete \u3067\u6301\u3063\u3066\u3053\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u4f55\u6545\u304b F# 3.1 \u3067\u4f7f\u304a\u3046\u3068\u3059\u308b\u3053\u3051\u307e\u3059\u3002\u307e\u305f\u3001Rasberry Pi \u306e\u30ec\u30dd\u30b8\u30c8\u30ea\u306b\u306f fsharp \u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u306a\u3044\u306e\u3067\u3001\u81ea\u524d\u3067\u30d3\u30eb\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u304c\u3001Raspberry Pi \u4e0a\u3067 F# \u306e\u30b3\u30fc\u30c9\u3092\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u9014\u4e2d\u3067\u30c6\u30b9\u30c8\u306e\u30a8\u30e9\u30fc\u3067\u3053\u3051\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u72b6\u614b\u306a\u306e\u3067\u3001Mono 3.2.8 + F# 3.1 \u306e\u7d44\u307f\u5408\u308f\u305b\u306e\u5834\u5408\u306f\u3001<\/p>\n<ul>\n<li>Mono \u3092 Raspberry Pi \u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30d3\u30eb\u30c9\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>F# \u3092\u5225\u306e Debian \u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30d3\u30eb\u30c9<\/li>\n<li>\u51fa\u6765\u4e0a\u304c\u3063\u305f F# \u3092 Raspberry Pi \u306b\u30b3\u30d4\u30fc\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u624b\u9806\u306b\u306a\u308a\u307e\u3059\u3002F# \u3092\u5225\u306e\u74b0\u5883\u3067 make install \u3059\u308b\u306e\u3067\u3001\u30d3\u30eb\u30c9\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u306f\u63c3\u3048\u305f\u307b\u3046\u304c\u7121\u96e3\u3067\u3059\uff08\u7570\u306a\u308b\u5834\u5408\u306f\u3001ln -s \u3059\u308c\u3070 ok\uff09\u3002\u53ef\u80fd\u306a\u3089\u3070 ARM \u74b0\u5883\u3067 Mono \u3092\u30d3\u30eb\u30c9\u3059\u308c\u3070\u3044\u3044\u3093\u3067\u3057\u3087\u3046\u304c\u3002Visual Studio \u3092\u4f7f\u3048\u3070\u3067\u304d\u308b\u304b\u3082\u3002<\/p>\n<h3>\u25a0\u30d3\u30eb\u30c9\u3059\u308b<\/h3>\n<p><a title=\"http:\/\/fsharp.org\/use\/linux\/\" href=\"http:\/\/fsharp.org\/use\/linux\/\">http:\/\/fsharp.org\/use\/linux\/<\/a> \u306b\u3042\u308b Option 2: Build and install the F# 3.1 runtime, compiler and tools \u306b\u5f93\u3063\u3066 Mono \u3092\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002\u3046\u3061\u306e\u74b0\u5883\u3067\u306f 12 \u6642\u9593\u4ee5\u4e0a\u304b\u304b\u308a\u307e\u3057\u305f\u3002\u51fa\u6765\u4e0a\u304c\u3063\u305f\u30d0\u30a4\u30ca\u30ea\u306f\u5927\u4e8b\u306b\u3068\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>sudo make install \u3059\u308b\u3068\u7121\u4e8b mono \u304c\u4f7f\u3048\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image14.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image_thumb16.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"468\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" \/><\/a><\/p>\n<p>\u304a\u6b21\u306f\u3001F# \u3092\u30d3\u30eb\u30c9\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u5225\u306e Debian \u3067\u3084\u308a\u307e\u3059\u3002git clone https:\/\/github.com\/fsharp\/fsharp\u00a0 \u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u666e\u901a\u306e PC\uff08\u79c1\u306e\u5834\u5408\u306f Hyper-V \u4e0a\u306e Debian\uff09\u306a\u306e\u3067\u3042\u3063\u3068\u3044\u3046\u9593\u3067\u3059\u3002\u3061\u306a\u307f\u306b\u3001Mono \u306e\u30d3\u30eb\u30c9\u3082\u7d50\u69cb\u306a\u30b9\u30d4\u30fc\u30c9\u3067\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3059\u304c\u3001\u4e2d\u8eab\u304c ARM \u3067\u306f\u306a\u3044\u306e\u3067\u3001Raspberry Pi \u306b\u306f\u30b3\u30d4\u30fc\u3067\u304d\u307e\u305b\u3093&#8230;\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3069\u3046\u306a\u3093\u3067\u3057\u3087\u3046\u306d\uff1f\u79c1\u306e\u5834\u5408\u306f 12 \u6642\u9593\u304b\u3051\u3066 Raspberry Pi \u4e0a\u3067\u30d3\u30eb\u30c9\u3057\u305f\u306e\u3067\u3059\u304c\u3002<\/p>\n<p>\u3067\u304d\u3042\u304c\u3063\u305f F# \u306e\u30d0\u30a4\u30ca\u30ea\u3092 tar \u3067\u56fa\u3081\u3066\u3001Raspberry Pi \u4e0a\u306b\u6301\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u305d\u3057\u3066 sudo make install \u3059\u308c\u3070\u3001\u7121\u4e8b F# \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u25a0F# \u3092\u52d5\u304b\u3059<\/h3>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u306f fsharpi \u3067\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30e9\u306f fsharpc \u3067\u3059\u306d\u3002Scala \u306e fsc \u3068\u30d0\u30c3\u30c6\u30a3\u30f3\u30b0\u3057\u305f\u306e\u3067\u540d\u524d\u304c\u9577\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3064\u30fc\u304b\u3001Scala \u5165\u308c\u3066\u306a\u3044\u304b\u3089\u3001fsc \u3067 ln -s \u3057\u3066\u3082\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image15.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image_thumb17.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"468\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" \/><\/a><\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089 fsharpi \u3092\u6253\u3063\u305f\u5f8c\u306b\u3057\u3070\u3089\u304f\u5f85\u305f\u3055\u308c\u307e\u3059\u3002\u66f4\u306b let a = &#8230; \u3068\u6253\u3063\u305f\u5f8c\u306b\u3057\u3070\u3089\u304f\u5f85\u305f\u3055\u308c\u307e\u3059\u3002\u3069\u3046\u3084\u3089 mono \u304c\u304c\u3093\u3070\u3063\u3066\u3044\u308b\u6a21\u69d8\u3067\u3001\u3042\u308b\u7a0b\u5ea6\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30ed\u30fc\u30c9\u304c\u7d42\u308f\u3063\u305f\u3089\u65e9\u304f\u306a\u308a\u307e\u3059\u3002top \u3067\u307f\u308b\u3068\u7d50\u69cb\u4e0a\u306b\u8cbc\u308a\u3064\u3044\u3066\u3057\u307e\u3046\u306e\u3067\u306a\u304b\u306a\u304b\u5927\u5909\u305d\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image16.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image_thumb18.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"468\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" \/><\/a><\/p>\n<p>\u30d3\u30eb\u30c9\u3057\u305f\u5f8c\u306f\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u30bb\u30f3\u30b5\u30fc\u53d6\u308a\u8fbc\u307f\u306e\u3088\u3046\u306a\u7d20\u65e9\u3044\u51e6\u7406\u306b\u306f\u5411\u304b\u306a\u3044\u3051\u3069\u3001\u30ed\u30dc\u30c3\u30c8\u5236\u5fa1\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u9001\u4fe1\u306b\u306f\u5341\u5206\u4f7f\u3048\u308b\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\u307e\u3042\u3001\u305d\u308c\u3067 BrickPi \u3092\u8cfc\u5165\u3057\u305f\u308f\u3051\u3067\u3059\u304c\u3002de:code \u3067 MS\u592a\u7530\u3055\u3093\u304c .NET Micro Framework \u3067 EV3 \u3092\u64cd\u4f5c\u3067\u304d\u305f\u305d\u3046\u306a\u306e\u3067\u3001MF \u306e\u307b\u3046\u3067\u3082\u8a66\u3057\u3066\u307f\u305f\u3044\u3067\u3059\u306d\u3002\u3064\u30fc\u304b\u3001\u52d5\u304f\u306e\u304b\uff1f F#<br \/>\n\u3061\u3087\u3063\u3068\u53e4\u3044\u3067\u3059\u304c\u30012010\u5e74\u3054\u308d\u306e\u30d6\u30ed\u30b0\u306b <a href=\"http:\/\/blogs.msdn.com\/b\/hirosho\/archive\/2010\/01\/09\/managed-native-net-framework.aspx\">Managed\u3001Native\u3001.NET Framework? &#8211; \u30c7\u30d0\u30a4\u30b9\u3068IT\u306e\u67b6\u3051\u6a4b &#8211; Site Home &#8211; MSDN Blogs<\/a> \u306e\u5192\u982d\u300c\u53c2\u52a0\u3055\u308c\u3066\u3044\u305f\u306e\u306f\u7d44\u8fbc\u307f\u696d\u754c\u306e\u7686\u3055\u3093\u3060\u3063\u305f\u306b\u3082\u62d8\u3089\u305a\u3001F#\u3092\u4f7f\u3063\u3066\u3044\u308b\u65b9\u304c\u4f55\u4eba\u304b\u3044\u3089\u3063\u3057\u3083\u3063\u3066\u300d\u3068\u3042\u308b\u306e\u3067\u3001\u5236\u5fa1\u7cfb\u306b\u306f\u3046\u3051\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u30b3\u30f3\u30d4\u30e5\u30c6\u30fc\u30b7\u30e7\u30f3\u5f0f\u306a\u3093\u3066\u306e\u306f\u3001DSL \u7684\u306b\u6709\u7528\u3067\u3059\u304b\u3089\u306d\u3002<a href=\"http:\/\/www.robotservices.org\/wiki\/jp\/\">RSNP<\/a> \u3042\u305f\u308a\u3067\u3057\u305f\u3063\u3051\uff1f<\/p>\n<p>\u305d\u3093\u306a\u8a33\u3067\u3001\u304a\u6b21\u306f <a href=\"http:\/\/www.dexterindustries.com\/BrickPi\/getting-started\/\">BrickPi<\/a> \u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u624b\u5143\u306b\u3042\u308b\u306e\u304c Raspberry Pi \u306e\u30e1\u30e2\u30ea\u304c 256MB \u30bf\u30a4\u30d7\u306e\u305f\u3081\u304b F# \u3092\u30d3\u30eb\u30c9\u3059\u308b\u3068\u304d\u306b\u5931\u6557\u3057\u307e\u3059\u3002\u304c\u3001\u5225\u9014\u306e Debian \u3067\u30d3\u30eb\u30c9\u3057\u305f DLL \u3092 install \u3059\u308b\u3053\u3068\u3067\u56de\u907f\u3057\u3066\u3044\u307e\u3059\u3002 \u624b\u6301\u3061 &hellip; <a href=\"https:\/\/www.moonmile.net\/blog\/archives\/5939\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[59,67],"tags":[],"class_list":["post-5939","post","type-post","status-publish","format-standard","hentry","category-f","category-raspberrypi"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=5939"}],"version-history":[{"count":2,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5939\/revisions"}],"predecessor-version":[{"id":5976,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5939\/revisions\/5976"}],"wp:attachment":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=5939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=5939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=5939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}