Re: Pear Installer
| From: | Mathieu Dubois | Date: | Fri, 15 Nov 2024 21:31:45 +0000 |
| Subject: | Re: Pear Installer | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-32317@lists.php.net to get a copy of this message | ||
Hi Alejamdro,
I have never installed pear but from what I understand, the go_pear.bat file is in the installation directory of PHP. If not you can download it at https://pear.php.net/go-pear.phar . It's a php script so it can be executed with php go-pear.phar (you probably need some admin rights).
Alternatively (and probably better), you can try composer (another package manager inspired by npm). See the doc at https://getcomposer.org/ (in particular https://getcomposer.org/download/). In your case, you need the LTS version so I think that you should do:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --2.2
php -r "unlink('composer-setup.php');"
After that, you can install packages with:
composer require pear/image_barcode
There is a lot to learn in order to use composer but it's worth it.
Hope that helps,
Mathieu
Le 19/10/2024 à 19:45, Alejamdro Crosa a écrit :
HelloI tryng to instrall pear to use paks how eg Image Barcode in php 5.My local server is Apache 2.2My php version is 5.3.5 I want to download pear 1.9.4 to install but I can´t to find the go_pear.bat. I don´t understand how do it. Thanks Best Regards-- Mathieu Dubois - IR - UMR 8030 équipe LABGeM CEA - Genoscope. 2 rue Gaston Crémieux. 91057 Evry Cedex France. Bureau B07 +33 1 60 87 53 35