Your shell, in Terminal, is tcsh. So, when you entered `echo $SHELL`, the response you got was /bin/tcsh. The file .tcshrc is a plain text file where you can customize your shell (Terminal) environment. It belongs in your home directory, as stated in the directions, not in MyComputer/Library/MySQL/bin. It won't exist until you create it, which is why you can't find it.

Try this in the shell (Terminal):

  cd ~
  echo 'setenv PATH "$PATH":/Library/MySQL/bin' >>.tcshrc

The first command changes your current working directory to your home directory, the second line prints the line you need and appends the output to the .tcshrc file. The ">>" does the redirection/appending.

The PATH environment variable tells the shell (Terminal) where to look for executable programs. The line you are appending adds the location of the mysql programs to that list. Also, the .tcshrc is read by tcsh at startup, so adding this line won't affect the shell (Terminal) session you are in at that moment. You can update the PATH in the current session with the command

setenv PATH "$PATH":/Library/MySQL/bin

Michael


Lost Idols wrote:


I had tips from some people here to install the complete MySQL from Server Logistics
on my Mac OS X 10.2 and so I did (I also installed Apache 2 and PHP from them).
Now I'm on Step one, but got stuck here. (I always get stuck while trying this MySQL).


In the pdf-file that came along with the installation it says:

shell> echo $SHELL
This will return the path to the shell you are using. In most cases it will return
either "/bin/tcsh" (tcsh shell) or "/bin/bash" (bash shell). If you are using the tcsh
shell, you will have to modify the file ".tcshrc" located within your home
directory. If this file does not exist, then you will have to create a new one. After
opening the file in your text editor, add the following line at the bottom of the
file:
setenv PATH "$PATH":/Library/MySQL/bin
Save the file.



But when I try to find this .tcshrc file (whisch is the one showing up when I write
that line in my Terminal. I can't find it (not by using Sherlock or when looking).
I guess it should be in MyComputer / Library / MySQL / bin. But it isn't.
So I wrote the line they explain in the end of the text above and try to save it as
.tcshrc, but my computer tells me I can't use a name with a dot in the beginning.
So I tried to take that away and then drop the file from the desktop to the bin folder,
but then it tells m I'm not allowed to change that folder?!


What am I supposed to do??? I'm really a newbie here... and it seems I'll always be...
I've tried this sooo many times the last week now. I'm about to give up soon.


:-(

_________________________________________________________________
Hitta rätt köpare på MSN Köp & Sälj http://www.msn.se/koposalj




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to