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

B

blackwater dev

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!
 
R

Ralf Müller

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.
 
B

blackwater dev

I got it working..thanks.

On Tue, 2 Aug 2005 19:17:38 +0900

You should have a look on your PATH-variable. probably root doesn'not kno= w
where to find the rails script.
=20
try
echo $PATH
=20
for root and your normal user. Maybe you just have to add the rails-path = to your
path with:
export PATH=3D$PATH:/path/to/rails
=20
regards
ralf
=20
It's quite insecure to run a web-applecation as root.
=20
 
E

Ezra Zygmuntowicz

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
Anyone have any ideas on this?

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
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top