Newbie setup

I am new to all of this so bare with me. I just did a complete setup
on a OS X machine in my directory. Then I tried to access everything
from a different directory and couldn’t get any of it. In my directory
I have the newer version of rails, etc. In the other directory it only
shows the older version of ruby and no rails. My question: Is there a
way to access everything I did from any personal directory or do I
have to do the same installation again for each directory?

Hi,

2007/8/4, [email protected] [email protected]:

I just did a complete setup
on a OS X machine in my directory.

What do you mean by this? Did you set up RoR as gems? Did you create
a RoR application using something like “$ rails myapp”?

Lutz

Hi, if you followed the instructions, then you should have added the
directory that contains the executables to you path. For example, in
the
.profile, I have something like this
export
PATH=<the_name_of_the_directory_that_contains_ruby_executable>:$PATH

Good luck,

-Conrad

Hi, please follow one of the setups in Chapter 3 of AWDwRv2 for Mac OS
X.
Here’s one that I have used in the past:

Good luck,

-Conrad

Already did all this. My question is am I only able to run all of this
from the directory I installed it all in? Because I can’t access it
anywhere else.

Yes, I installed everything as indicated at

but I can only access everything from one directory only. Is it
suppose to work this way?

As someone stated previously the problem is probably that you don’t
have the executable’s for rails and ruby in your path BEFORE the
default versions.

Here is line from my .bash_profile (my ruby and rails are in /usr/
local/bin-- the others are for mysql an lighttpd):

export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:
$PATH"

You will need to type “. ~/.bash_profile” after you add this for this
session but for future sessions it should be run automatically.

Finally got it. Thanks so much. I am a pure beginner and I didn’t
realize that I had to make the PATH change in each user directory.

yes I did this exactly as stated in the instructions. It all works
fine but am I only suppose to be able to access rails and this updated
ruby in my directory only? Because when I go to any other directory I
cannot access anything but the Ruby version (older) that came with OS
X 10.4

Quoting “[email protected][email protected], who spaketh thusly:

Finally got it. Thanks so much. I am a pure beginner and I didn’t
realize that I had to make the PATH change in each user directory.

You can also make the change to /etc/profile and it will be global to
all accounts across the machine.

– Mitch