So my /etc/profile, /etc/bashrc and /etc/paths.d are system defaults now, and just edited /etc/paths to put /usr/local/bin at the top.
Note that for Mac Ports it's /opt/local/bin, not /usr/local/bin.
If you are an experienced Unix administrator, you can consider alternatives such as Chruby or Sam Stephenson’s rbenv. You may hear about one-click installation programs such as Rails Installer, Cinderella, and Bit Nami Ruby Stack.
These installation programs are often outdated and they are no longer needed as at the system level creating potential conflicts.
You might want to try the Rails Apps Example Applications and the Capstone Rails Tutorials.
These instructions can be used for mac OS 10.9 Mavericks, 10.10 Yosemite, or 10.11 El Capitan.
Rails changes frequently; each application is known to work and serves as your personal "reference implementation." Support for the project comes from people who purchase the Capstone Rails Tutorials.If you updated to High Sierra from an earlier version of mac OS (sometimes called an "over the top" installation), and you previously installed a Rails development environment, your earlier installation remains intact.You will need to install the new version of Xcode Command Line Tools (full instructions below).Though Rails is still intact after an update, read through this article and take this opportunity to update your development environment.You’ll need an easy way to switch between Ruby versions.-- Florian Gilcher smtp: [email protected]: [email protected] gpg: 533148E2 Hi!I installed ruby19 with macports (1.8.0) on Leopard, but still can't use ruby 1.9.The release version of Ruby 1.9 automatically configures itself to use ruby19. I would advice at not messing with the preinstalled version, as there is a lot of software depending on it.Regards, Florian : which is not hard, because it's outside of the scope where normal *nix Software messes around.export PATH=/opt/local/bin:/opt/local/sbin:$PATH # Finished adapting your PATH environment variable for use with Mac Ports. I'm not sure because I installed Ruby 1.9 from source, but others have said that macports installs ruby 1.1 with the suffix 19, so as not to conflict with the base install. The hot ticket these days for managing multiple versions of Ruby on OS X and Linux is the rvm gem I haven't tried yet, but probably will look at it myself after I finish migrating to Snow Leopard.# Mac Ports Installer addition on 2009-02-22_at_: adding an appropriate MANPATH variable for use with Mac Ports. -- Rick De Natale Blog: Twitter: De Natale WWR: Linked In: I had /usr/local/bin in /etc/profile and it was being ignored after upgrade to SL.