I just did a "pear install drush/drush" and was expecting it to install the "7.x-5.3" as it is the only recommended version on the project page. However, it then notified me that it was "Starting to download drush-6.0.0.tgz (398,873 bytes)" and then when checking version it said I have 6.0-dev installed.

Where does this version come from? Its not even possible to select it as a version here in the issue queue, nor does any 6.x version existing when looking at the all releases page...

Comments

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

Have you instructed pear to download unstable versions? 6.0 is the same as the master branch in git which is the same as the dev snapshot downloadable on drupal.org. the names don't all match due to restrictions in each of those systems.

mgifford’s picture

Status: Postponed (maintainer needs more info) » Active

Duplicate issue #1512406: Drush 6?

I was just following exactly what's on the project page for Drush.

It would be great to know how to instruct Pear to download a specific version of Drush.

Can you give the exact command we should use to pull down the latest 5.x branch of Drush using pear?

mgifford’s picture

Status: Active » Needs work

Ok, this seems to work, but still not sure if the project page should be updated or if this is a strange bug in the distro I'm running.

$ sudo pear uninstall drush/drush
uninstall ok: channel://pear.drush.org/drush-6.0.0

$ sudo pear install drush/drush-5.0.0
WARNING: channel "pear.drush.org" has updated its protocols, use "pear channel-update pear.drush.org" to update
downloading drush-5.0.0.tgz ...
Starting to download drush-5.0.0.tgz (395,676 bytes)
.....................done: 395,676 bytes
install ok: channel://pear.drush.org/drush-5.0.0

$ sudo pear upgrade-all
Will upgrade channel://pear.drush.org/drush
WARNING: channel "pear.drush.org" has updated its protocols, use "pear channel-update pear.drush.org" to update
downloading drush-5.3.0.tgz ...
Starting to download drush-5.3.0.tgz (398,875 bytes)
.....................................................done: 398,875 bytes
upgrade-all ok: channel://pear.drush.org/drush-5.3.0
tsvenson’s picture

Have you instructed pear to download unstable versions?

No. Pear is only used for installing drush actually.

However, what I did before was to run "sudo pear install drush/drush" when I already had drush 5.0 installed. There where no complaints about it.

Now though, after reading #3, I did run "sudo pear uninstall drush/drush" and then "sudo pear install drush/drush". This time it did download and install 5.3.

So unless you have done something to the server between when I first tried it and now, maybe it gets a bit confused when there is already a drush installed?!

cgmonroe’s picture

Don't know if this is related, but if you download the All-versions-5.x-dev, the .info file contains the following conflicting version info:

drush_version=6.0-dev

; Information added by drupal.org packaging script on 2012-10-02
version = "All-versions-5.x-dev"
project = "drush"
datestamp = "1349137190"

If you do a drush status, you get 6.0-dev as the version and not the expected 5.0-dev.

Some quick git splunking showed that the master branch has this version tag while the 7.x-5.x branch has the 5.0-dev tags. What branch should the dev be created from?

seanburlington’s picture

Status: Needs work » Active

Hi,
I'm seeing drush-5.8 installed here

The machine in question is a clean Centos 6.3 install (VM setup for building rpms - a few build packages but no previous php install)

Here's my session


[vagrant@centos-63-64-rpmbuild ~]$ sudo pear channel-discover pear.drush.org
Adding Channel "pear.drush.org" succeeded
Discovery of channel "pear.drush.org" succeeded
[vagrant@centos-63-64-rpmbuild ~]$ sudo pear install drush/drush
downloading drush-5.8.0.tgz ...
Starting to download drush-5.8.0.tgz (406,910 bytes)
..................................................................................done: 406,910 bytes
install ok: channel://pear.drush.org/drush-5.8.0
[vagrant@centos-63-64-rpmbuild ~]$ drush --version
Drush needs to download a library from                               [error]
http://download.pear.php.net/package/Console_Table-1.1.3.tgz in order
to function, and the attempt to download this file automatically
failed because you do not have permission to write to the library
directory /usr/share/pear/drush/lib. To continue you will need to
manually download the package from
http://download.pear.php.net/package/Console_Table-1.1.3.tgz, extract
it, and copy the directory into your /usr/share/pear/drush/lib
directory.
[vagrant@centos-63-64-rpmbuild ~]$ sudo drush --version
drush version 5.8
seanburlington’s picture

Status: Active » Postponed (maintainer needs more info)

aha - my misunderstanding of the version info I think

I get the same info from the tarball

and on closer inspection the drush version 5.8 is the latest 7.x release of drush

I'd been confused when I first looked at http://pear.drush.org/ - as I saw a 6.0 version and not a 7.x version - I assumed this was talking about Drupal versions

Apologies - I obviously didn't read the drush page properly

greg.1.anderson’s picture

Version: » 8.x-6.x-dev
Status: Postponed (maintainer needs more info) » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.