Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Boost 1.59.0 breaks PostGIS 2.1.7_1 #45695

Closed
sethdeckard opened this issue Nov 4, 2015 · 15 comments
Closed

Boost 1.59.0 breaks PostGIS 2.1.7_1 #45695

sethdeckard opened this issue Nov 4, 2015 · 15 comments

Comments

@sethdeckard
Copy link

Upgraded packages today and found Boost 1.59 breaks current PostGIS install:

could not load library "/usr/local/Cellar/postgresql/9.4.5/lib/postgis-2.1.so": 
dlopen(/usr/local/Cellar/postgresql/9.4.5/lib/postgis-2.1.so, 10): 
Symbol not found: 
__ZN5boost7archive21basic_binary_iarchiveINS0_15binary_iarchiveEE13load_overrideERNS0_15class_name_typeEi

Switching back to 1.58.0 works.

@gfairchild
Copy link
Contributor

I'm seeing the exact same thing. Literally just came here to report it.

@DomT4
Copy link
Member

DomT4 commented Nov 4, 2015

Can either of you brew reinstall postgis -s and let us know if that resolves the error for you, Thanks.

@gfairchild
Copy link
Contributor

Still getting the error.

@gfairchild
Copy link
Contributor

For what it's worth, I've tried totally uninstalling postgres, postgis, and boost, and reinstalling all of them, and the error is still present.

@DomT4
Copy link
Member

DomT4 commented Nov 5, 2015

Hmm. How is postgis picking the Boost libraries up? There's no explicit dependency in the formula, should there be?

@oyeanuj
Copy link

oyeanuj commented Nov 5, 2015

Getting the exact same issue as well.

@gfairchild
Copy link
Contributor

@DomT4, I'm not sure exactly, but if you brew uninstall postgres postgis boost and then brew install postgis, postgres and boost are both automatically downloaded and installed.

@nheeren
Copy link

nheeren commented Nov 5, 2015

Could it have anything to do with SFCgal, which is a dependency to postgis I think. See the error here: http://stackoverflow.com/q/33491836/2075003

PG::InternalError: ERROR: could not load library "/usr/local/Cellar/postgresql/9.4.5/lib/postgis-2.1.so": dlopen(/usr/local/Cellar/postgresql/9.4.5/lib/postgis-2.1.so, 10): Symbol not found: __ZN5boost7archive21basic_binary_iarchiveINS0_15binary_iarchiveEE13load_overrideERNS0_15class_name_typeEi
Referenced from: /usr/local/lib/libSFCGAL.1.dylib
Expected in: /usr/local/lib/libboost_serialization-mt.dylib
in /usr/local/lib/libSFCGAL.1.dylib

I had a similar error.

@rebelliard
Copy link

brew switch boost 1.58.0

worked for me.

@xu-cheng
Copy link
Member

xu-cheng commented Nov 5, 2015

@gfairchild
Copy link
Contributor

Excellent, it'll be nice to get that merged. Thanks for your work, @xu-cheng :)

@ivorbosloper
Copy link

@rebelliard brew switch boost 1.58.0 worked for me as well. Thanks!

@regularRichi
Copy link

I am having the same problem right now, is there a fix?

brew switch boost 1.58.0

doesn't work for me:

Error: boost does not have a version "1.58.0" in the Cellar.
Versions available: 1.59.0

@bfontaine
Copy link
Contributor

@gazz94 brew switch only works for installed versions.

@gormster
Copy link

gormster commented Nov 6, 2015

brew uninstall boost
brew tap homebrew/versions
brew install boost155
brew link --force boost155

worked for me.

@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests