{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2653","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2653/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2653/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2653/events","html_url":"https://github.com/haskell/cabal/issues/2653","id":87115461,"number":2653,"title":"`ar` permission errors on OS X 10.11 `El Capitan`","user":{"login":"LukeHoersten","id":743,"avatar_url":"https://avatars.githubusercontent.com/u/743?v=3","gravatar_id":"","url":"https://api.github.com/users/LukeHoersten","html_url":"https://github.com/LukeHoersten","followers_url":"https://api.github.com/users/LukeHoersten/followers","following_url":"https://api.github.com/users/LukeHoersten/following{/other_user}","gists_url":"https://api.github.com/users/LukeHoersten/gists{/gist_id}","starred_url":"https://api.github.com/users/LukeHoersten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukeHoersten/subscriptions","organizations_url":"https://api.github.com/users/LukeHoersten/orgs","repos_url":"https://api.github.com/users/LukeHoersten/repos","events_url":"https://api.github.com/users/LukeHoersten/events{/privacy}","received_events_url":"https://api.github.com/users/LukeHoersten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-06-10T21:36:06Z","updated_at":"2015-07-11T05:26:52Z","closed_at":null,"body":"When running cabal operations, things fail with `ar` permission errors:\r\n\r\n```\r\n$ cabal install cabal-install\r\ncabal: /usr/bin/ar: permission denied\r\n```\r\n\r\nThis started happening after upgrading to OS X 10.11. Running with `-v3` does not give any more information including the file that `ar` is being run on.\r\n\r\n```\r\n$ ls -al `which ar`\r\n-rwxr-xr-x  1 root  wheel  18160 Jun  3 07:10 /usr/bin/ar\r\n```\r\n\r\nPermissions on the `ar` binary are fine and can be run directly with no issue. I suspect the file `ar` is being run on doesn't have read permissions."},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/120574958","html_url":"https://github.com/haskell/cabal/issues/2653#issuecomment-120574958","issue_url":"https://api.github.com/repos/haskell/cabal/issues/2653","id":120574958,"user":{"login":"alexbiehl","id":1876617,"avatar_url":"https://avatars.githubusercontent.com/u/1876617?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbiehl","html_url":"https://github.com/alexbiehl","followers_url":"https://api.github.com/users/alexbiehl/followers","following_url":"https://api.github.com/users/alexbiehl/following{/other_user}","gists_url":"https://api.github.com/users/alexbiehl/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbiehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbiehl/subscriptions","organizations_url":"https://api.github.com/users/alexbiehl/orgs","repos_url":"https://api.github.com/users/alexbiehl/repos","events_url":"https://api.github.com/users/alexbiehl/events{/privacy}","received_events_url":"https://api.github.com/users/alexbiehl/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T05:26:52Z","updated_at":"2015-07-11T05:26:52Z","body":"I don't understand how write-protection is preventing `ar` and `gcc` from being invoked, since we want to execute, not write. Can someone elaborate? "}}