This page shows what to do when you get the following error when using drush
Command pm-enable needs a higher bootstrap level to run - you will need invoke drush from a more functional Drupal environment to run this command.
This error is basically saying that it cannot locate drush or the correct host to execute the drush command. To solve the problem
1. Make sure you in the correct directory In command line, cd to the the directory where your drupal is installed. Then run drush en views. If you still get the error, continue to step 2.
2. Make sure you have execute permission on bin/php In command line, run the following command
You will see something like the following:
% drush status Drupal version : 7.34 Site URI : http://default Database driver : mysql Database username : root Database name : test1 Database : Connected Drupal bootstrap : Successful Drupal user : Anonymous Default theme : bartik Administration theme : seven PHP executable : /usr/bin/php PHP configuration : /etc/php5/cli/php.ini PHP OS : Linux Drush version : 6.0-dev Drush configuration : Drush alias files : Drupal root : /vagrant/public/local.dev/druptest1 Site path : sites/default File directory path : sites/default/files Temporary file directory path : /tmp