{"action":"closed","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/45780","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/45780/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/45780/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/45780/events","html_url":"https://github.com/Homebrew/homebrew/issues/45780","id":115670993,"number":45780,"title":"bottled postgis 2.2.0 still looking for gdal 1.x when gdal 2.0 installed","user":{"login":"mofoyoda","id":5087411,"avatar_url":"https://avatars.githubusercontent.com/u/5087411?v=3","gravatar_id":"","url":"https://api.github.com/users/mofoyoda","html_url":"https://github.com/mofoyoda","followers_url":"https://api.github.com/users/mofoyoda/followers","following_url":"https://api.github.com/users/mofoyoda/following{/other_user}","gists_url":"https://api.github.com/users/mofoyoda/gists{/gist_id}","starred_url":"https://api.github.com/users/mofoyoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mofoyoda/subscriptions","organizations_url":"https://api.github.com/users/mofoyoda/orgs","repos_url":"https://api.github.com/users/mofoyoda/repos","events_url":"https://api.github.com/users/mofoyoda/events{/privacy}","received_events_url":"https://api.github.com/users/mofoyoda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/user%20configuration","name":"user configuration","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-07T14:52:49Z","updated_at":"2015-11-16T04:42:33Z","closed_at":"2015-11-16T04:42:33Z","body":"I've installed postgresql 9.4.5, gdal 2.0 with tweaked formula and then postgis.\r\nWhen I try to `create extension postgis` in my database, I get this\r\n\r\n    ERROR: could not load library \"/usr/local/lib/postgresql/rtpostgis-2.2.so\":\r\n     dlopen(/usr/local/lib/postgresql/rtpostgis-2.2.so, 10): \r\n      Library not loaded: /usr/local/opt/gdal/lib/libgdal.1.dylib\r\n      Referenced from: /usr/local/lib/postgresql/rtpostgis-2.2.so\r\n      Reason: image not found\r\n    SQL state: 58P01\r\n\r\nSeems like it's looking for older gdal (since postgis was poured from bottle).\r\nReinstalling with `--build-from-source` option seems to solve this."}}