I'm new to Drush; I managed to install it on a fresh installation of MAMP Pro in just a few minutes. However, installing Drupal is another matter:

$ drush dl drupal
Project drupal (7.14) downloaded to /path/to/drupal-7.14.                                                                [success]
Project drupal contains:                                                                                                                          [success]
 - 3 profiles: testing, standard, minimal
 - 4 themes: stark, seven, garland, bartik
 - 47 modules: drupal_system_listing_incompatible_test, drupal_system_listing_compatible_test, user, update, trigger, translation, tracker,
toolbar, taxonomy, system, syslog, statistics, simpletest, shortcut, search, rdf, profile, poll, php, path, overlay, openid, node, menu, locale,
image, help, forum, filter, file, field_ui, text, options, number, list, field_sql_storage, field, dblog, dashboard, contextual, contact, comment,
color, book, blog, block, aggregator

$ drush site-install --db-url=mysql://admin:password@localhost/drupal --account-name=admin --account-pass=password
Bootstrap to phase 0. [0.01 sec, 3.71 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.05 sec, 3.93 MB] [bootstrap]
Cache HIT cid: 5.4-commandfiles-0-865d3a0f0b319f2e3c6d42d4c7424712 [0.07 sec, 3.95 MB]                                                                [debug]
Bootstrap to phase 0. [0.11 sec, 8.76 MB]                                                                                                         [bootstrap]
Bootstrap to phase 1. [0.13 sec, 8.76 MB]                                                                                                         [bootstrap]
Bootstrap to phase 5. [0.13 sec, 8.77 MB]                                                                                                         [bootstrap]
Command site-install needs a higher bootstrap level to run - you will need invoke drush from a more functional Drupal environment to run this     [error]
command. [0.13 sec, 8.77 MB]
The drush command 'site-install' could not be executed. [0.13 sec, 8.77 MB]                                                                       [error]
A Drupal installation directory could not be found [0.13 sec, 8.77 MB]

Perhaps this indicates where the problem lies?

$ drush status
 PHP configuration     :      
 Drush version         :  5.4 
 Drush configuration   :

Any suggestions?

Comments

mrtoner’s picture

Nevermind. Although everything I'd seen to this point indicated that drush dl drupal and drush site-install ... was all I needed, it's also necessary to be in the installation directory. The directory you downloaded Drupal to is not necessarily the installation directory -- it's either the "drupal-x.x" directory that was unpacked or the directory you then moved its contents to.

nilashis’s picture

What is the URL of this site you created?

I created the same way but how do I access it?