Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shp2pgsql references wrong library path #112

Closed
systemed opened this issue May 8, 2013 · 6 comments
Closed

shp2pgsql references wrong library path #112

systemed opened this issue May 8, 2013 · 6 comments

Comments

@systemed
Copy link

systemed commented May 8, 2013

Using Postgres.app 9.2.2.0:

~: shp2pgsql
dyld: Library not loaded: /Users/zeke/Desktop/PostgresApp/Postgres/Vendor/postgres/lib/liblwgeom-2.0.2.dylib
  Referenced from: /Applications/Postgres.app/Contents/MacOS/bin/shp2pgsql
  Reason: image not found

Fixed it with:

install_name_tool -change /Users/zeke/Desktop/PostgresApp/Postgres/Vendor/postgres/lib/liblwgeom-2.0.2.dylib /Applications/Postgres.app/Contents/MacOS/lib/liblwgeom-2.0.2.dylib shp2pgsql

(I love having all the geo stuff like PostGIS, gdal, ogr2ogr all sitting here ready built - thank you!)

@tompesman
Copy link

Almost the same problem with PostgressApp version 9.2.4.1

dyld: Library not loaded: /Users/mattt/Desktop/PostgresApp/Postgres/Vendor/postgres/lib/liblwgeom-2.0.1.dylib
  Referenced from: /Applications/Postgres.app/Contents/MacOS/bin/./shp2pgsql
  Reason: image not found
Trace/BPT trap: 5
install_name_tool -change /Users/mattt/Desktop/PostgresApp/Postgres/Vendor/postgres/lib/liblwgeom-2.0.1.dylib /Applications/Postgres.app/Contents/MacOS/lib/liblwgeom-2.0.1.dylib shp2pgsql

@jakob
Copy link
Member

jakob commented Jun 1, 2013

The problem is related to the dylib issues related in #109. I started rewriting the dylib path stuff in 1fa960e. As soon as I get to refactoring the extension build targets, I will ensure this is fixed as well.

@jakob
Copy link
Member

jakob commented Jul 15, 2013

I made a new beta that addresses the dylib issues, could you try if this beta fixes your problem?

Download link: https://s3-eu-west-1.amazonaws.com/eggerapps.at/postgresapp/PostgresApp-9.2.4.3-Beta2.zip

@ghost
Copy link

ghost commented Jul 21, 2013

The beta fixed the issue for me, thank you.

@tompesman
Copy link

Same for me, beta fixes this issue! 👍

@jakob
Copy link
Member

jakob commented Aug 27, 2013

@jakob jakob closed this as completed Aug 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants