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,

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:

http://hivelogic.com/narrative/articles/ruby_rails_lighttpd_mysql_tiger

Good luck,

-Conrad

Yes, I installed everything as indicated at

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

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

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.

Quoting "railsfid@gmail.com" <railsfid@gmail.com>, 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