Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1933 closed defect (invalid)

[raster] raster2psql command installed into /usr

Reported by: kib Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.2
Component: postgis Version: 2.0.x
Keywords: Cc:


the raster2psql command installed into /usr and /usr/bin in the debian packages - I have not debugged this, so I do not know why. It may be in "make install" or something in Ubuntu’s packages.

Change History (9)

comment:1 by strk, 11 years ago

What's wrong with a package to install things in /usr/bin ?

comment:2 by pracine, 11 years ago

Summary: raster2psql command installed into /usr[raster] raster2psql command installed into /usr

comment:3 by Bborie Park, 11 years ago

This really is a question best asked to the debian package maintainer. By default, PostGIS uses /usr/local as the prefix.

comment:4 by mcayland, 11 years ago

The standard convention on a UNIX-based OS is that executables installed as part of a distribution via package management are installed in /usr, whereas self-built executables are installed in /usr/local. Hence it's possible to determine what has been supplied by the distribution and what has been built locally.

Is the problem that raster2pgsql is being installed as both /usr/raster2pgsql and /usr/bin/raster2pgsql? That could suggest that PREFIX is not being set somewhere either in the build or as part of the regression tests.

comment:5 by Bborie Park, 11 years ago

Just checked where raster2pgsql is going and by default it goes into PGSQL_BINDIR, which is different than shp2pgsql. I'll have to tweak that to match that of shp2pgsql. But, that still doesn't explain the /usr/ and /usr/bin…

comment:6 by Bborie Park, 11 years ago

What debian packages for PostGIS 2.0 are being used? I've searched on Google and can't find anything. There is the sharpie PPA for Ubuntu but after looking at those deb files, I can't find any problems with them.

comment:7 by Mike Taves, 11 years ago

All postgres-related binaries should go into PGSQL_BINDIR. For Debian-based distributions pg_wrapper (from the postgresql-client-common package) is used to link to utilities in PGSQL_BINDIR.

If you see, e.g. UsersWikiPostGIS20Debian60src, all PostGIS binaries are connected using pg_wrapper:

sudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/local/bin/shp2pgsql
sudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/local/bin/pgsql2shp
sudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/local/bin/raster2pgsql

comment:8 by kib, 11 years ago

Resolution: invalid
Status: newclosed

I should not have filed this. Suggest closing it.

I found no PostGIS 2.0 packages on Ubuntu's packages page (nor on PostGIS's own page) - so I took a chance and picked the source for the debian dir. from a 1.? package - fiddled a lot with it :-/ and finally got it to compile/install.

Next time in a similar situation I will try to google it / or search for special PPA's

Sorry for the noice!

comment:9 by kib, 11 years ago

Also I had a typo in the ticket text. I wrote installed into /usr and /usr/bin but should have written installed into /usr and not /usr/bin

Note: See TracTickets for help on using tickets.