Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New way to install? #465

Closed
velvetpixel opened this issue Feb 14, 2014 · 17 comments
Closed

New way to install? #465

velvetpixel opened this issue Feb 14, 2014 · 17 comments

Comments

@velvetpixel
Copy link

Installing drush with pear is failing. Is there now a new way to install?

@weitzman
Copy link
Member

What is your pear command exactly?

On Friday, February 14, 2014, velvetpixel notifications@github.com wrote:

Installing drush with pear is failing. Is there now a new way to install?

Reply to this email directly or view it on GitHubhttps://github.com//issues/465
.

@reduxdamien
Copy link

For me,

root@x:~# pear channel-discover pear.drush.org
Adding Channel "pear.drush.org" succeeded
Discovery of channel "pear.drush.org" succeeded

root@x:~# pear install drush/drush
Notice: Array to string conversion in PEAR/REST/13.php on line 80
PHP Notice: Array to string conversion in /usr/share/php/PEAR/REST/13.php on line 80

Warning: Invalid argument supplied for foreach() in PEAR/REST/13.php on line 84
PHP Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/REST/13.php on line 84
PHP Fatal error: Cannot use string offset as an array in /usr/share/php/PEAR/REST/10.php on line 263

@joshuataylor
Copy link

I wrote a blog post this a couple of days ago:
http://joshtaylor.id.au/drupal-8-drush-7-x

If you want me to contribute this back into this repo let me know - seems there is a lot of confusion going around.

@PeteLawrence
Copy link

I'm having the same problem installing drush via PEAR. Thanks for the workaround @joshuataylor.

I see from #445 that the PEAR installation instructions have been removed, but can't see anywhere that states (obviously) that installation via PEAR is no longer supported at all. If installation via PEAR is not supported anymore can I suggest this is made clearer as I imagine others are going to run into this same problem.

@dergachev
Copy link

Just got bit by this too, all of a sudden our Docker builds are breaking. Googling around suggests this is happening to tons of other people too. Was it really necessary to disable the pear channel at this point?

@weitzman
Copy link
Member

We didn't disable the pear channel yet. Pear is now deprecated, but we will keep it going for a while to give folks a time to change to composer. This issue a bug. @msonnabaum will look into it as time permits. Others are welcome to do so as well.

@paul-m
Copy link

paul-m commented Feb 17, 2014

paul$ sudo pear install drush/drush

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 305

Warning: Illegal string offset 'v' in PEAR/REST/10.php on line 350

Warning: Illegal string offset 'p' in PEAR/REST/10.php on line 352

Warning: Illegal string offset '_content' in PEAR/REST/10.php on line 352

Warning: Illegal string offset 'st' in PEAR/REST/10.php on line 353

Warning: Illegal string offset 'g' in PEAR/REST/10.php on line 359

@DeveloperChris
Copy link

Same Issue here. Seems pear is no longer supported. you need to install composer grab the drush git from git hub and then use composer to update everything.

The instructions are in README.md in the cloned git repo.

@DeveloperChris
Copy link

Install composer and drush (debian but should be the same for most linux's)

Note: directories are up to you This was mine ...

clone git somewhere
git clone https://github.com/drush-ops/drush.git /usr/local/drush

create a link to drush from the bin dir
ln -s /usr/local/drush /usr/local/bin/drush

install composer
curl -sS https://getcomposer.org/installer | php

move it into the path and rename it
mv composer.phar /usr/local/bin/composer
(or you can link it like with drush above)

get dependencies
cd /usr/local/drush
composer install

You should be ready to go
Please add to this instruction with anything required for your own OS

@msonnabaum
Copy link
Contributor

pear is still supported for the current stable release.

The existing channel broke because of a header change on github-pages. I moved the channel to S3 in the meantime, which appears to be working fine.

@velvetpixel
Copy link
Author

Thank you for the info!

@dergachev
Copy link

👍 thanks @msonnabaum

Woohoo, the following now works:

pear channel-discover pear.drush.org
pear install drush/drush

@xmacinfo
Copy link

xmacinfo commented Mar 7, 2014

Each time I need to reinstall Drush I need to chase a new way to install Drush.

I hope Drush will do a comeback on Pear, unless Composer comes installed by default on MAMP stacks in the future.

Thanks for keeping the current release version on Pear.

But then again, I face issues with MAMP Pro 3.0.1 with Pear install. (Editing the path to the new PHP version provided by MAMP Pro solved the issue).

@paul-m
Copy link

paul-m commented Mar 8, 2014

This issue inspired me to write this 'blog post: http://mile23.com/content/some-composer-drush-tricks

@leolandotan
Copy link

In Ubuntu 12.04, "pear channel-discover pear.drush.org" gives me an error saying "could not create lock file: fopen(/usr/share/php/.lock): failed to open stream: Permission denied".

Any fixes for this?

Thanks

@joshuataylor
Copy link

@leolandotan Use sudo, or use composer.

@leolandotan
Copy link

@joshuataylor I got it now. I used sudo but Drush couldn't download a library because of the permission again so I just downloaded it manually and followed the instructions from Drush where to place it and works perfectly. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests