![]() ![]() After the installation is complete, you’ll need to reboot your computer. After a few minutes, you’ll see a window that says “Ruby Installer for Windows”. Type the following commands and then hit enter. In some cases, a Ruby installation may not be compatible with a particular gem, so you’ll need to build it manually.Īfter downloading and installing Ruby, open a terminal window. The Ruby README file contains information on how to build the Ruby interpreter from the source. Alternatively, you can install the Ruby source code and then use third-party tools to manage installed Ruby.īefore installing Ruby, you must understand what it does. If you want to install Ruby on a Windows system, you can use the RubyInstaller for Windows. ![]() You can run Ruby on Windows with either tool, but you should choose a Mac or Linux machine if you are planning to develop on a Mac. The Vagrant virtual machine software uses VM software and lets you choose from a number of ready-to-use machine images. These virtual machine applications let you interact with the UI and code on the virtual machine. Hope this helps in sorting out problems faced on windows system when using pik.While Ruby on Windows doesn’t come with a dedicated installer, you can install it with VirtualBox or VMWare. Once you start using the required ruby version you can install multiple version of rails as well. Now to use ruby version 1.9.3 I would use the command pik 193 On my machine pik list shows the following 187: ruby 1.8.7p374 () i386-mingw32 To view pik commands execute pik help commands To view the installed ruby versions execute pik list Now you are ready to use multiple versions of Ruby in Windows To verify the changes done to the config.yml file and whether they are correct or not execute the following ruby dk.rb reviewĪccording to DevKit website this step installs (or updates) an operating system.rb file into the relevant directory needed to implement a RubyGems preinstall hook and a devkit.rb helper library file into \lib\ruby\site_ruby Here the number 187, 193 or 200 are the ruby versions minus dots. You can also add a Ruby version if missing.įor example I added below one more ruby version. The file would contain something like this. For example on my system the current user is anirudh so the path would beĬ:\Documents and Settings\anirudh\.pik\config.yml ![]() Note- Here user would be the current user's name. Open this config.yml file in a text editor present atĬ:\Documents and Settings\user\.pik\config.yml Then execute the following ruby dk.rb init Install DevKit and change directory to the installed location from the terminal. "The RubyInstaller Development Kit is a toolkit that makes it easy to build and use native C/C++ extensions such as RDiscount and RedCloth for Ruby on Windows." You will also need to install DevKit from Install pik without changing any options to avoid confusions. Generally Ruby is installed by default in Drive C if the user did not change the path and the folder name is usually by the name of Rubyversion.įor example if you installed Ruby version 2.0.0 then the ruby folder would be by the name of Ruby200. This ensures that you are able to execute ruby files from any directory. It contains the various version of ruby installers. So I will take you through a simple tutorial of installing pik and managing your ruby versions.įirst and foremost, install which ever ruby versions you require on your system from. It can be used from the Windows command line (cmd.exe), Windows PowerShell, or Git Bash." "pik is a tool to manage multiple versions of ruby on Windows. And suppose you want to install different projects which require different version of Ruby and Rails on Windows.Ĭan be a challenging task? I don't think so as pik comes to your rescue. Managing multiple versions of Ruby on Windows can be a harrowing task since RVM is not present for Windows environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |