Closed onemojofilter closed 7 years ago
It's finding your ogr_fdw.so
, what it cannot find is your libgdal.so.1
. Maybe it's installed in /usr/local/lib
and you haven't added that to your /etc/ld.so.conf
file?
I was careful to add it. Perhaps I've done it incorrectly?
$ more /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
I will re-compile gdal (there was another copy in place prior to this) and make sure it's a clean install and revert back.
Final step is to run ldconfig
as root.
Yes, agreed. I did do that, but it didn't seem to make a difference. I suspect it was linking the wrong copy of gdal. I will recompile gdal and recompile OGR and see what I get.
In the end, that's all it was. Once I did a clean build of GDAL (including freexl and expat) and then recompiled OGR FDW it worked perfectly.
Thank you for your help!
Oracle Linux Server release 6.7 gdal-config --version: 2.2.2 psql --version: 9.4.11
contents of test.sql:
$ psql -dtest_db -Upostgres -ftest.sql psql:test.sql:5: ERROR: could not load library "/usr/pgsql-9.4/lib/ogr_fdw.so": libgdal.so.1: cannot open shared object file: No such file or directory
$ ls -al /usr/pgsql-9.4/lib/ogr_fdw.so -rwxr-xr-x. 1 root root 221511 Oct 11 13:07 /usr/pgsql-9.4/lib/ogr_fdw.so