![]() ![]() One of the most surprising and pleasant developments in the software world in recent years has been Microsoft warming up to open source. It’s always best to keep the development environment as close as possible to the production environment so that you don’t get any surprises when your code goes live. For example, if you want to write a Ruby on Rails web application, you’ll likely be deploying it onto a Linux web server. Plus, you may find that less common libraries don’t even offer a Windows version.Īnd if you’re planning on deploying your code, you should think about what that platform will be. When seeking help for a problem you run into, you’ll likely find fewer search results for Windows. ![]() There’s always been an effort to make it work on Windows as well, but the Unix-like environments got priority.įor many years, trying to develop Ruby code on a Windows computer meant dealing with issues that someone using a Mac or Linux computer wouldn’t face. It was developed on Unix-based computers, so making the language work there came first. Ruby is an open-source language written by volunteers. ![]() This means that they can use the same compiler, shared library system, and other tools to build the Ruby interpreter and Ruby libraries, which are called “RubyGems.” Those two operating systems have similar “toolchains” because both are based on Unix. Ruby’s difficulties on Windows stem from the fact that it’s very different, under the covers, from both Linux and macOS. Let’s take a look at how to set up a functioning Ruby environment on your Windows computer. The popular Ruby on Rails web framework also powers many large websites, meaning Ruby is here to stay. This simplicity makes it a good language to start with. It’s less verbose than many other languages, offering a concise and straightforward syntax. Ruby is primarily an object-oriented programming language (OOP), but it offers powerful aspects of the functional programming paradigm as well. Today, there’s no reason someone couldn’t write Ruby code on any platform.įirst released in the mid-1990s, Ruby’s popularity soared with the release of Ruby on Rails in 2005. Once upon a time, installing Ruby on Windows came with problems, but things have come a long way. Use a terminal to install ruby 1.9.Ruby is a well-established and well-regarded programming language. bash_profile (create one if none exists) : $ export PATH=$PATH:/usr/local/git/bin/ $ bash -s stable applications to locate "Xcode installation icon and double-click on it to begin the installationĪnd put this line in your. This is done via a shell script which you can download and run directly with a single command. Now that you're all set up, install RVM itself. $ sudo apt-get install zlib1g-dev libreadline-dev libssl-dev libxml2-dev Two of these libraries are readline, which lets you edit lines of text in bash or IRB, and zlib, which Rubygems will need to function. ![]() You're going to need a few libraries and their development package counterparts. In addition, RVM will also need curl to download files. So this is the first package that should be installed. These are usually bundled together with some other tools and behind the scenes magic in a package called build-essential. Watch the simple installation process and how to confirm that Ruby, Rails, Git, etc are all installed properly.įirst and foremost you need the C compiler and the Make utility. Download from Apple Application Store :ĭouble click on it to begin the installation.What you do next depends on your operating system. If you don't already have Ruby on your system or if you'd like to upgrade to a newer version (remembering that this couse describes Ruby 1.9), you can install it pretty simply. Try typing ruby -v at a command prompt-you may be pleasantly surprised. Ruby now come preinstalled on many Linux distributions, and Mac OS X includes Ruby). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |