16.10 - trouble linking boost after upgrade - Ask Ubuntu


after upgrading ubuntu 16.04 16.10, started receiving error whenever tried related postgis:

could not load library "/usr/lib/postgresql/9.5/lib/postgis-2.2.so": libboost_thread.so.1.58.0: cannot open shared object file: no such file or directory

i don't have libboost_thread.so.1.58.0 have libboost_thread.so.1.61.0 located @ /usr/lib/x86_64-linux-gnu/. thought maybe dropping extension , reinstalling postgis trick, didn't seem change anything. now, when try create extension postgis; same error.

output ldd /usr/lib/postgresql/9.5/lib/postgis-2.2.so | grep libboost:

libboost_thread.so.1.58.0 => not found libboost_system.so.1.58.0 => not found libboost_serialization.so.1.58.0 => not found 

and ldconfig -p | grep -e "libboost_(thread|system|serialization)":

libboost_thread.so.1.61.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.61.0 libboost_thread.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libboost_thread.so libboost_system.so.1.61.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.61.0 libboost_system.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libboost_system.so libboost_serialization.so.1.61.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libboost_serialization.so.1.61.0 libboost_serialization.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libboost_serialization.so 

i tried using ld_preload , correct versions showed in ldd, still asked 1.58.0 on execution. haven't found versions of 1.58.0 installed on machine, , it's not available in default repo.

it turns out in /usr/local/lib had .so files related sfcgal(a postgis dependency) built prior upgrading when still using older version of boost. directory must have had precedence on correct directory, , trying link old boost.

i think should problem people built sfcgal source @ point , didn't clean up.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User