[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PHP] Standard placement of PHP libraries?



On Thursday 04 of August 2005 01:16, sean finney wrote:
> okay, thanks for the clarification, and this along with the order of
> precedences you brought up in a seperate mail sounds really good.  one
> nit-pick though: with this proposal $version and $package get mixed up
> in the same namespace in /usr/share/php, which might be problematic
> later on.   instead, it might be nice to have
> /usr/share/php/$version/$package, where version can optionally be all,
> or better, stick with the /usr/share/php$version/$package.  or maybe i'm
> just being too anal retentive for my own good.

I'd like to avoid too many php* directories at /usr/share hierarchy.
>
> also, does anyone who knows more about pear vs. non-pear php projects
> know of any potential conflicts by mixing the two in the same directory?

Usually they stay in separate subdirectory (i.e. adodb, pdflib, WACT, smarty) 
so I don't see any problem.

See:

deb http://people.debian.org/~dexter php5.1 experimental

This is my proof of concept:

# dpkg -l php\*pear
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:uppercase=bad)
||/ Name               Version            Description
+++-==================-==================-================
ii  php-pear           5.0.4-3            PEAR - PHP Extension and Application 
ii  php5.1-pear        5.0.999-5.1.0b3-0. PEAR - PHP Extension and Application


# pear config-show | grep 'PEAR directory'
PEAR directory                 php_dir         /usr/share/php
# pear5.1 config-show | grep 'PEAR directory'
PEAR directory                 php_dir         /usr/local/share/php
# pear5.1 list
(no packages installed)
# pear5.1 install -a DB
downloading DB-1.7.6.tar ...
Starting to download DB-1.7.6.tar (-1 bytes)
......................................................................................done: 
735,232 bytes
downloading PEAR-1.3.5.tar ...
Starting to download PEAR-1.3.5.tar (-1 bytes)
...done: 557,056 bytes
downloading Archive_Tar-1.3.1.tar ...
Starting to download Archive_Tar-1.3.1.tar (-1 bytes)
...done: 86,016 bytes
downloading Console_Getopt-1.2.tar ...
Starting to download Console_Getopt-1.2.tar (-1 bytes)
...done: 13,824 bytes
downloading XML_RPC-1.3.3.tar ...
Starting to download XML_RPC-1.3.3.tar (-1 bytes)
...done: 124,928 bytes
install ok: XML_RPC 1.3.3
install ok: Console_Getopt 1.2
install ok: Archive_Tar 1.3.1
install ok: PEAR 1.3.5
install ok: DB 1.7.6

So a three installations of PEAR exists in system peacefully. The first is 
official php5 Debian package, the second is my php5.1 package and the third 
is package manually installed into /usr/local/share/php.

-- 
 .''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-



Reply to: