Can not install Pear Text_Diff - php

I try to install Pear Text_Diff by using
pear install Text_Diff
However, the it says
no release avaiable for package "pear.php.net/Text_Diff". install failed.
What is wrong?

PEAR on windows sometimes needs a little refresh running the following commands before install:
pear clear-cache
pear update-channels
And finally again:
pear install Text_Diff

Related

Install SSH Module Pear

How to install module crypt_random_string, Crypt_Hash, and Crypt_Base with php pear?
I tried to use pear list-all but there's no module from that module.
And I tried using the following commands
pear install phpseclib/crypt_random_string
pear install phpseclib/Crypt_Hash
pear install phpseclib/Crypt_Base
but it's giving me the following error install failed.
Did you follow:
pear channel-discover phpseclib.sourceforge.net
pear remote-list -c phpseclib
pear install phpseclib/Crypt_Random
pear install phpseclib/Crypt_Hash
pear install phpseclib/Crypt_Base
Also provide us pear version, OS

Installing Pear PFM on OSX

I am trying to create a Pear package from my project on github that I have on my local repository, but I'm having alot of trouble getting pfm to work, here is the error I keep getting when I try to install:
Luciens-Macbook-Pro:quisbee-rails admin$ pear install PEAR_PackageFileManager_Cli
No releases available for package "pear.php.net/PEAR_PackageFileManager_Cli"
install failed
I am running on PHP 5.5.15 and pear 1.9.5.
If you look at your pear config settings you'll probably see that the preferred state of packages to download is "stable"
$ pear config-show | grep preferred_state
Or, to be more efficient:
$ pear config-get preferred_state
So to download and install a package that is not marked stable, your best option is to include the version number when you attempt to install it:
$ sudo pear install PEAR_PackageFileManager_Cli-0.4.0
This should work ok for you - assuming you already have all dependencies installed. If not, this is easy to do with the following by including the --alldeps option:
$ sudo pear install --alldeps PEAR_PackageFileManager_Cli-0.4.0

Getting strange error while installing AWS SDK via PEAR

I am getting this error while installing AWS SDK via PEAR. I never got this before.
$ sudo pear channel-discover pear.amazonwebservices.com
Adding Channel "pear.amazonwebservices.com" succeeded
Discovery of channel "pear.amazonwebservices.com" succeeded
$ sudo pear install aws/sdk
Unknown remote channel: guzzlephp.org/pear
aws/sdk requires package "channel://guzzlephp.org/pear/Guzzle" (version >= 3.0.2)
No valid packages found
install failed
Can somebody give me a hand.
Taken from here:
https://github.com/aws/aws-sdk-php/blob/master/README.md#installing-via-pear
Installing via PEAR
PEAR, which stands for PHP Extension and Application Repository, is a framework and distribution system for reusable PHP components. It is the PHP equivalent of other package management solutions like Yum that install packages system-wide.
PEAR packages are easy to install, and are available in your PHP environment path so that they are accessible to any PHP project. PEAR packages are not specific to your project, but rather to the machine they're installed on.
From the command-line, you can install the SDK with PEAR as follows. Note: You may need to use sudo for the following command.
pear -D auto_discover=1 install pear.amazonwebservices.com/sdk
Once the SDK has been installed via PEAR, you can load the phar into your project with:
require 'AWSSDKforPHP/aws.phar';
Had the same problem, but this fixed it:
Install the old package first
sudo pear -D auto_discover=1 install pear.amazonwebservices.com/sdk-1.6.0
Then update it
sudo pear install pear.amazonwebservices.com/sdk
To check:
ubuntu#ip-xx-xx-xx:~$ sudo pear install aws/sdk
aws/sdk is already installed and is the same as the released version 2.4.0
Try this before installing the SDK:
sudo pear install --alldeps --force guzzle/guzzle
well I ended up installing the old package (I didn't need the new stuff such as glacier etc)
pear install aws/sdk-1.5.17.1

Installing PHP PEAR code sniffer (mac)

Attempting to install the PHP PEAR code sniffer extension on a mac (after installing Mac Ports) to no avail. Ultimate goal is Drupal code sniffing in Komodo somewhat via these instructions... http://blog.8bitplateau.net/drupa-code-sniffer-komodo/
Command:
pear install PHP_CodeSniffer
Error:
No releases available for package "pear.php.net/PHP_CodeSniffer"
After downloading:
pear channel-discover pear.phpunit.de
I was getting package unavailable when tyring to install the package.
My answer, working in Windows, from the command prompt type:
pear clear-cache
then type:
pear install phpunit/PHPUnit
job done, if you clear the cache after every installation, any further install goes without a hitch. ENjoy
Just needed to update my php.ini for include_path = ".:/opt/local/lib/php"
I used the following command and it worked:
sudo pear install PHP_CodeSniffer

Error installing MDB2 under Pear

I am trying to install pear's mdb2 package so I can use mail queue. I enter the following command and get the error below. Any suggestions?
C:\wamp\bin\php\php5.3.4>pear install MDB2
No releases available for package "pear.php.net/MDB2" install failed
* I have been able to install manually, but can not answer my own question yet.*
Maybe a temporary issue? Could be a bug in the version of PEAR too.
Try:
pear upgrade PEAR
pear upgrade-all
pear channel-update pear.php.net
pear install MDB2
I faced the same because of temporary files, so I had to clear pear cache then all worked perfectly. Running on WAMP (Windows)
pear clear-cache
pear install -a PackageName

Categories