Re: Alternate install path

From: Date: Wed, 06 Dec 2000 01:55:41 +0000
Subject: Re: Alternate install path
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-569@lists.php.net to get a copy of this message
Sascha Schumann wrote: > > On Tue, 5 Dec 2000, Jon Parise wrote: > > > On Wed, Dec 06, 2000 at 12:56:38AM +0100, Stig S. Bakken wrote: > > > > > > How do you specify a path other than /usr/local/lib for the PEAR > > > > installation? > > > > > > By specifying a different --prefix to configure. The default is > > > /usr/local. > > > > If I wanted to install the PEAR tree in /web/pear, how would I go about > > doing so (correctly)? If I use --prefix, won't it dump everything in > > /web/pear/lib/php then? > > It will. We already have a variable for that > (PEAR_INSTALLDIR) which is currently set to $prefix/lib/php. > > We could either use i.e. --with-peardir or one of the > dedicated --*dir options to set that variable (--datadir > sounds nice). Next question: should we take this opportunity to define once and for all where files should be installed? Suggestion: * architecture independent common files (PEAR stuff etc.) in PREFIX/share (--datadir) * user executables (php, php-config, phpize...) in PREFIX/bin (--bindir) * system administrator executables (the "pear" script etc.) in PREFIX/sbin (--sbindir) * architecture dependent library files (extension .so files) in PREFIX/libexec (--libexecdir) * configuration files (php.ini) in PREFIX/etc (--sysconfdir) * local data files (ext/session's stuff for example) in PREFIX/var/php (--localstatedir) - Stig

« previous php.pear (#569) next »