{"id":5919,"date":"2017-01-08T10:36:52","date_gmt":"2017-01-08T01:36:52","guid":{"rendered":"http:\/\/yonezo.biz\/?p=5919"},"modified":"2017-01-08T10:36:52","modified_gmt":"2017-01-08T01:36:52","slug":"ocaml%e5%86%8d%e6%8c%91%e6%88%a6","status":"publish","type":"post","link":"https:\/\/yonezo.biz\/?p=5919","title":{"rendered":"Ocaml\u518d\u6311\u6226"},"content":{"rendered":"<p>\u4eca\u5e74\u3082\u6b8b\u308a\u308f\u305a\u304b360\u65e5\u8db3\u3089\u305a\u3068\u306a\u308a\u307e\u3057\u305f\u3002\u61f2\u308a\u305a\u306bOcaml\u3078\u306e\u6311\u6226\u3067\u3059\uff01<\/p>\n<p>\u307e\u305a\u306f<a href=\"http:\/\/www.vmware.com\/jp.html\">VMware<\/a>\u3078<a href=\"http:\/\/linuxmint-jp.net\/\">Mint<\/a>\u306e18\u3092\u5165\u308c\u3066\u3001opam\u306b\u3088\u308b\u74b0\u5883\u306e\u69cb\u7bc9\u304b\u3089\u3002<\/p>\n<p>\u3053\u308c\u306f\u4ee5\u524d\u306b\u56db\u82e6\u516b\u82e6\u3057\u305f\u30a8\u30f3\u30c8\u30ea<\/p>\n<h2 class=\"title amzn-taggable-text\"><a href=\"https:\/\/yonezo.biz\/?p=5220\">Ubuntu7\u3078OCaml\u30e2\u30ed\u30e2\u30ed\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/h2>\n<h2 class=\"title\"><a href=\"https:\/\/yonezo.biz\/?p=4506\">OCaml\u74b0\u5883\u69cb\u7bc9\u30e1\u30e2<\/a><\/h2>\n<p>\u306a\u3069\u3092\u53c2\u8003\u306b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3055\u3041\u61f2\u308a\u305a\u306b\u518d\u6311\u6226\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a<a href=\"https:\/\/opam.ocaml.org\/\">opam<\/a>\u3092install\u3057\u305f\u5f8c\u306f<a href=\"http:\/\/ocsigen.org\/eliom\/\">eliom<\/a>\u3092\u5165\u308c\u308b\u308f\u3051\u3060\u304c\u3001<\/p>\n<pre class=\"brush: bash;\">opam install eliom\r\n<\/pre>\n<p>\u3068\u3084\u3063\u3066\u3082\u3001\u65e9\u901f\u306e\u30a8\u30e9\u30fc\u304c\u3002<\/p>\n<pre class=\"brush: bash;\">=-=- conf-gmp.1 troobleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n=&gt; This package relies on external (system) dependencies that may be missing. `opam depext conf-gmp.1' may help you find the correct installation for your\r\nsystem.\r\n\r\n=-=- conf-libpcre.1 troobleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n=&gt; This package relies on external (system) dependencies that may be missing. `opam depext conf-libpcre.1' may help you find the correct installation for your\r\nsystem.\r\n\r\n=-=- conf-openssl.1 troobleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n=&gt; This package relies on external (system) dependencies that may be missing. `opam depext conf-openssl.1' may help you find the correct installation for your\r\nsystem.\r\n\r\n=-=- conf-zlib.1 troobleshooting =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n=&gt; This package relies on external (system) dependencies that may be missing. `opam depext conf-zlib.1' may help you find the correct installation for your\r\nsystem.\r\n\r\n=-=- dbm.1.0 troobleshooting =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n=&gt; This package relies on external (system) dependencies that may be missing. `opam depext dbm.1.0' may help you find the correct installation for your system.\r\n<\/pre>\n<p>\u8981\u3059\u308b\u306b\u300c\u3055\u3063\u3055\u3068install\u3057\u3066\u304f\u308c\u3088\u300d\u3063\u3066\u4e8b\u307f\u305f\u3044\u306a\u306e\u3067\u3001\u3054\u4e01\u5be7\u306b\u63d0\u793a\u307e\u3067\u3055\u308c\u3066\u3044\u308b\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u304d\u8fbc\u3093\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3044\u308d\u3044\u308d\u805e\u304b\u308c\u3066\u3082\u57fa\u672c\u3059\u3079\u3066\u300cY\u300d\u3067\u3002<\/p>\n<p>\u305d\u308c\u306b\u3057\u3066\u3082<\/p>\n<pre class=\"brush: bash;\">opam depext\r\n<\/pre>\n<p>\u3063\u3066\u4f55\u306a\u3093\u3067\u3057\u3087\u3046\uff1f<\/p>\n<p>\u305f\u3060\u3001\u3053\u308c\u3067\u3082\u30a8\u30e9\u30fc\u306f\u7121\u304f\u306a\u3089\u306a\u3044\u3002<\/p>\n<p>\u4ed5\u65b9\u306a\u304f<\/p>\n<pre class=\"brush: bash;\">opam swtich 4.04.0\r\n<\/pre>\n<p>\u3068\u3057\u3066\u304b\u3089\uff08\u73fe\u6642\u70b9\u3067\u6700\u65b0\u307d\u3044\uff09\u3001\u518d\u5ea6<\/p>\n<pre class=\"brush: bash;\">opam install eliom\r\n<\/pre>\n<p>\u3068\u3059\u308b\u3068\u3001\u3069\u3046\u3084\u3089\u3046\u307e\u304finstall\u3067\u304d\u305f\u69d8\u5b50\u3002<\/p>\n<p>\u3053\u3053\u3067<\/p>\n<p>\/home\/develop\/<\/p>\n<p>\u3068\u304b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092mkdir\u3057\u3066\u304b\u3089\u3001cd\u3057\u3066develop\u306e\u4e2d\u306b\u5165\u308a\u3001\u304a\u3082\u3080\u308d\u306b<\/p>\n<pre class=\"brush: bash;\">eliom-distillery -name hello\r\n<\/pre>\n<p>\u3068\u304b\uff08hello\u306f\u9069\u5f53\u3067\u3059\uff09\u3059\u308b\u3068\u3001hello\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u3066\u3001\u52dd\u624b\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u3093\u3060\u304b\u61d0\u304b\u3057\u3044\uff57<\/p>\n<p>\u3067\u3001hello\u306b\u5165\u3063\u3066\u304b\u3089<\/p>\n<pre class=\"brush: bash;\">make test.byte\r\n<\/pre>\n<p>\u3068\u3059\u308b\u3068\u3001\u6700\u7d42\u7684\u306b<\/p>\n<pre class=\"brush: bash;\">ocsigenserver\u00a0 -c local\/etc\/hello\/hello-test.conf\r\n<\/pre>\n<p>\u3068\u8868\u793a\u3055\u308c\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u300clocalhost:8080\u300d\u3068\u3059\u308b\u3068<\/p>\n<p>\u30e1\u30c7\u30bf\u30af\u300cWelcome from Eliom&#8217;s distillery!\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3088\u3046\u3084\u304f\u30b9\u30bf\u30fc\u30c8\u30e9\u30a4\u30f3\u306b\u7acb\u3063\u305f\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u304c\u3001\u4eca\u5f8c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6a5f\u80fd\u306b\u3064\u3044\u3066\u5b9f\u88c5\u306e\u65b9\u6cd5\u3092\u8a66\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u306fweb\u30b5\u30a4\u30c8\u306e\u69cb\u7bc9\u304c\u76ee\u7684\u306a\u306e\u3067\u3001\u6700\u521d\u306f\u76ee\u306b\u898b\u3048\u3084\u3059\u304f\u3001\u8a00\u8a9e\u7fd2\u5f97\u306e\u52b9\u679c\u304c\u5b9f\u611f\u3057\u3084\u3059\u3044\u3068\u3053\u308d\u304b\u3089\u59cb\u3081\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\uff08\u3044\u305a\u308c\u5fc5\u8981\u3067\u306f\u3042\u308b\u304c\uff09\u3042\u307e\u308a\u76ee\u306b\u898b\u3048\u306b\u304f\u3044\u90e8\u5206\u3067\u3042\u308b<a href=\"http:\/\/ocsigen.org\/ocsigenserver\/\">ocsigenserver<\/a>\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u306a\u3069\u306f\u3001\u3068\u308a\u3042\u3048\u305a\u5f8c\u3002<\/p>\n<ol>\n<li>HTML\u8a18\u8ff0\u306b\u3088\u308b\u7c21\u5358\u306aweb\u30da\u30fc\u30b8\u306e\u8868\u793a\u3001\u3067\u304d\u308c\u3070<a href=\"http:\/\/www.smarty.net\/docsv2\/ja\/\">smarty<\/a>\u306a\u3069\u4f7f\u3063\u3066\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u8868\u793a\u3067\u304d\u308c\u3070\u30d9\u30bf\u30fc\u3002<\/li>\n<li>form\u753b\u9762\u3092\u4f5c\u6210\u3057\u3066get\u3084post\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/li>\n<li>DB\uff08\u3068\u308a\u3042\u3048\u305aMySQL\u3067\u3082\u306a\u3093\u3067\u3082OK\uff09\u306b\u63a5\u7d9a\u3057\u3066\u3001\u7c21\u5358\u306aSELECT\u3092\u767a\u884c\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u3001\u9069\u5f53\u306a\u5909\u6570\u3078\u683c\u7d0d\u3059\u308b\u3002<\/li>\n<li>\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306b\u3064\u3044\u3066\u3001\u7c21\u5358\u306a\u96c6\u8a08\u30fb\u5024\u306e\u64cd\u4f5c\u3092\u884c\u3044\u3001\u305d\u308c\u3092web\u30da\u30fc\u30b8\u3068\u3057\u3066\u8868\u793a\u3059\u308b\u3002<\/li>\n<li>\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3057\u305f\u30ed\u30b0\u30a4\u30f3\u30fb\u30ed\u30b0\u30a2\u30a6\u30c8\u753b\u9762\u306e\u5b9f\u88c5<\/li>\n<\/ol>\n<p>\u3053\u3053\u307e\u3067\u3067\u304d\u308c\u3070\u3001\u3042\u308b\u7a0b\u5ea6\u958b\u767a\u306f\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3060\u308d\u3046\u3068\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u306feliom\u306b\u3064\u3044\u3066\u8abf\u3079\u305f\u308a\u3057\u3066\u52c9\u5f37\u3057\u3088\u3046\u304b\u306a\u3068\u601d\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3057\u304b\u3057\u81ea\u5206\u3067\u3053\u3093\u306a\u4e8b\u3092\u66f8\u3044\u3066\u3066\u3064\u304f\u3065\u304f\u601d\u3046\u306e\u306f\u3001\u521d\u5fc3\u8005\u5411\u3051\u306eOcaml\u89e3\u8aac\u30b3\u30f3\u30c6\u30f3\u30c4\uff08\u672c\u3082\u30b5\u30a4\u30c8\u3082\uff09\u7121\u3044\u3088\u306a\u3041\u3068\u3044\u3046\u4e8b\u3002<\/p>\n<p>\u305d\u3082\u305d\u3082Ocaml\u304c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u521d\u5fc3\u8005\u306e\u89e6\u308b\u3088\u3046\u306a\u8a00\u8a9e\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u898b\u65b9\u3082\u3042\u308b\u306e\u304b\u3082\u77e5\u308c\u306a\u3044\u304c\u3001\u305d\u308c\u3067\u3044\u3066\u7247\u65b9\u3067\u306f\u300cPHP\u306a\u3093\u3066\u30a6\u30f3\u30b3\u300d\u3068\u6279\u5224\u3059\u308b\u3068\u3044\u3046\u306e\u306f\u3069\u3046\u306a\u306e\u304b\u306a\u30fc\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Ocaml\u5229\u7528\u8005\u306e\u88fe\u91ce\u304c\u5e83\u304c\u3063\u3066\u3001PHP\u304c\u99c6\u9010\u3055\u308c\u308b\u3088\u3046\u306a\u4e8b\u306b\u306a\u3063\u3066\u304f\u308c\u3070\u3001\u65e2\u5b58\u306e\u6280\u8853\u8005\u306b\u3068\u3063\u3066\u3082\u3044\u308d\u3044\u308d\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308b\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3046\u3093\u3067\u3059\u3051\u3069\u306d\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001\u65b0\u898f\u958b\u767a\u306b\u304a\u3044\u3066\u4eca\u307e\u3067\u306fJava\u3084Ruby\u3001PHP\u306a\u3093\u304b\u306e\u6bd4\u8f03\u7684\u30e1\u30b8\u30e3\u30fc\u3068\u3055\u308c\u308b\u8a00\u8a9e\u304c\u63a1\u7528\u3055\u308c\u308b\u53ef\u80fd\u6027\uff08\u30e1\u30f3\u30c6\u306b\u304b\u304b\u308b\u8981\u54e1\u306e\u78ba\u4fdd\u304c\u697d\u3068\u304b\u305d\u3046\u3044\u3046\u30ec\u30d9\u30eb\u3067\uff09\u304c\u9ad8\u304b\u3063\u305f\u3068\u601d\u3046\u3093\u3067\u3059\u304c\u3001\u4eba\u7684\u306a\u61f8\u5ff5\u304c\u7121\u304f\u306a\u3063\u3066\u6bcd\u56fd\u8a9e\u3067\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3084\u89e3\u8aac\u306a\u3069\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u5897\u3048\u3066\u304f\u308c\u3070\u3001\u300cOcaml\u3067\u3084\u3063\u3066\u307f\u307e\u3059\u304b\u300d\u3068\u306a\u308a\u307e\u305b\u3093\u304b\u306d\u3001\u306a\u3089\u306a\u3044\u3067\u3059\u304b\u305d\u3046\u3067\u3059\u304b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5468\u308a\u306eOcaml\u4f7f\u3044\u306e\u4eba\u306b\u8a00\u308f\u305b\u308b\u3068<\/p>\n<p>\u300c\u958b\u767a\u3084\u30e1\u30f3\u30c6\u306e\u30b9\u30d4\u30fc\u30c9\u304cPHP\u306a\u3093\u304b\u3068\u306f\u6841\u9055\u3044\u306b\u65e9\u304f\u7c21\u5358\u306b\u306a\u308b\u300d<\/p>\n<p>\u300c\u30d0\u30b0\u767a\u751f\u306e\u78ba\u7387\u304c\u6fc0\u6e1b\u3059\u308b\u300d<\/p>\n<p>\u300c\u305d\u3082\u305d\u3082\u958b\u767a\u304c\u697d\u3060\u3057\u3001\u5b9f\u884c\u30b9\u30d4\u30fc\u30c9\u3082C\u3068\u540c\u7b49\u300d<\/p>\n<p>\u3068\u3044\u3046<del>\u81ea\u6162<\/del>\u30e1\u30ea\u30c3\u30c8\u3092\u6563\u3005\u805e\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u300c\u307b\u3093\u307e\u304b\u3044\u306a\u300d\u3068\u3044\u3046\u6c17\u5206\u3067\u3059\u3002<\/p>\n<p>\u4eca\u5e74\u306f\u305d\u308c\u3092\u78ba\u8a8d\u3059\u308b\u4e00\u5e74\u3068\u306a\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div data-role=\"amazonjs\" data-asin=\"4781911609\" data-locale=\"JP\" data-tmpl=\"\" data-img-size=\"\" class=\"asin_4781911609_JP_ amazonjs_item\"><div class=\"amazonjs_indicator\"><span class=\"amazonjs_indicator_img\"><\/span><a class=\"amazonjs_indicator_title\" href=\"#\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e (Computer Science Library)<\/a><span class=\"amazonjs_indicator_footer\"><\/span><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5e74\u3082\u6b8b\u308a\u308f\u305a\u304b360\u65e5\u8db3\u3089\u305a\u3068\u306a\u308a\u307e\u3057\u305f\u3002\u61f2\u308a\u305a\u306bOcaml\u3078\u306e\u6311\u6226\u3067\u3059\uff01 \u307e\u305a\u306fVMware\u3078Mint\u306e18\u3092\u5165\u308c\u3066\u3001opam\u306b\u3088\u308b\u74b0\u5883\u306e\u69cb\u7bc9\u304b\u3089\u3002 \u3053\u308c\u306f\u4ee5\u524d\u306b\u56db\u82e6\u516b\u82e6\u3057\u305f\u30a8\u30f3\u30c8\u30ea Ubuntu7\u3078OCaml\u30e2\u30ed\u30e2 &hellip; <a href=\"https:\/\/yonezo.biz\/?p=5919\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-5919","post","type-post","status-publish","format-standard","hentry","category-6"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yonezo.biz\/index.php?rest_route=\/wp\/v2\/posts\/5919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yonezo.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yonezo.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yonezo.biz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yonezo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5919"}],"version-history":[{"count":4,"href":"https:\/\/yonezo.biz\/index.php?rest_route=\/wp\/v2\/posts\/5919\/revisions"}],"predecessor-version":[{"id":5923,"href":"https:\/\/yonezo.biz\/index.php?rest_route=\/wp\/v2\/posts\/5919\/revisions\/5923"}],"wp:attachment":[{"href":"https:\/\/yonezo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yonezo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yonezo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}