473,809 Members | 2,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

relocatable binary distribution

I'm making a "relocatabl e" 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_dir ectory = '$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 1113

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

Similar topics

6
1784
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 source available for download. I am not complaining about it, but I see this as a good opportunity for someone to offer a $40.00 binary version available for download. And, then someone else might want to offer one for $20.00. And then ... Ok. ...
9
2368
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 the packaging tools (py2exe, MacMillan's Installer, etc) allow cross-platform bundling? Failing that, can I coax someone into building such a beast for me so I can include it on http://sourceforge.net/projects/watch/? Thanks,
6
1708
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). Parts of the package are written in Python... so we are going to want to distribute our own version of python. Right now we are just distributing the Python tarball and building it at install time. This works ok, but we are running into some...
1
2400
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 tool for that? "setup.py bdist" creates binary dist, but includes the sourcecode cheers Stefan
0
1402
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
2090
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 handled. Here is my version: Ver 4.1.5-gamma-log for pc-linux on i686 (Source distribution) Right now I'm trying this to insert binary data: mysql> update table set col=load_file("/path/file") where id=1;
3
3405
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 pre-98) without having to build the library from source? We posed this question to the Xerces-users email list, but have yet to
7
1964
by: post | last post by:
www.equation.com Free compiler for multi-core and multi-processor computer.
5
1653
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 lying around, so when I started to use Mercurial (also Python) I decided that I'd consolidate all of these installations into a single Windows installation for general use, as well as for me to properly learn the language. Whoo, it's been a...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9601
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10378
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9198
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.