Re: issues re: installing pyrus by following the online manual
| From: | Brett Bieber | Date: | Mon, 01 Mar 2010 14:49:06 +0000 |
| Subject: | Re: issues re: installing pyrus by following the online manual | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30346@lists.php.net to get a copy of this message | ||
On Sun, Feb 28, 2010 at 11:31 AM, Robert P. J. Day
<rpjday@crashcourse.ca> wrote:
>
> regarding installing pyrus on fedora 12 ...
>
> On Sun, 28 Feb 2010, Brett Bieber wrote:
>
>> On Sun, Feb 28, 2010 at 10:11 AM, Robert P. J. Day
>
> [regarding pyrus.phar]
>
>> >> foreach (array('phar', 'spl', 'pcre',
>> >> 'simplexml') as $ext) {
>> >> if (!extension_loaded($ext)) {
>> >> echo 'Extension ', $ext, " is required\n";
>> >> exit -1;
>> >> }
>> >> }
>
>> Pyrus should check for the extension. The file which needs the patch
>> is here -
>> http://svn.php.net/viewvc/pear2/Pyrus/trunk/stub.php?view=markups|I·�Q
>> T²>[»â+
>
> right, i think i had already figured that out -- just adding
> 'xmlreader' to that list of essential extensions should do it.
>
>> I think the check for the extension could solve a lot of the
>> confusion... and perhaps an improved error message: "Pyrus requires
>> extension 'X.' You need to compile PHP with 'X' support or install
>> an additional package from your o/s provider."
>
> yup, i think that's the simplest solution.
>
>> Within the manual, we may be able to provide some assistance for
>> major distros, but I really think this is a fedora issue because
>> they are distributing a non-standard binary of PHP. Extensions
>> enabled by default should be compiled in or auto-installed.
>
> if there is an *official* list of what extensions should be compiled
> into a PHP binary, i can submit a fedora bugzilla request. but i'll
> need to be able to point to a legitimate list to back up my request
> and defend my position that fedora is currently not doing it right.
> got a URL?
Nothing I'm aware of. Perhaps the PHP folks would know.
>> I think we need to patch the manual and the stub.php file, and also
>> complain to your distro that PHP extensions which should be enabled
>> by default are not installed.
>
> if someone else wants to handle adding that extension test to the
> stub.php file, i can put in a fedora bugzilla request, and i can
> submit an updated manual page to the docs list that should handle this
> for now.
I've expanded the extension check and error message. Thanks for your help.
--
Brett Bieber