I am getting hung up installing RoR according to the Hivelogic tutorial. First a little history: I started off by following the Hivelogic tutorial, but I messed something up and my Mac wouldn''t start! So after wiping everything out and reinstalling OSX. Then I tried using Darwin Ports to manage the install of RoR, but I kept getting some ruby gem dependencie error. Now I am back to the Hivelogic method, but I am running into a problem. When I try to install rails via: <pre>sudo gem install rails --include-dependencies</pre> But this throws the following error: <pre>sudo: gem: command not found</pre> I think this may be due to the "path" not being set right. Actually, I think there may be some residual path settings from using the ports method to install Ror. When I run "which gem" I get: <pre>no gem in /opt/local/bin /opt/local/sbin /opt/local/bin /bin /sbin /usr/bin /usr/sbin</pre> So it seems to me that the changes I made to the "path" according to the Hivelogic tutorial are being overridden by the path settings I made earlier. So I guess my question is... How do I fidure out which file is setting the path? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
If you installed according to senor Benjamin''s tutorial, you''d be installing into /usr/local/... and as you can see by the results of your which command, none of that is in your path. There are several ways to setup the path. You can update the path in ~/.bashrc to affect only your user, or /etc/profile to affect the whole system. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Seth Thomas Rasmussen wrote:> If you installed according to senor Benjamin''s tutorial, you''d be > installing into /usr/local/... and as you can see by the results of > your which command, none of that is in your path. > > There are several ways to setup the path. You can update the path in > ~/.bashrc to affect only your user, or /etc/profile to affect the whole > system.Thanks for the reply! When I type "mate ~/.bashrc" there is nothing in the file, which is a good thing sine I think I want the path to be system wide. When I type "mate /etc/profile", I get the following: # System-wide .profile for sh(1) PATH="/bin:/sbin:/usr/bin:/usr/sbin" export PATH if [ "${BASH-no}" != "no" ]; then [ -r /etc/bashrc ] && . /etc/bashrc fi So, there is nothing in there telling my Mac to look in the correct place for the files I have compiled, correct? (I am really new to a Mac, please bear with me!) Following the tutorial by "senor Benjamin", if I open .bash_login for editing, I get: export PATH="/usr/local/bin:/usr/local/sbin:$PATH" Should I remove this, and place it the information in the /etc/profile file? This sort of makes sense since I am not running as an admin, so when I execute these commands I first "su" as and admin and then "sudo" the commands when neccesary. Have I only told my Mac to look in the path for the admin user? I think so! I am going to place the path info /etc/profile. Thanks Again, Shane -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Shane Pinnell wrote:> Seth Thomas Rasmussen wrote: >> If you installed according to senor Benjamin''s tutorial, you''d be >> installing into /usr/local/... and as you can see by the results of >> your which command, none of that is in your path. >> >> There are several ways to setup the path. You can update the path in >> ~/.bashrc to affect only your user, or /etc/profile to affect the whole >> system. > > Thanks for the reply! When I type "mate ~/.bashrc" there is nothing in > the file, which is a good thing sine I think I want the path to be > system wide. When I type "mate /etc/profile", I get the following: > > # System-wide .profile for sh(1) > > PATH="/bin:/sbin:/usr/bin:/usr/sbin" > export PATH > > if [ "${BASH-no}" != "no" ]; then > [ -r /etc/bashrc ] && . /etc/bashrc > fi > > So, there is nothing in there telling my Mac to look in the correct > place for the files I have compiled, correct? (I am really new to a Mac, > please bear with me!) > > Following the tutorial by "senor Benjamin", if I open .bash_login for > editing, I get: > > export PATH="/usr/local/bin:/usr/local/sbin:$PATH" > > Should I remove this, and place it the information in the /etc/profile > file? This sort of makes sense since I am not running as an admin, so > when I execute these commands I first "su" as and admin and then "sudo" > the commands when neccesary. Have I only told my Mac to look in the path > for the admin user? I think so! I am going to place the path info > /etc/profile. > > Thanks Again, > > ShaneWell, I made those changes. so I set the path in my "/etc/profile" file and all seems to be going well. The file now contains: # System-wide .profile for sh(1) PATH="/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin" export PATH if [ "${BASH-no}" != "no" ]; then [ -r /etc/bashrc ] && . /etc/bashrc fi Does this look correct? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---