Questions tagged [pear]

For questions about PEAR, a repository of PHP software code, designed to offer some functionality not built into PHP core. Questions about PHP programming are off topic and should be asked on stackoverflow.com.

The PHP Extension and Application Repository, or PEAR, is a repository of PHP software code. Its use as a package manager (for both PEAR and PECL) has been deprecated (it throws numerous warnings if you run it under PHP 5.4 or later). PEAR libraries, being normal PHP files, can be downloaded directly and included like any other PHP file. If you need a package manager for PEAR, you can use PEAR2_Pyrus, which is written in phar (the PHP Archive format).

25 questions
42
votes
3 answers

How to install an updated version of PEAR / PHPUnit on Ubuntu?

Most tutorials online show how to install PEAR by doing this: sudo apt-get install php-pear This installs version 1.6.1. It works great because it's super easy! My problem is that I want to install PHPUnit and it requires PEAR version 1.8.1 so my…
Andrew
  • 15,494
12
votes
4 answers

How do I upgrade pear from 1.4.9 to the latest version?

It looks like it might be 1.7.2, but I didn't find any definitive, "THIS IS THE CURRENT VERSION OF PEAR" on the pear website. I'm trying to upgrade PEAR on a system that I'm not all that familiar with. pear version yields... PEAR Version: 1.4.9 PHP…
8
votes
4 answers

Error trying to install PHPUnit from PEAR

$ sudo pear install phpunit/PHPUnit Unknown remote channel: pear.symfony-project.com phpunit/PHPUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHPUnit can optionally use PHP extension "xdebug" (version >=…
Andrew
  • 15,494
8
votes
2 answers

Cannot access pear.php.net from OSX Lion

I am stumped by this issue. I have 2 separate Macs that cannot access pear.php.net at all by name or IP. Here are the symptoms and steps that I took to try to resolve/narrow down this issue. $ ping -c 4 pear.php.net PING euk1.php.net (5.77.39.20):…
4
votes
3 answers

Install a PEAR package without an Internet connection

I'm trying to install a package via PEAR, PHPUnit to be precise. However, the server I'm using is not connected to the Internet. I managed to find a .tgz of PHPUnit in its PEAR repository at : PEAR PHPunit-3.7 (although it's not the latest version,…
4
votes
1 answer

PHP Fatal error: Call to undefined method PEAR::raiseErro() in /usr/share/php/PEAR/REST.php on line 165

when running pear upgrade the following error is raised: PHP Fatal error: Call to undefined method PEAR::raiseErro() in /usr/share/php/PEAR/REST.php on line 165 PHP Stack trace: PHP 1. {main}() /usr/share/php/pearcmd.php:0 PHP 2.…
udo
  • 8,061
3
votes
1 answer

What could be the reason for php-pear being so slow on my local Ubuntu VM?

I got an Ubuntu Raring Ringtail (Beta) VirtualBox VM running and connect to it via SSH. When using "pear install" and try to install "phing/phing" from "http://pear.phing.info/" it takes ages for the command to even find the mentioned package. The…
thasmo
  • 131
  • 3
2
votes
1 answer

-bash: pear: command not found

When trying to install phpDoc through the Terminal I get the following error: -bash: pear: command not found Even though I have just installed pear. Prior to trying to install phpDoc I installed Pear and I got the following warning: WARNING! The…
Michael
  • 143
2
votes
1 answer

PearOS - Is it actually Linux?

I just downloaded PearOS 7 for both its look and the fact that it was linux... Until I thought about it. PearOS is a distro that was made by a french developer. Does it use the kernel that say... Ubuntu would use?
2
votes
3 answers

Can't link Xdebug to PHP 5.4

Today I installed/updated my previous php 5.3.x to 5.4.11. Did it accordingly how do I upgrade from php 5.3 to php 5.4.6 in ubuntu? Install was successful, but it seemed to me, that xdebug was outdated due to a warning message when viewing php -v to…
Eugene
  • 169
2
votes
2 answers

If two separate PATH directories contain a same-named executable, how does Windows choose?

I'm in the process of upgrading PEAR (PHP) on my system. The upgrade script is encouraging me to add "..\PHP\PEAR" to my PATH so that I can use "pear.bat". However, I already am able to use pear.bat. Looking in my PATH, I see that I don't have any…
Coldblackice
  • 6,233
  • 20
  • 60
  • 89
2
votes
0 answers

cannt run phpunit tests on bash ubuntu 11.10

I'm working with Ubuntu 11.10 as root on my local machine, I've installed xampp 1.7.7 and While following a tutorial on sitepoint on how to install pear to use PhpUnit, I didn't notice it then, but it seems that I installed or used an existing php…
2
votes
1 answer

what exactly happens when I "sudo apt-get install php-pear"

I'm a little confused about the reasoning behind installing PEAR through CLI like this: //shell sudo apt-get install php-pear AFAIK Pear is just PHP library - so - that's just bunch of PHP classes. So - if I need one - I just go to their website,…
Stann
  • 540
1
vote
1 answer

Pear upgrade not working in Ubuntu

When I try to upgrade Pear it shows a message on terminal as follows Will upgrade channel://pear.php.net/xml_util Will upgrade channel://pear.php.net/pear Will upgrade channel://pear.php.net/structures_graph WARNING: channel "pear.php.net"…
1
vote
0 answers

Ubuntu 12.04 - Cannot install PEAR

Following these instructions: How to install an updated version of PEAR / PHPUnit on Ubuntu? sudo apt-get install php-pear I get php-pear is already the newest version. then sudo pear channel-update pear.php.net gives me -bash: /usr/bin/pear: No…
Kiksy
  • 111
1
2