{"action":"created","issue":{"url":"https://api.github.com/repos/GrahamDumpleton/mod_wsgi/issues/97","labels_url":"https://api.github.com/repos/GrahamDumpleton/mod_wsgi/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/GrahamDumpleton/mod_wsgi/issues/97/comments","events_url":"https://api.github.com/repos/GrahamDumpleton/mod_wsgi/issues/97/events","html_url":"https://github.com/GrahamDumpleton/mod_wsgi/issues/97","id":109394263,"number":97,"title":"Can't pip install after upgrading to El Capitan","user":{"login":"jsma","id":24574,"avatar_url":"https://avatars.githubusercontent.com/u/24574?v=3","gravatar_id":"","url":"https://api.github.com/users/jsma","html_url":"https://github.com/jsma","followers_url":"https://api.github.com/users/jsma/followers","following_url":"https://api.github.com/users/jsma/following{/other_user}","gists_url":"https://api.github.com/users/jsma/gists{/gist_id}","starred_url":"https://api.github.com/users/jsma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsma/subscriptions","organizations_url":"https://api.github.com/users/jsma/orgs","repos_url":"https://api.github.com/users/jsma/repos","events_url":"https://api.github.com/users/jsma/events{/privacy}","received_events_url":"https://api.github.com/users/jsma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-01T22:03:38Z","updated_at":"2015-10-02T01:02:54Z","closed_at":null,"body":"I upgraded from Yosemite to El Capitan. I use pyenv for installing various versions of Python on my system. It took some yak shaving to get the Python installs working again (they couldn't find the openssl libs to build some packages) but now I hit an error when trying to ``pip install mod_wsgi``:\r\n\r\n    ...\r\n    In file included from src/server/mod_wsgi.c:21:\r\n    In file included from src/server/wsgi_apache.h:38:\r\n    In file included from /usr/include/apache2/httpd.h:44:\r\n    In file included from /usr/include/apache2/ap_config.h:25:\r\n    /usr/include/apache2/ap_hooks.h:39:10: fatal error: 'apr.h' file not found\r\n    #include \"apr.h\"\r\n             ^\r\n    1 error generated.\r\n    error: command 'clang' failed with exit status 1\r\n\r\nAs the error message indicates, ``apr.h`` does not exist in ``/usr/include/apache2``. Here's where that file may exist:\r\n\r\n    $ sudo find / -name apr.h\r\n    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/apr-1/apr.h\r\n    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-migrator/sdk/MacOSX.sdk/usr/include/apr-1/apr.h\r\n    /usr/include/apr-1/apr.h\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GrahamDumpleton/mod_wsgi/issues/comments/144891238","html_url":"https://github.com/GrahamDumpleton/mod_wsgi/issues/97#issuecomment-144891238","issue_url":"https://api.github.com/repos/GrahamDumpleton/mod_wsgi/issues/97","id":144891238,"user":{"login":"jsma","id":24574,"avatar_url":"https://avatars.githubusercontent.com/u/24574?v=3","gravatar_id":"","url":"https://api.github.com/users/jsma","html_url":"https://github.com/jsma","followers_url":"https://api.github.com/users/jsma/followers","following_url":"https://api.github.com/users/jsma/following{/other_user}","gists_url":"https://api.github.com/users/jsma/gists{/gist_id}","starred_url":"https://api.github.com/users/jsma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsma/subscriptions","organizations_url":"https://api.github.com/users/jsma/orgs","repos_url":"https://api.github.com/users/jsma/repos","events_url":"https://api.github.com/users/jsma/events{/privacy}","received_events_url":"https://api.github.com/users/jsma/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T01:02:54Z","updated_at":"2015-10-02T01:02:54Z","body":"Sorry to be the bearer of bad news! Thanks for the prompt replies. This is not an emergency on my part, I only use this as a Django ``runserver`` replacement locally but can just use that in the meantime."}}