{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/1798","labels_url":"https://api.github.com/repos/manastech/crystal/issues/1798/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/1798/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/1798/events","html_url":"https://github.com/manastech/crystal/issues/1798","id":112645338,"number":1798,"title":"crystal failed to compile on OSX(10.11 El Capitan) (version: 0.9.0)","user":{"login":"conflikt","id":116940,"avatar_url":"https://avatars.githubusercontent.com/u/116940?v=3","gravatar_id":"","url":"https://api.github.com/users/conflikt","html_url":"https://github.com/conflikt","followers_url":"https://api.github.com/users/conflikt/followers","following_url":"https://api.github.com/users/conflikt/following{/other_user}","gists_url":"https://api.github.com/users/conflikt/gists{/gist_id}","starred_url":"https://api.github.com/users/conflikt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conflikt/subscriptions","organizations_url":"https://api.github.com/users/conflikt/orgs","repos_url":"https://api.github.com/users/conflikt/repos","events_url":"https://api.github.com/users/conflikt/events{/privacy}","received_events_url":"https://api.github.com/users/conflikt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/manastech/crystal/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/manastech/crystal/labels/project%20infrastructure","name":"project infrastructure","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-21T17:58:33Z","updated_at":"2015-11-24T00:19:35Z","closed_at":null,"body":"Recently got crystal upgraded via homebrew from 0.8.x to 0.9.0. Earlier everything was working fine, but suddenly with this upgrade, crystal started to fail to compile with error\r\n\r\n~~~\r\ncrystal eval 'puts \"Hello world!\"'\r\nld: library not found for -levent\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nError: execution of command failed with code: 1: `cc -o \"/Users/konflikt/.crystal/crystal-run-eval.tmp\" \"${@}\"  -rdynamic  -levent -lpcl -lpcre -lgc -lpthread -ldl`\r\n~~~\r\n\r\nAll the required crystal dependencies are install \r\n~~~\r\nbrew install \\\r\n  bdw-gc \\\r\n  gmp \\\r\n  libevent \\\r\n  libpcl \\\r\n  libxml2 \\\r\n  libyaml \\\r\n  llvm\r\nWarning: bdw-gc-7.4.2 already installed\r\nWarning: gmp-6.0.0a already installed\r\nWarning: libevent-2.0.22 already installed\r\nWarning: libpcl-1.12 already installed\r\nWarning: libxml2-2.9.2 already installed\r\nWarning: libyaml-0.1.6_1 already installed\r\nWarning: llvm-3.6.2 already installed\r\n~~~\r\n\r\nSeems like an issue with current upgrade.\r\nSystem: Mac OSX (10.11 El Capitan), Crystal: 0.9.0, LLVM: 3.6.2"},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/159111829","html_url":"https://github.com/manastech/crystal/issues/1798#issuecomment-159111829","issue_url":"https://api.github.com/repos/manastech/crystal/issues/1798","id":159111829,"user":{"login":"squarism","id":64467,"avatar_url":"https://avatars.githubusercontent.com/u/64467?v=3","gravatar_id":"","url":"https://api.github.com/users/squarism","html_url":"https://github.com/squarism","followers_url":"https://api.github.com/users/squarism/followers","following_url":"https://api.github.com/users/squarism/following{/other_user}","gists_url":"https://api.github.com/users/squarism/gists{/gist_id}","starred_url":"https://api.github.com/users/squarism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squarism/subscriptions","organizations_url":"https://api.github.com/users/squarism/orgs","repos_url":"https://api.github.com/users/squarism/repos","events_url":"https://api.github.com/users/squarism/events{/privacy}","received_events_url":"https://api.github.com/users/squarism/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T00:19:35Z","updated_at":"2015-11-24T00:19:35Z","body":"Same problem (levent not found despite having deps installed).  Same situation (upgraded to 10.11).  @waj fix worked for me.  Thanks!  :cake:"}}