a try install svn for php 7.1 with pecl:
pecl install svn
and i habe error:
pecl/svn requires PHP (version >= 4.0.0, version <= 6.0.0), installed version is 7.1.7
No valid packages found
install failed
What is wrong?
Thanks.
According to the error , you need a version less than or equal to php6.0 for the svn package that you are trying to install.
You can try installing a different php version thats suitable for the package or find a working package modified for php 7.1
Look at the official documentation here :
https://pecl.php.net/package/svn
The dependency is clearly stated to be php 6.0 or older
The current stable released version of PECL svn doesn't work with PHP 7. There is an open bug report current with a patch submitted to it here https://bugs.php.net/bug.php?id=75206
The patch worked for me with PHP 7.1 but it's not been officially vetted and released by the maintainers of PECL svn as of yet.
Related
I used zf 1.11.11 with php 5.3.3 on a CentOS 6.x . Now i installed a new clean CentOS 7 but i can't matching php version with my old code. I can not find a repository which contains php 5.3.3 and proper Apache Server that works with my code. Also i don't know zf 1.11.11 can work with which version of php.
How can i find the proper Repository which works with yum and install appropriate php and apache for my zf application?
According to the composer.json of the framework PHP 5.6 or 7.0 is required.
To install it on CentOS 6.0 you can add the following repositoy information (according to https://webtatic.com/packages/php70/):
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
After that is added, run yum install php70w php70w-opcache as stated in the link above
Edit
As stated in the comments, I've misread the version number for the zend framework installation. The suggested PHP-version as pointed out by #Progrock the required PHP-version for Zend Framework 1.12 as defined in the composer.json is >=5.2.11
You can for example follow this guide to install php 5.2.17 on CentOS from museum.php.net, but I'd recommend installing one of the currently supported versions of PHP
I am trying to install pecl_http on Ubuntu 14.04, however it reports to require PHP 7.
$ sudo pecl install pecl_http
pecl/pecl_http requires PHP (version >= 7.0.0), installed version is 5.5.9-1ubuntu4.14
pecl/raphf requires PHP (version >= 7.0.0), installed version is 5.5.9-1ubuntu4.14
pecl/propro requires PHP (version >= 7.0.0), installed version is 5.5.9-1ubuntu4.14
No valid packages found
install failed
$
Similarly on Debian:
pecl/pecl_http requires PHP (version >= 7.0.0), installed version is 5.6.17-0+deb8u1
pecl/raphf requires PHP (version >= 7.0.0), installed version is 5.6.17-0+deb8u1
pecl/propro requires PHP (version >= 7.0.0), installed version is 5.6.17-0+deb8u1
I can't find changelog any information that pecl_http is not backward compatible with PHP 5.x.
I tried with PHP 7.0 and it installed successfully, but is there anything I can do to install it with PHP 5.x?
You'll need to find out what version of pecl_http doesn't require the current version of PHP, and then specifically install that one. According to the documentation:
"Package[-version/state][.tar]" : queries your default channel's server
(pear.php.net) and downloads the newest package with
the preferred quality/state (stable).
To retrieve Package version 1.1, use "Package-1.1," to retrieve
Package state beta, use "Package-beta." To retrieve an uncompressed
file, append .tar (make sure there is no file by the same name first)
And according to the changelog, pecl_http 3.0 is the first PHP 7 compatible version, so maybe try the previous.
Final answer: you'd be looking for sudo pecl install pecl_http-2.5.5
This question has an accepted answer, but I will add my 2 cents to the subject:
Based on your PHP version:
for PHP 7 use 'pecl install oci8'
for PHP 5.2 to 5.6 use 'pecl install oci8-2.0.12'
for PHP 4.3.9 to 5.1 use 'pecl install oci8-1.4.10'
OCI8 2.0.12 is the final release for PHP 5.6.x
OCI8 2.1.x is only valid for PHP 7
Installing OCI8 for PHP 5.6.31:
[root#server bin]# ./pecl install oci8-2.0.12
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading oci8-2.0.12.tar ...
Starting to download oci8-2.0.12.tar (1,615,360 bytes)
....
11 source files, building
running: phpize
Configuring for:
...
Expected output for PHP 5.6.31 and OCI8 2.0.12
This is the easiest way to install OCI8 support.
I need to install propel_generator version 1.3.5 on my machine. I tried to install it using PEAR via:
pear install propel/propel_generator-1.3.5
but it failed with the following message:
Failed to download propel/propel_generator, version "1.3.5", latest release is version 1.6.7, stability "stable", use "channel://pear.propelorm.org/propel_generator-1.6.7" to install
install failed
Following this answer I checked http://pear.propelorm.org/Chiara_PEAR_Server_REST/r/propel_generator/allreleases.xml and the earliest version of propel_generator that is available for install via PEAR from there is version 1.3.0 and the next to follow is 1.4.0 with no 1.3.5 in between.
Is there a way to install propel_generator version 1.3.5 using PEAR or any other way?
I can't even find the source code for the 1.3.5 generator.
PS: The generator is being used by a legacy system so upgrading isn't really an option.
There was never an official release of 1.3.5, see the list of tags at http://svn.propelorm.org/tags/ - you won't get that version from anywhere.
I am trying to set up a old PHP version using Macports on Snow Leopard. I have installed sudo port install php52 +apache2 +mysql5-server with no problem when I then try to install php5-mysql I get the following error.
Error: php5-mysql 5.3.6 requires PHP 5.3.6 but you have PHP 5.2.17.
Error: Target org.macports.configure returned: incompatible PHP installation
Log for php5-mysql is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-mysql/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
I have tried to search the MacPorts help although this has not been very helpful to me in finding anything that relates to my problem.
Find an older version of php5-mysql that works with your PHP version, which is 5.2.17. Otherwise you will always run into this problem.
This is also known as a package dependency. If you can not fullfil a dependency, the package can not be installed (well it probably could, but then it would not run, so the package manager refuses you to install that).
From the changelog of the mysqli package it does not look like that 5.2 is supported, but according to linked information it might have been in some older package.
I'm trying to install propel_generator version 1.2 (later versions are incompatible with the project I'm working on). I've tried
pear install propel/propel_generator-1.2
But I get the following error:
Failed to download propel/propel_generator, version "1.2",
latest release is version 1.5.2, stability "stable",
use "channel://pear.propelorm.org/propel_generator-1.5.2" to install
install failed
Anybody know how I can install this using Pear?
The short answer is: You can't.
The explanation is:
I took a look at http://pear.propelorm.org/Chiara_PEAR_Server_REST/r/propel_generator/allreleases.xml and the earliest version of propel_generator that is available for install via PEAR from there is version 1.3.0
You could download the v1.2.0 code from http://svn.propelorm.org/tags/1.2.0/ and create a pear package.xml yourself, using their BuildPropelPEARPackageTask.php script, if you really need to.