I am developing on Mac OSX 10.10. I am not using MAMP, Aquia Desktop or anything like that. Instead, I am using the built in PHP/MySql in Mac (set up using this tutorial).
When I run Drush, I get this error:
Command pm-enable needs a higher bootstrap level to run - you will [error] need to invoke drush from a more functional Drupal environment to run this command. The drush command 'en views' could not be executed.
(No other text is displayed).
If I do Drush status, I get the following:
Drupal version : 7.37 Site URI : http://mysite.local Database driver : mysql Database hostname : 127.0.0.1 Database username : dbuser Database name : dbname PHP executable : /usr/local/bin/php PHP configuration : /usr/local/etc/php/7.0/php.ini PHP OS : Darwin Drush script : /Users/myname/.composer/vendor/drush/drush/drus h.php Drush version : 8.0-dev Drush temp directory : /tmp Drush configuration : Drush alias files : Drupal root : /Users/myname/Sites/mysite Site path : sites/site1
Steps I have tried
1. Re-installing Drush via this tutorial
The tutorial says to install Drush via Composer. The install works, but when I re-run Drush, I get the same error.
2. Install Drush via this tutorial
This tutorial recommends to install it via Homebrew. When I do this, I get this error:
Problem 1 - Installation request for d11wtq/boris v1.0.10 -> satisfiable by d11wtq/boris[v1.0.10]. - d11wtq/boris v1.0.10 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
I've looked extensively on the Internet for how to fix this, but I just find sites saying I need to compile from source. They provide no steps on how to to do this, and I don't know what it means.
3. Using the 127.0.0.1 trick
(Changing host to 127.0.0.1 in settings.php).
Thanks for any help