1

Trying to install drush (Drupal Shell) with macports I get an error:

Error: Unable to execute port: Can't install php52 because conflicting ports are installed: php5 php5-gd php5-iconv php5-mbstring

There's only one blog I can find about a fix for this (here):

$ sudo port deactivate php5
$ sudo port install drush
$ sudo port deactivate php52
$ sudo port activate php5
$ sudo pear install Console_Table-1.1.3
$ drush

However for me: sudo port deactivate php5 gives:

Error: port deactivate failed: Please uninstall the ports that depend on php5 first

Any other ideas?

...I'd prefer not to go the Homebrew route as everything else I have installed via Macports.

I believe the version of Drupal I need to use is 6, but sudo port install drush +drupal6 returned the same conflict as above.

2 Answers 2

2

no need to go to Homebrow ...

To find the port depending on php5 , use port echo depends:php5.

This may be because of a leaf, try port echo leaves and if not necessary port uninstall leaves.

If all this did not solve your problem, You can try this :

sudo port uninstall php5
sudo port install php52
sudo port install drush

Otherwise try installing a variant of drushusing the following command :

sudo port install drush +drupal5 or sudo port install drush +drupal6.

5
  • Many thanks for your answer - I had a lot of leaves in my ports tree which I have uninstalled. Unfortunately this did not solve the issue deactivating the port.
    – benedict_w
    Jan 15, 2013 at 15:09
  • The problem is I don't want to downgrade as I am on php 5.3 and need it for other projects.
    – benedict_w
    Jan 15, 2013 at 15:10
  • You are interested in which Drupal version ? 5 or 6 ?
    – IamaTacos
    Jan 15, 2013 at 15:35
  • updated my solution, please consider faq
    – IamaTacos
    Jan 15, 2013 at 15:40
  • Doh! +drupal6 didn't work. Sorry I got excited and thought it had at first! I believe the project is Drupal6 but this is my first time setting it up.
    – benedict_w
    Jan 15, 2013 at 15:58
0

My solution was to use the Pear channel:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.