{"id":7,"date":"2020-01-26T22:47:30","date_gmt":"2020-01-26T21:47:30","guid":{"rendered":"http:\/\/optinfo-sup.prepa-carnot.fr\/?p=7"},"modified":"2020-02-16T15:01:34","modified_gmt":"2020-02-16T14:01:34","slug":"installer-ocaml-sur-sa-machine","status":"publish","type":"post","link":"https:\/\/info.prepa-carnot.fr\/index.php\/2020\/01\/26\/installer-ocaml-sur-sa-machine\/","title":{"rendered":"Installer OCaml sur sa machine"},"content":{"rendered":"\n<p>Il est plus que vivement conseill\u00e9 d&rsquo;installer OCaml sur sa machine personnelle afin de pouvoir travailler chez soi, reprendre les TP, et v\u00e9rifier ses programmes.<\/p>\n\n\n\n<p>Sous Windows, si vous avez aim\u00e9 l&rsquo;environnement du lyc\u00e9e, vous pouvez aller voir <a href=\"https:\/\/optioninfompsiliv.blogspot.fr\/2018\/01\/ocaml-avec-emacs-et-tuareg-sous-windows.html\">ici<\/a>. C&rsquo;est pratique, juste une archive \u00e0 d\u00e9compresser et vous pouvez travailler (le d\u00e9marrage est un peu lent mais ensuite, cela fonctionne tr\u00e8s bien).<\/p>\n\n\n\n<p>Si vous \u00eates sous Windows ou Mac OS, une autre solution est d\u2019utiliser <a href=\"https:\/\/jean-mouric.pagesperso-orange.fr\/#WinCamlbinaries\">WinCaml<\/a> ou <a href=\"https:\/\/jean-mouric.pagesperso-orange.fr\/#MacCaml\">MacCaml<\/a> qui int\u00e8grent un IDE. Pour Mac OS, <a href=\"http:\/\/www.armelin.fr\/app_camlx_download\">CamlX<\/a> fonctionne aussi tr\u00e8s bien. Pour tous les syst\u00e8mes (dont Linux), on peut aussi utiliser <a href=\"https:\/\/jean-mouric.pagesperso-orange.fr\/#JavaCaml\">JavaCaml<\/a>.<\/p>\n\n\n\n<p>Sinon, vous pouvez toujours puiser <a href=\"http:\/\/caml.inria.fr\/download.fr.html#idp27089744\">\u00e0 la source<\/a>, ou mieux, en utilisant <a href=\"http:\/\/opam.ocaml.org\/doc\/Install.html\">Opam<\/a>. Comme IDE, on peut utiliser le module <a href=\"http:\/\/www.algo-prog.info\/ocaide\/install.php\">OcaIDE<\/a>  pour <a href=\"http:\/\/www.eclipse.org\/downloads\/\">Eclipse<\/a>, installer <a href=\"https:\/\/www.gnu.org\/software\/emacs\/download.html\">Emacs<\/a> avec le mode <a href=\"https:\/\/github.com\/ocaml\/tuareg\">Tuareg<\/a> (comme au lyc\u00e9e). Cette derni\u00e8re solution fonctionne bien sous Mac OS et surtout sur Linux (voir <a href=\"https:\/\/doc.ubuntu-fr.org\/ocaml\">ici<\/a> pour Ubuntu).<\/p>\n\n\n\n<p>Si vous n&rsquo;y arrivez pas, en attendant, vous pouvez utiliser <a href=\"https:\/\/try.ocamlpro.com\/js_of_ocaml\/\">OCaml en ligne<\/a> mais ce n&rsquo;est pas aussi pratique.<\/p>\n\n\n\n<p>Si vous n&rsquo;avez pas peur de compiler vous-m\u00eame votre propre OCaml, nous vous conseillons alors plut\u00f4t l&rsquo;extension d&rsquo;Arthur Chargu\u00e9raud qui produit des messages d&rsquo;erreurs bien plus clairs (c&rsquo;est celle que nous avons au lyc\u00e9e). Il faut compiler les sources disponibles <a href=\"https:\/\/github.com\/charguer\/ocaml\/tree\/4.02.2+improved-errors\">ici<\/a> puis utiliser :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ocaml -easy-type-errors<\/pre>\n\n\n\n<p>Si vous rencontrez des difficult\u00e9s pour installer OCaml sur vos machines, n&rsquo;h\u00e9sitez pas \u00e0 nous demander de l&rsquo;aide.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Il est plus que vivement conseill\u00e9 d&rsquo;installer OCaml sur sa machine personnelle afin de pouvoir travailler chez soi, reprendre les TP, et v\u00e9rifier ses programmes. Sous Windows, si vous avez aim\u00e9 l&rsquo;environnement du lyc\u00e9e, vous pouvez aller voir ici. C&rsquo;est pratique, juste une archive \u00e0 d\u00e9compresser et vous pouvez travailler (le d\u00e9marrage est un peu &hellip; <a href=\"https:\/\/info.prepa-carnot.fr\/index.php\/2020\/01\/26\/installer-ocaml-sur-sa-machine\/\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;Installer OCaml sur sa machine&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/info.prepa-carnot.fr\/index.php\/wp-json\/wp\/v2\/posts\/7"}],"collection":[{"href":"https:\/\/info.prepa-carnot.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/info.prepa-carnot.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/info.prepa-carnot.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/info.prepa-carnot.fr\/index.php\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":7,"href":"https:\/\/info.prepa-carnot.fr\/index.php\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/info.prepa-carnot.fr\/index.php\/wp-json\/wp\/v2\/posts\/7\/revisions\/122"}],"wp:attachment":[{"href":"https:\/\/info.prepa-carnot.fr\/index.php\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/info.prepa-carnot.fr\/index.php\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/info.prepa-carnot.fr\/index.php\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}