Can't install pear in windows 10 + laragon - php

I'm tryin to install PEAR in W10 + Laragon ( php 7.2 ), and I get this error:
Beginning install...
Configuration written to C:\Windows\pear.ini...
Initialized registry...
Preparing to install...
installing phar://C:/laragon/bin/pear/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.4.5.tar...
installing phar://C:/laragon/bin/pear/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.4.2.tar...
installing phar://C:/laragon/bin/pear/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.8.tar...
installing phar://C:/laragon/bin/pear/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.1.1.tar...
installing phar://C:/laragon/bin/pear/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.4.3.tar...
installing PEAR-1.10.9.tar...
Warning: require_once(phar://go-pear.phar/PEAR/REST/13.php): failed to open stream: phar error: "PEAR/REST/13.php" is not a file in phar "go-pear.phar" in phar://C:/laragon/bin/pear/go-pear.phar/PEAR/Config.php on line 2067
I just downloaded go-pear.phar from : https://pear.php.net/go-pear.phar
And i follow some instructions in this tutorial:
https://youtu.be/b1v9nwVxjTg?t=1025
But, I allways get that error...
Any idea what can be wrong ?
Best Regards

Related

Installing krb5 package on Windows

I'm installing simplesamlphp and php composer.phar install is throwing an exception due to a lack of ext-krb5 PHP extension.
I didn't find 'krb5' in php.ini; I found the extension here: https://pecl.php.net/package/krb5
I've downloaded the tgz file; how do I activate it?

Cannot install install-pear-nozlib.phar on macOS Sierra

I’m trying to follow this tutorial https://codingexplained.com/dev-ops/mac/installing-php-intl-extension-os-x-mavericks in order to install the PHP extension intl on my Mac.
However, when I launch the command sudo php install-pear-nozlib.phar. I get the following error in my Terminal:
[PEAR] Archive_Tar: failed to mkdir /usr/lib/php/pear/Archive
[PEAR] Console_Getopt: failed to mkdir /usr/lib/php/pear/Console
warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.7)
warning: pear/PEAR requires package "pear/Structures_Graph" (recommended version 1.0.4)
warning: pear/PEAR requires package "pear/Console_Getopt" (recommended version 1.2.3)
warning: pear/PEAR requires package "pear/XML_Util" (recommended version 1.2.1)
[PEAR] PEAR: failed to mkdir /usr/lib/php/pear/OS
[PEAR] Structures_Graph: failed to mkdir /usr/lib/php/pear/docs/Structures_Graph/docs/html/media
[PEAR] XML_Util: failed to mkdir /usr/lib/php/pear/docs/XML_Util/examples
I don’t understand why it’s failing to make directories considering I’m using sudo for the command.
I thought it might be related to the root user, so I enabled it following these instructions https://coolestguidesontheplanet.com/enable-root-user-macos-sierra/, but that doesn’t change anything.
Anybody had this problem before?
Thanks in advance.

Installation of XDEBUG on OSX 10.11

When I'm trying install XDEBUG sudo pecl install xdebug - the next error occurred:
Build process completed successfully
Installing '/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so'
ERROR: failed to write /usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
(copy(/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so): failed to open stream: Operation not permitted)
Have you got any ideas how to solve that problem?
Thanks in advance.

Installing Predis Error : Download of "nrk/Predis" succeeded, but it is not a valid package archive

I've a new EC2 instance with PHP 5.5.4 and I am trying to install Predis from Pear.
Every time I try to install Predis from pear I keep having the following error.
Anyone has an idea on why is this happening? I googled lots for a solution and I cant find an answer
root#ip-xxx-xx-xx-xxx:/etc/nginx# pear install nrk/Predis
downloading Predis-0.8.4.tgz ...
Starting to download Predis-0.8.4.tgz (177,785 bytes)
.....................................done: 177,785 bytes
Parsing of package.xml from file "/tmp/pear/temp/pearxTtEHW/package.xml" failed
Download of "nrk/Predis" succeeded, but it is not a valid package archive
Error: cannot download "nrk/Predis"
Download failed
install failed
PHP 5.5 changed the way unpack works (http://php.net/manual/en/migration55.incompatible.php) so some PEAR or PECL packages are no longer compatible. You can install the package manually. I think it was also fixed in the pear repository, but I'm not sure. It has not been released though.
Seems that Pear can't install from tgz archive.
You have to explicitly request uncompressed files when downloading with -Z, --nocompress option.
So, try sudo pear install -Z package
The best solution for this is to upgrade PEAR's Archive package, which the pear installer uses, and after that you won't need to explicitly request uncompressed files when installing or upgrading existing packages.
$ sudo pear upgrade -Z Archive_Tar

Problems installing pear package (Failed loading /usr/lib64/php4/php_ioncube_loader_lin_4.3_x86_64.so)

Trying to install pear package and keep getting this strange error. Can you shed any light on it?
Failed loading /usr/lib64/php4/php_ioncube_loader_lin_4.3_x86_64.so: /usr/lib64/php4/php_ioncube_loader_lin_4.3_x86_64.so: cannot open shared object file: No such file or directory
Full message:
root#www webapps]# pear install --alldeps channel://pear.php.net/soap-0.12.0
Failed loading /usr/lib64/php4/php_ioncube_loader_lin_4.3_x86_64.so:  /usr/lib64/php4/php_ioncube_loader_lin_4.3_x86_64.so: cannot open shared object file: No such file or directory
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
pear/SOAP requires PEAR Installer (version >= 1.5.4), installed version is 1.4.9
pear/Mail_Mime requires PEAR Installer (version >= 1.6.0), installed version is 1.4.9
pear/Mail_mimeDecode requires PEAR Installer (version >= 1.6.0), installed version is 1.4.9
pear/Mail_mimeDecode requires package "pear/Mail_Mime" (version >= 1.4.0, excluded versions: 1.4.0)
No valid packages found
install failed
[root#www webapps]#
This resolve your problem: http://bugs.php.net/bug.php?id=8051

Categories