{"action":"closed","issue":{"url":"https://api.github.com/repos/ocamllabs/ocaml-ctypes/issues/20","labels_url":"https://api.github.com/repos/ocamllabs/ocaml-ctypes/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/ocamllabs/ocaml-ctypes/issues/20/comments","events_url":"https://api.github.com/repos/ocamllabs/ocaml-ctypes/issues/20/events","html_url":"https://github.com/ocamllabs/ocaml-ctypes/issues/20","id":15223442,"number":20,"title":"Error message if `libffi` is not present","user":{"login":"amirmc","id":121855,"avatar_url":"https://avatars.githubusercontent.com/u/121855?v=3","gravatar_id":"","url":"https://api.github.com/users/amirmc","html_url":"https://github.com/amirmc","followers_url":"https://api.github.com/users/amirmc/followers","following_url":"https://api.github.com/users/amirmc/following{/other_user}","gists_url":"https://api.github.com/users/amirmc/gists{/gist_id}","starred_url":"https://api.github.com/users/amirmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amirmc/subscriptions","organizations_url":"https://api.github.com/users/amirmc/orgs","repos_url":"https://api.github.com/users/amirmc/repos","events_url":"https://api.github.com/users/amirmc/events{/privacy}","received_events_url":"https://api.github.com/users/amirmc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ocamllabs/ocaml-ctypes/labels/packaging","name":"packaging","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ocamllabs/ocaml-ctypes/milestones/2","labels_url":"https://api.github.com/repos/ocamllabs/ocaml-ctypes/milestones/2/labels","id":813641,"number":2,"title":"ctypes 0.4","description":"","creator":{"login":"yallop","id":1736496,"avatar_url":"https://avatars.githubusercontent.com/u/1736496?v=3","gravatar_id":"","url":"https://api.github.com/users/yallop","html_url":"https://github.com/yallop","followers_url":"https://api.github.com/users/yallop/followers","following_url":"https://api.github.com/users/yallop/following{/other_user}","gists_url":"https://api.github.com/users/yallop/gists{/gist_id}","starred_url":"https://api.github.com/users/yallop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yallop/subscriptions","organizations_url":"https://api.github.com/users/yallop/orgs","repos_url":"https://api.github.com/users/yallop/repos","events_url":"https://api.github.com/users/yallop/events{/privacy}","received_events_url":"https://api.github.com/users/yallop/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":7,"state":"open","created_at":"2014-10-04T15:22:15Z","updated_at":"2015-01-29T23:49:29Z","due_on":null,"closed_at":null},"comments":25,"created_at":"2013-06-06T13:51:59Z","updated_at":"2015-01-29T23:49:29Z","closed_at":"2015-01-29T23:49:29Z","body":"I get the following error if I do not have libffi present.  Apparently @lpw25's error message is much more friendly and helpful :)\r\n\r\nI'm on a Mac and using homebrew.\r\n\r\n```text\r\n==== ERROR [while installing ctypes.0.1] ====\r\n# opam-version    1.0.1\r\n# os              darwin\r\n# command         make\r\n# path            /Users/amir/.opam/4.01.0dev+trunk/build/ctypes.0.1\r\n# compiler        4.01.0dev+trunk\r\n# exit-code       2\r\n# env-file        /Users/amir/.opam/4.01.0dev+trunk/build/ctypes.0.1/ctypes-18112-ad8886.env\r\n# stdout-file     /Users/amir/.opam/4.01.0dev+trunk/build/ctypes.0.1/ctypes-18112-ad8886.out\r\n# stderr-file     /Users/amir/.opam/4.01.0dev+trunk/build/ctypes.0.1/ctypes-18112-ad8886.err\r\n### stdout ###\r\noasis setup\r\nocaml setup.ml -configure --enable-tests\r\ntesting for brew: .............................. available\r\ntesting for pkg-config: ........................ available\r\ntesting for libffi:\r\n### stderr ###\r\nException: End_of_file.\r\nE: Failure(\"Command 'ocaml discover.ml -ocamlc /Users/amir/.opam/4.01.0dev+trunk/bin/ocamlc.opt -ext-obj .o -exec-name a.out' terminated with error code 2\")\r\nmake: *** [setup.data] Error 1\r\n\r\n'opam install ctypes' failed.\r\n```"}}