I am using postgres 9.3 with postgis 2.1. When I tried to dump pgsql table using pgsql2shp, I get the following error.
Error: pg_wrapper: pgsql2shp was not found in /usr/lib/postgresql/9.3/binThe command I used is the following.
pgsql2shp -f "/home/user/testshp.shp" -h localhost -u postgres -P postgres dbname "SELECT * FROM table"In envr I have added it using,:/usr/local/bin/pgsql2shp
I also also created a link using a guide from here.
sudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/local/bin/shp2pgsqlsudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/local/bin/pgsql2shpsudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/local/bin/raster2pgsqlIs any the things I did causing the problem? Is there any solution for this?
Thanks!
أكثر...
Error: pg_wrapper: pgsql2shp was not found in /usr/lib/postgresql/9.3/binThe command I used is the following.
pgsql2shp -f "/home/user/testshp.shp" -h localhost -u postgres -P postgres dbname "SELECT * FROM table"In envr I have added it using,:/usr/local/bin/pgsql2shp
I also also created a link using a guide from here.
sudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/local/bin/shp2pgsqlsudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/local/bin/pgsql2shpsudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/local/bin/raster2pgsqlIs any the things I did causing the problem? Is there any solution for this?
Thanks!
أكثر...