Rails on osx-says it's installed but isn't

Anyone have any ideas on this?

···

On 8/1/05, blackwater dev <blackwaterdev@gmail.com> wrote:

After some work, I finally got ruby gems to install on a mac osx
installation. I then did the sudo gem install rails --remote and
everything seemed good...

Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org
Install required dependency rake? [Yn] y
Install required dependency activesupport? [Yn] y
Install required dependency activerecord? [Yn] y
Install required dependency actionpack? [Yn] y
Install required dependency actionmailer? [Yn] y
Install required dependency actionwebservice? [Yn] y
Successfully installed rails-0.13.1
Successfully installed rake-0.5.4
Successfully installed activesupport-1.1.1
Successfully installed activerecord-1.11.1
Successfully installed actionpack-1.9.1
Successfully installed actionmailer-1.0.1
Successfully installed actionwebservice-0.8.1
Installing RDoc documentation for rake-0.5.4...
Installing RDoc documentation for activesupport-1.1.1...
Installing RDoc documentation for activerecord-1.11.1...
Installing RDoc documentation for actionpack-1.9.1...
Installing RDoc documentation for actionmailer-1.0.1...
Installing RDoc documentation for actionwebservice-0.8.1...

I then go to create a project but get an error:
root:~/rails root$ rails cookbook
-bash: rails: command not found

Why does it think that rails isn't installed?

Thanks!

You should have a look on your PATH-variable. probably root doesn'not know
where to find the rails script.

try
echo $PATH

for root and your normal user. Maybe you just have to add the rails-path to your
path with:
export PATH=$PATH:/path/to/rails

regards
ralf

It's quite insecure to run a web-applecation as root.

···

On Tue, 2 Aug 2005 19:17:38 +0900 blackwater dev <blackwaterdev@gmail.com> wrote:

Anyone have any ideas on this?

Is the rails command in you $PATH? What is the result of the following command in the terminal?

echo $PATH

Make sure your path contains /usr/local/bin. You could also try to call rails with its full path. depending on where you install things it should be in one of 2 places: either /usr/bin/rails or /usr/local/bin/rails

Check out both of those places and see where the rails command is actually located and then make sure that it is in you $PATH by adding it to your ~/.bashrc or equivalent file.

HTH-
-Ezra

···

On Aug 2, 2005, at 3:17 AM, blackwater dev wrote:

Anyone have any ideas on this?

On 8/1/05, blackwater dev <blackwaterdev@gmail.com> wrote:

After some work, I finally got ruby gems to install on a mac osx
installation. I then did the sudo gem install rails --remote and
everything seemed good...

Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org
Install required dependency rake? [Yn] y
Install required dependency activesupport? [Yn] y
Install required dependency activerecord? [Yn] y
Install required dependency actionpack? [Yn] y
Install required dependency actionmailer? [Yn] y
Install required dependency actionwebservice? [Yn] y
Successfully installed rails-0.13.1
Successfully installed rake-0.5.4
Successfully installed activesupport-1.1.1
Successfully installed activerecord-1.11.1
Successfully installed actionpack-1.9.1
Successfully installed actionmailer-1.0.1
Successfully installed actionwebservice-0.8.1
Installing RDoc documentation for rake-0.5.4...
Installing RDoc documentation for activesupport-1.1.1...
Installing RDoc documentation for activerecord-1.11.1...
Installing RDoc documentation for actionpack-1.9.1...
Installing RDoc documentation for actionmailer-1.0.1...
Installing RDoc documentation for actionwebservice-0.8.1...

I then go to create a project but get an error:
root:~/rails root$ rails cookbook
-bash: rails: command not found

Why does it think that rails isn't installed?

Thanks!

-Ezra Zygmuntowicz
Yakima Herald-Republic
WebMaster
509-577-7732
ezra@yakima-herald.com

I got it working..thanks.

···

On 8/2/05, Ralf Müller <r_mueller@imp-ag.de> wrote:

On Tue, 2 Aug 2005 19:17:38 +0900 > blackwater dev <blackwaterdev@gmail.com> wrote:

> Anyone have any ideas on this?
You should have a look on your PATH-variable. probably root doesn'not know
where to find the rails script.

try
echo $PATH

for root and your normal user. Maybe you just have to add the rails-path to your
path with:
export PATH=$PATH:/path/to/rails

regards
ralf

It's quite insecure to run a web-applecation as root.