Re: [HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-24 Thread John DeSoi
On Mar 24, 2006, at 7:25 AM, Martijn van Oosterhout wrote: Anyway, looking at the manpage of otool it doesn't say that it just prints the raw name, so perhaps it's doing the same as ldd. To be sure you'd need to strings the binary to see what it says. Yes, strings shows the full path of prefi

Re: [HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-24 Thread Martijn van Oosterhout
On Thu, Mar 23, 2006 at 07:47:13PM -0500, John DeSoi wrote: > > On Mar 23, 2006, at 12:15 AM, Tom Lane wrote: > > >OK ... it's supposed to work to shift the whole installation tree to > >a new root, ie, paths to places like the /share and /lib directories > >are determined relative to where the b

Re: [HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-23 Thread Peter Eisentraut
Greg Stark wrote: > I'm sure this isn't the only possible gotcha but I do seem to recall > that on Solaris there's no such thing as a default LD_LIBRARY_PATH. > Every binary stores absolute paths to every shared library it's > linked against. On Solaris you can actually use relative library paths

Re: [HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-23 Thread John DeSoi
On Mar 23, 2006, at 12:15 AM, Tom Lane wrote: OK ... it's supposed to work to shift the whole installation tree to a new root, ie, paths to places like the /share and /lib directories are determined relative to where the backend executable actually is. If this is not working on Solaris then for

Re: [HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-22 Thread Greg Stark
Tom Lane <[EMAIL PROTECTED]> writes: > Enver ALTIN <[EMAIL PROTECTED]> writes: > > Tom Lane wrote: > >> s/doable/already done/, no? > > > I did a Google search on "relocatable PostgreSQL" and the first > > result[1] said it's already done. Apparently it didn't work for me on > > Solaris 8 (link

Re: [HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-22 Thread Josh Berkus
Enver, > Fortunately we're not alone in the universe, several other projects > suffered from the very same problem. Including the much larger > OpenOffice.org project. Are you crossing over from OpenOffice.org? Hi! I'm former OOo now PG and likely to get involved with OOo again very soon ...

Re: [HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-22 Thread Tom Lane
Enver ALTIN <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> s/doable/already done/, no? > I did a Google search on "relocatable PostgreSQL" and the first > result[1] said it's already done. Apparently it didn't work for me on > Solaris 8 (linking problems). I'll be looking at it sometime today.

Re: [HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-22 Thread Enver ALTIN
Hi Tom, Tom Lane wrote: Enver ALTIN <[EMAIL PROTECTED]> writes: In order to achieve this *properly*, I intend to make PostgreSQL relocatable, that is, PostgreSQL should be able to run if you `copy` it's binaries somewhere else -- no matter where you `./configure --prefix`ed it. I took a very

Re: [HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-22 Thread Tom Lane
Enver ALTIN <[EMAIL PROTECTED]> writes: > In order to achieve this *properly*, I intend to make PostgreSQL > relocatable, that is, PostgreSQL should be able to run if you `copy` > it's binaries somewhere else -- no matter where you `./configure > --prefix`ed it. I took a very quick look at some

Re: [HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-22 Thread Enver ALTIN
Hey, Enver ALTIN wrote: Next step would be a simple, possibly shell-script and xdialog/zenity[4] based prototype installer. I personally can't afford the Python thing, Solaris and possibly others don't have it yet and embedding Python in a shell script is not the brightest idea obviously. [4

[HACKERS] pgNixInstaller: Making PostgreSQL relocatable

2006-03-22 Thread Enver ALTIN
Hi, We have been having a short talk with Devrim this evening about the pgnixInstaller[1] project he started[2] a while ago. I have briefly read over the thread following the project announce, particularly comments on issues about package systems of distributions and integration with them. I