I just followed these commands in my mac terminal :

1. Download drush.tar.gz to your desktop (or wherever)

2. Jump across to the Terminal
cd ~/Desktop

3. Extract it with
tar -zxf drush.tar.gz

4. Move it to /usr/local/lib
sudo mv drush /usr/local/lib/

5. Make it executable
sudo chmod u+x /usr/local/lib/drush/drush

6. Then stick it in /usr/bin/ so that you can run it from anywhere
sudo ln -s /usr/local/lib/drush/drush /usr/bin/drush

Hope this helps someone :D

JayKayAu

Now I have a drush folder on my desktop, is that where it supposed to be? Or should it be in htdocs folder with my drupal folder for localhost or where?

Comments

doesn't make sense

All that has done is extracted the file to my desktop. I could have accomplished that more quickly by just point and click.
and yet all those commands went through and one of them says move to usr/local/lib path but looking in finder i only see a drush folder on desktop and older ones in various module folders like ctools...? I'm confused.

Makes sense in a Unix-like environment

I am not an OS X person, but the instructions you quote from JayKayAu makes sense when viewed from a the perspective of a Unix-like-OS perspective. OS X is descended from FreeBSD, which puts in that class (I think).

Drush is a command line interface, so the Finder GUI isn't relevant (I think - but again: I'm not an OS X person). You use drush from a terminal - (see step 2 of JayKayAu's instructions). The steps listed by JayKayAu will make drush available from the terminal no matter what your working directory is. You really want that.

PS: I don't like his step 6, where he creates a symbolic link from /usr/bin to the executable script in /usr/local/lib/drush. As an old Unix hand, I believe strictly in keeping /usr/bin free of any local additions, including symlinks. I would instead have created /usr/local/bin (if it didn't already exist), added it to my $PATH, and created the symbolic link there. But what he suggests will work, and maybe what he does is the way the young turks that use OS X prefer to do things.

japanese

my level for understanding basic programming is so deficient that everything I just read may as well have been written in another language :(
but thank you anyway- I really have no clue what you just said.

=-=

http://www.youtube.com/watch?v=eHWTOeOSgEA= installing drush on a mac
http://www.youtube.com/watch?v=fOyAWP8COGE = installing drush using git

drush

I need drush because drush unlike my main mac terminal SSH window is made for everything drupal- correct?

If I am not allowed to make shell commands to connect directly to my drupal folder on my online server than I
have no other choice but to use ftp instead so drush would be rendered obsolete in this case?

If however I want to use drush to update drupal core and download modules from drupal to my localhost testing
site it would come in handy for speeding up tasks?

If I bought a virtual private server I would be best to use my mac terminal for installing apache, mysql and php and drush for installing drupal?

I have drush installed on all

I have drush installed on all servers I use. This way you can use drush aliases and run drush commands on remote servers from your local installation.

--------------------------------------------------------

To reply to the original post, it looks like you only got to step 3. The folder is moved from the desktop to the listed folder in step 4, so and none of the other commands would work without moving it in step 4. Look at step 4 onwards:

4. Move it to /usr/local/lib
sudo mv drush /usr/local/lib/

5. Make it executable
sudo chmod u+x /usr/local/lib/drush/drush

6. Then stick it in /usr/bin/ so that you can run it from anywhere
sudo ln -s /usr/local/lib/drush/drush /usr/bin/drush

Notice the command sudo at the start of each of these commands. If you don't use that, then none of them will work. You will have to give your password after using the sudo command (maybe only the first time, depending on your configuration).

Jaypan We build websites

password

yes it did ask for password and had no errors but don't know where the folder should be . Can drush be made to open in drupal menu or is it always separate terminal window. I see the terminal window in drush folder but do most people place this folder in htdocs folder with drupal folders?

What do you mean "so you can run it anywhere"?

please excuse my ignorance but obviously ignorant of everything to do with terminals and command lines.

To be honest, in your

To be honest, in your confusion, I can't really understand what you mean.

On 'nix computers you can interface with the system using the command line. You can change file names edit files, move them around, search, change permissions, and do many, many things. Drush is an add-on to the command line, that lets you do Drupal things through the command line. Things such as clearing the cache, downloading modules, taking backups, interacting with SQL, and more.

Drush is used in the terminal, in the command line interface. The drush folder should be located at /usr/local/lib/ according to the commands you showed. However, you will never actually do anything with this folder.

Open the terminal and type 'drush' and enter. If you get a list of Drush commands, it means it installed properly. If you get a 'command not found' error, it means that it didn't install properly.

You will never see drush anything inside your actual Drupal site, or in your OSX interface. It is entirely a command line tool.

Jaypan We build websites

Found perfect resource

Thanks Jaypan, what you've just explained makes perfect sense. I needed that plain sense explanation spelled out for me.

Now I have found the perfect resource for learning UNIX command line by Gisle, a textbook in progress for absolute beginners.
I am very happy to have this help.

Thank you.

ok back to drush again

Having spent last couple of weeks at least 8 hours a day using unix command line, I can honestly say I am ready to install drush.

So at the moment it is indeed installed and landed in /usr/local/bin I can see it there even though I recall installing it at root but
gisle says this is a good place for it to be so all well and good.

The reason I am installing drush is to update a core module that is part of a private suite so cannot find a way to install in the normal way.

My admin tells me it has a minor upgrade and so I am hoping drush will execute it for me.

I tried drush upgrade in the hope that command might detect it but no such luck- didn't even find drupal directory much less understand command.

So obviously I have not installed drush properly but I dont want it to replace my current command line and VI editor which has grown on me.

I just would like to run drush for specific drupal upgrades. Can someone set me straight with this please?

=-=

http://www.youtube.com/watch?v=fOyAWP8COGE = will aid

drush doesn't find the folder you have to navigate to the folder in the drush shell
there is no upgrade command. to run updates use drush up see:http://www.drush.org/help

ah VM

you have the answer to everything, why can't you just live next door ;)

ok drush just tried to update core

thanks for that handy command and it went through entire core and found the ms-core i want updated but failed- said "unable to download".
I'm guessing this is a permission error?

Unable to download to /var/www/html/mydrupalfolder/sites/all/modules from [error]
Updating project ms_core failed.

course supposed to dload to core modules and not my added modules..hmm tricky one.

Anyway I am an idiot thinking it went in core. i just deleted from normal add on mod folder and replaced - all done .

=-=

erm. what is ms_core? I don't see it as a core module in any installs

read your last sentence too late.

thats ok

I need to take a break from all of this. Not able to think clearly otherwise. You are always a wonderful help.