Hướng dẫn php 7.4 pear
Windows After you have downloaded and installed PHP, you have to manually execute the batch file located in e.g. in a Windows Command Prompt to start the installation. The setup will ask you some questions and afterwards the PEAR Package Manager will be installed in the path, which you have specified during installation. Finally you have to add that installation path to your After that you can access the PEAR Package Manager by running the command
Now check that PEAR works. Unix/Linux/BSD When using PHP, the PEAR Package Manager is already installed unless one has used the If one uses a version of PHP that is supplied by Unix/Linux/BSD distributors it may be necessary to manually install PEAR. Users should consult the documentation for the respective distribution in this case. If you want to re-install the Package Manager, you can use the following provisional way: Please note, you may need to install the wget package via your Unix/Linux/BSD package manager. On Debian and Ubuntu this is done via: Alternatively, download the go-pear.phar file via your browser.
Now check that PEAR works. Mac OS XUse curl as shown below to download the go-pear.phar file or just download the go-pear.phar file via your browser. You're now ready to configure PEAR for installation. First you need to change the Installation Base.
Then, you will need to change the Binaries directory.
Once you have changed the Installation Base and the Binaries Directory, press Enter to install PEAR.
Now check that PEAR works. PEAR in hosting environmentsIf you are running your site at a web hosting provider with no direct access to the server (via local logins, Telnet or SSH), you can use the PEAR Installer using the Web Frontend or (S)FTP. Go to go-pear and save as
Now check that PEAR works. Introduction (Previous) Installation of a local PEAR copy on a shared host (Next) Do you think that something on this page is wrong? Please file a bug report. View this page in:
User Notes:Note by: This is how I installed PEAR on Mac OS X Mavericks : http://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/ Note by: techno_aesthete I just installed PHP 5.5.5 (VC11 x86 non thread safe) on Windows Server 2008. Before installing, I did the checksum and it matched. There is no go-pear.bat file in the PHP directory. Note by: On windows vista/7, logging in as an administrator is not enough, right-click on the bat file and click "Run as administrator" Fails on windows 7 Could not open input file: PEAR\go-pear.phar Note by: windows users might an error similar to "unable to write to c:\windows\pear.ini" when they try to execute the go-pear.bat file. The workaround is to run the file as an administrator: - Login as an administrator and
run the bat file Note by: ore ore It's not work. Installer say as follows. Bootstrapping PEAR.php............(remote) "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Is it need change "svn.php.net" to "github.com" ? Note by: Thanks for the wonderful information. I wanted to install PEAR/PECL using yum and was stuck. This information can be found here PECL PEAR Install on Ubuntu Note by: drrm I just spent about an hour trying to get PHPUnit on my windows machine via pear and thought I'd share some tips. david Note by: Ran into an error updating PEAR today, June 15 2011. I did a fresh reformat, so this is everything I did: 1) Installed latest XAMPP for windows (zipped), XAMPP 1.7.4 This results in errors, which can be viewed here: http://pastebin.com/fiq6riX2 (System.php, line 302, mkdir() errors.) Luckily, I had an old go-pear.phar version from May 3, 2011. That one installed/updated properly. Note by: I got it to work... -.-" sigh.... Is there a way to suggest to try install php5-cli in order to install pear? Otherwise for a linux newb it makes him want to cry. (or die{}) Note by: If wget is not available from the terminal, use curl to download the PHP file. For example: Instead of using the outdated http://pear.php.net/go-pear , use http://pear.php.net/go-pear.phar Note by: PHP v5.3.4 threadsafe on Windows 7 64bit. Executing go-pear.bat gives: phar "C:\Program Files (x86)\php\PEAR\go-pear.phar" does not have a signature See other notes below. I'll raise a bug. Note by: Matt Although this page says: I get: lynx -source http://pear.php.net/go-pear | php Sorry! Your PHP version is too old. PEAR and this script requires at Can I just comment out this line in go-pear.php: if (function_exists("version_compare") && version_compare(phpversion(), "4.3.0",'<')) {... Note by: Eric Anderson Note: If you're running PEAR as a non-root user, there's a good chance that the default configuration will want to install files to directories which are not writable for you. To see the entire configuration, run: I needed to change the following settings: Note by: PEAR installation fails on Mac OS X 10.6.4 with the following message: Cannot redeclare _PEAR_call_destructors() (previously declared in /usr/lib/php/temp/PEAR.php:765) in /usr/lib/php/temp/temp/PEAR.php on line 777 Note by: Installing on Mac OS X Server 10.6.4 fails: (after using curl | sudo php and accepting installer defaults): Downloading package: PEAR.............PHP Deprecated: Function eregi() is deprecated in - on line 1080 Preparing installer.................. Oddly enough, Pear is installed by default on Mac OS X 10.6… just not Server. Note by: In the os x section it should read os x 10.4+ not 10.4 and earlier. Note by: YasuakiH Error message: Try this: Reference: Note by: When I run the go-pear.bat (in dos window) I get the following error: Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: phar error: invalid url or non-xistant phar "phar://go-pear.phar/index.php" in C:\Program Files\EasyPHP5.3.0\php\PEAR\go-pear.phar on lin1236 Any suggestions? Note by: I've tried to install by go-pear on Windows command line. After it downloads Structures_Graph, XLM Error occures telling me that "not well-formated (invalid token) on line 10. So installation of that, and any futher package is not possible. PEAR seems to require PHP 4.3, at least: wget http://pear.php.net/go-pear tells me: X-Powered-By: PHP/4.2.2 Sorry! Your PHP version is too old. PEAR and this script requires at Regards, Peter When you are behind a proxy, you can export the HTTP_PROXY variable. Don't forget the http:// in its value. |