How to fix the Unbound module Graphics in an ocaml project

Image
From ~/pr/gitl/ocaml-gol In a constant effort to learn new programming languages, I'm currently trying to use ocaml , a free and open-source general-purpose, multi-paradigm programming language maintained at the Inria . It's basically an extension of Caml with object-oriented features. I'm mostly interested by its functionnal and pattern matching features but the module part of the language can be a bit difficult to understand for someone with little to none ML (Meta Language) background.   The error When trying to use the graphics module to create a graphical window and go just a little further than the simplest helloworld program, here is the result : If the project uses dune : (executable (name ocaml_project) (libraries lwt.unix graphics) ) with this code : let () = Printf.printf "Hello, world!\n";; Lwt_io.printf "Hello, world!\n";; Graphics.open_graph " 800x600";; The first times I built this project running the du

How to fix the meteor/mongodb locale issue

A screenshot of mrt-manager
The mrt-manager homepage

When trying to run mrt-manager, a meteorjs project, on a newly installed Debian Stretch, I had the following issue :

Unexpected mongo exit code 1. Restarting.
Unexpected mongo exit code 1. Restarting.
Unexpected mongo exit code 1. Restarting.
Unexpected mongo exit code 1. Restarting.
Unexpected mongo exit code 1. Restarting.
Can't start Mongo server.
MongoDB failed global initialization

I got this issue when trying to work on mrt-manager after a fresh Debian install.

This issue is due to a missing locale, a set of language/country code pair used to define user interface language in i18n context. You probably installed your favorite GNU/Linux distribution in your native language and you didn't installed the english locale.

Edit the /etc/locale.gen as root and uncomment the following line :

en_US.UTF-8 UTF-8

Then execute the following command as root :

#locale-gen

Now, reboot the computer and mongodb should start.

Comments

Popular posts from this blog

How to make a map of variant in C++