473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

relocatable binary distribution

I'm making a "relocatable" Postgres binary distribution for my clients.
Everything goes into postgresql-7.4.1/ directory, including libraries
and binaries. This will be installed by a non-privileged user under his
own home directory. The goal is that they could just extract the
tarball, adjust PATH if he wants, and then just run initdb + pg_ctl start.

For binaries like bin/psql or bin/pg_vacuum that needs libpq.so, I've
created a C wrapper that first sets LD_LIBRARY_PATH to a relative path
(../lib/) and then exec() the real binary (moved to bin/psql.real or
bin/pg_vacuum.real).

However, it would be nice if $libdir could be relative to the binary
too. Or if there were special token too like $HOME or $execdir or
$datadir that can be used in PL declaration or in postgresql.conf:

dynamic_library_path = '$execdir/../lib'
unix_socket_directory = '$HOME/tmp' # or e.g. '$datadir/../tmp'

Where $execdir is the path of the postmaster currently running, and
$datadir is the current data directory (value of -D of postmaster/pg_ctl
command).

(Also, I'd appreciate if someone could explain how this 'relocatability'
issue is/will be tackled on Win32 port).

--
dave

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #1
0 1101

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: R.Marquez | last post by:
So, Rekall is now GPLed. However, after a quick look at theKompany's website I see that they charge $69.95 for the download version. And looking at the rekallrevealed.org site I only see the...
9
by: Skip Montanaro | last post by:
I'd like to package up my typing watcher script in a bundled form (no separate Python install required) for use on Windows. (Un)fortunately, I don't have access to a Windows computer. Do any of...
6
by: friedmud | last post by:
Hello all, I'm currently working on a software package that is going to be distributed in binary form (with accompanying source) for lot of different unixes (Linux, AIX, HP-UX and others). ...
1
by: Stefan Waizmann | last post by:
Hello, I would like the distutils are creating a binary distribution only - means create the distribution file with *.pyc files WITHOUT the *.py files. Any ideas? Or are the distutils the wrong...
0
by: Stefan | last post by:
Hi! I'm interested in which one is better for performance issues? The binary distribution or a self compiled one? Thanks for your answers. Stefan
0
by: David List | last post by:
I am wondering what I miss to be able to handle binary data from the mysql client. I have ensured that the user has file_priv set to 'Y' and that max_allowed_packet is larger that the binary lumps...
3
by: Matt | last post by:
Hello, Summary: Where can one download a Xerces-C (XML pardser) dynamic library file (.DLL file) for Windows (Win98/WinNT/Win2k/WinXP/Win2003, including server flavors; don't need to support...
7
by: post | last post by:
www.equation.com Free compiler for multi-core and multi-processor computer.
5
by: Ambush Commander | last post by:
I'm a newbie to Python; various packages I've used in the past (Lyx, LilyPond and Inkscape, to name a few) have bundled Python with them for various scripting needs, and Cygwin also had an install...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.