{"action":"created","issue":{"url":"https://api.github.com/repos/elixircnx/comeonin/issues/48","labels_url":"https://api.github.com/repos/elixircnx/comeonin/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/elixircnx/comeonin/issues/48/comments","events_url":"https://api.github.com/repos/elixircnx/comeonin/issues/48/events","html_url":"https://github.com/elixircnx/comeonin/issues/48","id":109501003,"number":48,"title":"Unable to compile on El Capitan with Elixir 1.1.1 (Erlang/OTP 18)","user":{"login":"cavneb","id":12481,"avatar_url":"https://avatars.githubusercontent.com/u/12481?v=3","gravatar_id":"","url":"https://api.github.com/users/cavneb","html_url":"https://github.com/cavneb","followers_url":"https://api.github.com/users/cavneb/followers","following_url":"https://api.github.com/users/cavneb/following{/other_user}","gists_url":"https://api.github.com/users/cavneb/gists{/gist_id}","starred_url":"https://api.github.com/users/cavneb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cavneb/subscriptions","organizations_url":"https://api.github.com/users/cavneb/orgs","repos_url":"https://api.github.com/users/cavneb/repos","events_url":"https://api.github.com/users/cavneb/events{/privacy}","received_events_url":"https://api.github.com/users/cavneb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elixircnx/comeonin/labels/el%20capitan","name":"el capitan","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-02T14:25:49Z","updated_at":"2015-10-14T14:24:23Z","closed_at":null,"body":"I installed El Capitan yesterday (yes, I know..) and now I am unable to compile comeonin into my Phoenix application. Here's the error message:\r\n\r\n```\r\n$ mix do deps.get, compile\r\nRunning dependency resolution\r\nAll dependencies up to date\r\n==> comeonin\r\ncould not compile dependency :comeonin, \"mix compile\" failed. You can recompile this dependency with \"mix deps.compile comeonin\", update it with \"mix deps.update comeonin\" or clean it with \"mix deps.clean comeonin\"\r\n** (Mix.Error) Could not compile Comeonin.\r\n\r\nPlease make sure that you are using Erlang / OTP version 17.0 or later\r\nand that you have a C compiler installed.\r\n\r\nPlease follow the directions below for the operating system you are\r\nusing:\r\n\r\nMac OS X: You need to have gcc and make installed. Try running the\r\ncommands `gcc --version` and / or `make --version`. If these programs\r\nare not installed, you will be prompted to install them.\r\n\r\nLinux: You need to have gcc and make installed. If you are using\r\nUbuntu or any other Debian-based system, install the packages\r\n`build-essential`. Also install `erlang-dev` package if not\r\nincluded in your Erlang/OTP version.\r\n\r\n\r\n    mix.exs:42: Mix.Tasks.Compile.Comeonin.build_error/1\r\n    mix.exs:18: Mix.Tasks.Compile.Comeonin.run/1\r\n    (elixir) lib/enum.ex:1043: anonymous fn/3 in Enum.map/2\r\n    (elixir) lib/enum.ex:1387: Enum.\"-reduce/3-lists^foldl/2-0-\"/3\r\n    (elixir) lib/enum.ex:1043: Enum.map/2\r\n    (mix) lib/mix/tasks/compile.all.ex:19: anonymous fn/1 in Mix.Tasks.Compile.All.run/1\r\n    (mix) lib/mix/tasks/compile.all.ex:37: Mix.Tasks.Compile.All.with_logger_app/1\r\n    (mix) lib/mix/tasks/compile.ex:64: Mix.Tasks.Compile.run/1\r\n```\r\n\r\nI confirmed that make and gcc are both working. I also have used xcode, so I don't need to accept any agreements on their end.\r\n\r\nI'm using Elixir 1.1.1 / Erlang/OTP 18"},"comment":{"url":"https://api.github.com/repos/elixircnx/comeonin/issues/comments/148065688","html_url":"https://github.com/elixircnx/comeonin/issues/48#issuecomment-148065688","issue_url":"https://api.github.com/repos/elixircnx/comeonin/issues/48","id":148065688,"user":{"login":"ikusei","id":90779,"avatar_url":"https://avatars.githubusercontent.com/u/90779?v=3","gravatar_id":"","url":"https://api.github.com/users/ikusei","html_url":"https://github.com/ikusei","followers_url":"https://api.github.com/users/ikusei/followers","following_url":"https://api.github.com/users/ikusei/following{/other_user}","gists_url":"https://api.github.com/users/ikusei/gists{/gist_id}","starred_url":"https://api.github.com/users/ikusei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikusei/subscriptions","organizations_url":"https://api.github.com/users/ikusei/orgs","repos_url":"https://api.github.com/users/ikusei/repos","events_url":"https://api.github.com/users/ikusei/events{/privacy}","received_events_url":"https://api.github.com/users/ikusei/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T14:24:23Z","updated_at":"2015-10-14T14:24:23Z","body":"the new rootless mode in El Capitan is the problem. You can deaktivate this mode and after that, create a symlink:\r\n```\r\nsudo nvram boot-args=\"rootless=0\"; osascript -e 'tell app \"loginwindow\" to «event aevtrrst»'\r\nsudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2\r\n```"}}