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
Related
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
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
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
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
I am getting this error while i try to install phpunit in xampp.
C:\xampp\php>pear install --alldeps phpunit/PHPUnit
Attempting to discover channel "phpunit"...
Attempting fallback to https instead of http on channel "phpunit"...
unknown channel "phpunit" in "phpunit/PHPUnit"
invalid package name/package file "phpunit/PHPUnit"
install failed
You need to do a
pear channel-discover pear.phpunit.de
before issuing the install command.
Apart from that note that xampp usually ships with a old (broken) version of pear.
Please make sure you have the current version installed with pear version. It should say 1.9.4.
If not don't try to upgrade the pear that xampp ships. While it is possible with much effort it is a lot easier to install a clean, fresh pear instead of fixing the broken stuff.
See: Pear Installation
You can not install phpunit through PEAR any more, as #aaronbauman mentioned. You can not install it with apt-get, because PHPCoverage is not included in the PHPUnit package. Instead you should download phar file:
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit
phpunit --version
Documentation: https://phpunit.de/getting-started.html
HTTPS is supposed to work for PHPUnit. It may be that you are using a proxy that doesn't support HTTPS.
I solve this with using pear.phpunit.de instead of phpunit
# pear channel-discover pear.phpunit.de
# pear channel-discover pear.symfony.com
# pear install --alldeps symfony2/Yaml
# pear install --alldeps pear.phpunit.de/PHPUnit
pear install pear.phpunit.de/PHPUnit worked for me