{"action":"opened","issue":{"url":"https://api.github.com/repos/ocaml/opam/issues/2525","repository_url":"https://api.github.com/repos/ocaml/opam","labels_url":"https://api.github.com/repos/ocaml/opam/issues/2525/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/opam/issues/2525/comments","events_url":"https://api.github.com/repos/ocaml/opam/issues/2525/events","html_url":"https://github.com/ocaml/opam/issues/2525","id":149532324,"number":2525,"title":"next: `opam init` fails on FreeBSD","user":{"login":"seliopou","id":25269,"avatar_url":"https://avatars.githubusercontent.com/u/25269?v=3","gravatar_id":"","url":"https://api.github.com/users/seliopou","html_url":"https://github.com/seliopou","followers_url":"https://api.github.com/users/seliopou/followers","following_url":"https://api.github.com/users/seliopou/following{/other_user}","gists_url":"https://api.github.com/users/seliopou/gists{/gist_id}","starred_url":"https://api.github.com/users/seliopou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seliopou/subscriptions","organizations_url":"https://api.github.com/users/seliopou/orgs","repos_url":"https://api.github.com/users/seliopou/repos","events_url":"https://api.github.com/users/seliopou/events{/privacy}","received_events_url":"https://api.github.com/users/seliopou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-19T17:46:45Z","updated_at":"2016-04-19T17:46:45Z","closed_at":null,"body":"Here's the output while attempting to setup the system switch (the output files are empty):\r\n\r\n```bash\r\n\r\n=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n-> installed base-bigarray.base\r\n-> installed base-threads.base\r\n-> installed base-unix.base\r\n[ERROR] The compilation of ocaml failed at \"./gen.sh\".\r\n\r\n#=== ERROR while compiling ocaml.system =======================================#\r\n# opam-version 2.0~alpha (7cf601e4d403df78abc945853399e4eda8aa48cf)\r\n# os           freebsd\r\n# command      ./gen.sh\r\n# path         /home/vagrant/.opam/system/.opam-switch/build/ocaml.system\r\n# exit-code    127\r\n# env-file     /home/vagrant/.opam/system/.opam-switch/build/ocaml.system/ocaml-61997-d474c2.env\r\n# stdout-file  /home/vagrant/.opam/system/.opam-switch/build/ocaml.system/ocaml-61997-d474c2.out\r\n# stderr-file  /home/vagrant/.opam/system/.opam-switch/build/ocaml.system/ocaml-61997-d474c2.err\r\n```\r\n\r\nI believe the immediate issue is that the location of `bash` is hard-coded in the `gen.sh` script. Using `#!/usr/bin/env bash` should work around this.\r\n\r\nAnother portability issue is lurking behind that one. `gen.sh` uses `md5sum`, which is not installed on FreeBSD systems. In its place is `md5."}}