Need to install propel_generator version 1.3.5 - php

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.

Related

Centos php 7.1 install svn with pecl

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.

How to install http_pecl on PHP 5.x?

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.

Can I Ignore PHP Version Requirements for Pear Package Install

I'm trying to install a couple of pear packages but have an issue with the version of PHP I'm running. Firstly I get:
sudo pear install phix/Autoloader
Failed to download phix/Autoloader, latest release is version 3.0.0, but it requires PHP version "5.3.0", use "channel://pear.phix-project.org/Autoloader-3.0.0" to install
Cannot initialize 'channel://pear.phix-project.org/Autoloader', invalid or missing package file
Package "channel://pear.phix-project.org/Autoloader" is not valid
install failed
I then try and install as follows:
sudo pear install channel://pear.phix-project.org/Autoloader-3.0.0
phix/Autoloader requires PHP (version >= 5.3.0), installed version is 5.2.6-1+lenny13
No valid packages found
install failed
Would I be correct in assuming the error is related to the version of PHP I'm running? If so, is there a way of getting the pear install to ignore the PHP version requirements?
Thanks
Even if you bring PEAR to ignore the version, you cannot use the packages, because the requirements are not fulfilled. There are really good reasons, why the package maintainers set the requirements.
Thus: No, you can't.
Please take a look into
pear help install
This should list you all available options. As written in my comment above, I don't think it makes sense, but you can just try harder to make pear installing the package anyway. The package then might just not work in the end, but well, that are "just" requirements you'd like to ignore anyway, so go ahead ;)

PEAR install issue, downloads but doesn't install

I saw this thread which is exactly what I've done as well, Downgraded PHP to version 5.2 on Ubuntu 10.4
When running as root I just get the download, no install message, any thoughts?
pear install Mail_Mime-1.8.0.tgz
downloading Mail_Mime-1.8.0.tgz ...
Starting to download Mail_Mime-1.8.0.tgz (31,292 bytes)
.........done: 31,292 bytes
I've looked in the phpinfo() and see nothing except the pear path
include_path .:/usr/share/php:/usr/share/pear .:/usr/share/php:/usr/share/pear
running pear list I get this
pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.3 stable
Console_Getopt 1.2.3 stable
PEAR 1.9.0 stable
Structures_Graph 1.0.2 stable
XML_Util 1.2.1 stable
please manual download Mail_Mime files and extract to /usr/share/pear/
Found a work around, not the best solution but it works. Using the Ubuntu Download Center, search for pear and install the needed packages. Most are listing with a prepending php-
php-mail

Install propel_generator 1.2?

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.

Categories