Skip to content

Instantly share code, notes, and snippets.

@skyebook
Created March 14, 2012 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skyebook/2038029 to your computer and use it in GitHub Desktop.
Save skyebook/2038029 to your computer and use it in GitHub Desktop.
PostGIS GDAL Setup
/usr/bin/ld: cannot find -ldgal
/dev/zero: file not recognized: File format not recognized
collect2: ld returned 1 exit status
@skyebook
Copy link
Author

Run this: gcc -lgdal /dev/zero

@skyebook
Copy link
Author

gcc -lgdal1.7.0 /dev/zero

@skyebook
Copy link
Author

/dev/zero: file not recognized: File format not recognized
collect2: ld returned 1 exit status

@skyebook
Copy link
Author

Output from: sudo ldconfig -v | grep libgdal

/sbin/ldconfig.real: Path /lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: Path/usr/lib/x86_64-linux-gnu' given more than once
libgdal1.7.0.so.1 -> libgdal1.7.0.so.1.14.3

@skyebook
Copy link
Author

Output from: sudo readelf -a /usr/lib/libgdal1.7.0.so | grep SONAME

0x000000000000000e (SONAME) Library soname: [libgdal1.7.0.so.1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment