Topic: tcsh: Command not found and sudo: gem: command not found

Hello,

I am trying to install rails, gems and ruby and have been using the hivelogic tutorial.

I am using Mac 10.4.8 on an intel dual core imac.

I am new to rails but have used the terminal a little before, but some time ago.

I wonder if anyone could help me with this problem:

.bash_login contains this : export PATH="/usr/local/bin:/usr/local/sbin:$PATH"

It is there, definitely. I tried to execute the file with the command . ~/.bash_login

I get this response: tcsh: .: Command not found.

Also I installed ruby 1.8.4 and gems and when I open the terminal back up again, it tells me I have 1.8.3 installed.

Any mention of gem, eg  sudo gem install rails --include-dependencies

I get this message:sudo: gem: command not found

the src folder in the home folder has rubygems, ruby and readline in it.

I have some vague ideas about the possible problem, but I don't know enough about unix to deal with them.

Any assistance greatly appreciated.


Many thanks.

Re: tcsh: Command not found and sudo: gem: command not found

Sounds like you're using tcsh instead of bash - which is why the newly installed ruby/gems can't be found (the .bash_login file isn't loading). See this article for instructions on switching to bash.

Railscasts - Free Ruby on Rails Screencasts

Re: tcsh: Command not found and sudo: gem: command not found

Wow, that was an amazingly fast response. Thank-you. That certainly seems to have been the problem. Changed to bash and everything seems to be running great.

I wondered why the tutorial guy had a $ after his user name in the terminal and I had a %.

Thanks again.

EJay