Re: Extensions Directory (PEAR/PECL)
| From: | rsw at rswfire dot com | Date: | Tue, 23 May 2006 00:32:34 +0000 |
| Subject: | Re: Extensions Directory (PEAR/PECL) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236686@lists.php.net to get a copy of this message | ||
> Robert Samuel White wrote:
>> Please let me know if this would be more appropriate to post in a PEAR
>> or
>> PECL forum. Today, I've been trying to install some extensions - in
>> particular, the GD library and the ZIP library. I've finally managed to
>> get
>> it all working, but there was one issue that I'd like to clear up for
>> future
>> reference if possible.
>>
>> When I ran the command:
>>
>> pecl install zip-1.3.1
>>
>> It intalled the zip.so file to:
>>
>> /usr/local/lib/php/extensions/no-debug-non-zts-20050922/zip.so
>>
>> The only way I could get zip support working was to put it here:
>>
>> /usr/local/php/ext
>>
>> Which is where my extensions directory is located.
>>
>> I've checked, and the extensions directory is set correctly in the
>> php.ini
>> file.
>>
>> Does anyone know where/how it would come up with this other path?
>
> Hello Robert,
>
> If you wish to receive the best advice for PEAR questions, ask on
> pear-general@lists.php.net, and for PECL questions (questions that have
> to do with the internals of the extension, compilation problems, etc.)
> ask on pecl-dev@lists.php.net.
>
> This problem is easily solved:
>
> pecl config-set ext_dir /usr/local/php/ext
>
> voila. No need to futz with php.ini or copy the extension (a bad idea -
> you have to remember that you did this when you decide to upgrade or
> uninstall)
>
> PEAR uses its own configuration file which is independent of php.ini.
> Why? You can use the same PEAR extensions in command-line code and for
> web applications. These often have completely different php.ini
> settings for obvious reasons (no need for apache-specific stuff inside
> the command-line php).
>
> Greg
>
Greg,
Thank you so much for that! I greatly appreciate your response!
~Samuel