Ticket #1933 (closed defect: invalid)

Opened 10 months ago

Last modified 10 months ago

[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:

Description

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

Changed 10 months ago by strk

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

Changed 10 months ago by pracine

  • summary changed from raster2psql command installed into /usr to [raster] raster2psql command installed into /usr

Changed 10 months ago by dustymugs

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

Changed 10 months ago by mcayland

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.

Changed 10 months ago by dustymugs

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...

Changed 10 months ago by dustymugs

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.

Changed 10 months ago by mwtoews

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

Changed 10 months ago by kib

  • status changed from new to closed
  • resolution set to invalid

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!

Changed 10 months ago by kib

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.