Install ruby 1.9.3 mac os x lion

Robert Anderson's ones and zeros

However, it is not updated as often as the official Apple tools, and I personally ran into issues with it on Lion. You should see the pop up below on your screen.

Your computer will then attempt to find the software, and then will start downloading it. The following popup will appear:. Once the. This will mount the disk image and open a window in your Finder that looks like this:. Once the installation is complete, go to your Applications folder and double-click on Xcode, then install any required components if asked to.

When prompted to log in, you should be able to use the same email and password you use for iTunes and app purchases. Martin pointed out that the Xcode 4. I confirmed that the latest version of Xcode for Snow Leopard available to me while signed in with a free account is 3. I have not tested this setup with Xcode 3.

Install Homebrew

As mentioned at the beginning of this section, I have not tested this tutorial with Xcode 3. Once the installer launches, make sure all the checkboxes are checked, as shown in the screenshot below:. If the installation fails, quit the installer, then run Software Update and install any updates that it finds. If no new updates are available, restart your computer and try installing Xcode again. From now on, you will be copying and pasting or typing a lot of commands in Terminal.

They will be formatted like so:.

ruby - 使用适用于Mac OS X 10.7.5的Ruby完成Ruby 1.9.3的安装Leopard,Xcode 4.5.2-rvm pkg install openssl的问题

If all went well, you should see the GCC version in the output. It will show something like this:. Here are some screenshots from Lion, Mountain Lion, and Mavericks. Note that the command listed on the Homebrew site could change, so please make sure that what I have listed above is the same. Run the command, and follow the instructions when prompted, as highlighted in the screenshot below. Note that Terminal does not provide visual feedback when you type your password.

Just type it slowly and press return. Otherwise, continue reading to learn how to fix errors and warnings you might run into. In many cases, Homebrew will provide helpful instructions for dealing with warnings and errors, and I usually follow those instructions. Every time you open a new Terminal window or tab,.

In Step 4, I explain why this is important. Your system should be ready to brew now. You should copy and paste the command above as is.

For example:. To display one additional line at a time, press return. To display an additional page at a time, press the space bar. If you think you might need this version of Python, then just ignore those warnings. Xcode CLT is needed for Homebrew. IF you have to do everything via command-line , for some reason, see the instructions for installing Xcode CLT via command-line. Otherwise, just do the following….

From the Finder window that pops up, double-click Command Line Tools Now we should have gcc , make , and a few other important things. For example:. There is an alternative — MacPorts — but I strongly prefer Homebrew for its simplicity and reliability. In my case it has nothing to recommend: Your system is ready to brew. Otherwise, you may need to tweak some things to make it happy, but it should tell you what to do.

Now that we have Homebrew, installing packages is so much easier. Now, at this point I ran git --version and found it was still executing the old Apple Git version instead of the new one I just installed. I exited my Terminal and started up a new one, to load the latest config, and ran brew doctor again, which told me:. Here is the exact, revised statement that I executed:.

Upgrading to Ruby 2.0 on Mountain Lion

Note that the last option for push. These instructions are adapted from this article , but have been re-written slightly to make it clearer what, exactly, you need to do:. Generate an SSH key , noting that a passphrase is optional.

RVM — Ruby Version Manager — lets you easily install Ruby, and optionally multiple different versions of Ruby on the same machine, such as 1. It can manage multiple Gemsets for each, and allow each project to specify particular Ruby and Gemset requirements at runtime. NOTE: The leading backslash is deliberate 5. See below re tips for installing on Mac OS X For me, on my slow old MacBook, this took about 1 hour. On a model iMac with OS X Bundler is a very popular, and widely-supported way to manage a set of Gems per each of your Ruby projects. By use of a Gemfile which is a very simple Ruby script that dynamically defines dependencies for specific Gems and respective versions , you can ensure the correct environment is managed in the scope of your application for development, production, and other purposes.

This is intended to speed things up, and makes the assumption that you will always use a documentation source other than the gem files themselves — e. The following packages are optional, but highly-recommended as they add a lot of value. You can also customise them as you need.

Install Ruby on Mavericks - kinopyo blog

If you intend to programmatically process images, say via a script or Ruby app, you will most likely find yourself using ImageMagick. In my case, I use it both via command-line i. I expected to get a stable ImageMagick install with a single Homebrew command: brew install imagemagick.

1.4. Ruby on Rails 4 on Mac OS X 10.7

However, after doing this, SVG files I wanted to process were randomly problematic. I found that the solution was to install ImageMagick specifically with librsvg integration. I did that as follows:. Note that this took over half an hour for me:. For more info, see below re tips for installing on Mac OS X Then, install imagemagick specifically using the --with-librsvg option:. Sometimes this may be overkill for a small, internal, or otherwise private project, but it may still turn out to be more useful than you expect.

To understand git-flow better, I suggest you read the original description of the git-flow model , but bear in mind that it was written before the git-flow helper commands were created. That document just explains basically how it works. Whether you read that or not, there is a great git-flow cheatsheet which shows clearly what the git-flow helper commands are, and how to use them.

I use vim for quickly editing files from time to time at the command-line, including over SSH. If you now paste in content while in this mode, its indentation will not be altered by Vim. Hit F6 again to exit out of paste mode. For example, if you want, you can specify different tab formatting for different file types. As a terminal replacement, there are many things I really like about iTerm2.

Aside from being heavily customisable, it has features such as: saved profiles ; session playback ; split windows ; and a lot of other conveniences that just make sense. Extract the. Move iTerm. I strongly recommend it because it is attractive, highly customisable, and rich in sensible features. Go to the Sublime Text website , download it v2. You can ensure that this is the case, using this:. This allows you to launch Sublime Text from command-line, to get it to open a file or folder.

See the subl command-line utility documentation for more info.

install ruby 1.9.3 mac os x lion Install ruby 1.9.3 mac os x lion
install ruby 1.9.3 mac os x lion Install ruby 1.9.3 mac os x lion
install ruby 1.9.3 mac os x lion Install ruby 1.9.3 mac os x lion
install ruby 1.9.3 mac os x lion Install ruby 1.9.3 mac os x lion
install ruby 1.9.3 mac os x lion Install ruby 1.9.3 mac os x lion
install ruby 1.9.3 mac os x lion Install ruby 1.9.3 mac os x lion
install ruby 1.9.3 mac os x lion Install ruby 1.9.3 mac os x lion

Related install ruby 1.9.3 mac os x lion

Copyright 2019 - All Right Reserved