Open ConEmu Setup tasks dialog by clicking on drop-down icon beside green icon with plus sign in the upper right corner. Look at the text box next to Target label on Shortcut tab. Right-click on Interactive Ruby and Properties in the context menu. Click again on Start Menu and on Ruby2.2.1-p85 sub-menu. This is excellent tool if you started to learn Ruby. Each statement is immediately executed and you can see its results. This program is actually Ruby interpreter which you can use to experiment with your code in real-time. New Command Prompt opens with Interactive Ruby ( irb) already started. You can find them under Ruby2.2.1-p85 sub-menu item.įirst shortcut has a title “Interactive Ruby”. Besides it created few shortcuts in the start menu. This is not related only to programming and we will use same approach here.Īpart from the fact that installer has put all Ruby files in the selected directory, C:\Ruby\22 in our case it added this path to system path and that's why we are able to start ruby in new command prompt. Lot of experienced developers agree that good way to learn programming is to explore other's code. Let's stop here for the moment and check what installer has actually done. When installation is complete open up new Command Prompt or ConEmu window and check that everything is installed correctly: Figure 2-1 shows installer's page with these options. This step can be skipped if you do not want to start Ruby scripts from GUI. rbw files with this Ruby installation which will give you a possibility to execute Ruby scripts just by double-clicking Ruby files. However it is not essential at this moment since, during this tutorial, we will handle this in a different way. This way you will be able to use Ruby in every Command Prompt without need to alter system path every time. Next important thing is to add Ruby executables to the path. We will install it in C:\Ruby\22 since we will keep all versions in the same root directory. You can change this path to suite your needs but be aware of the fact that MinGW tools, needed for instaling some types of gems (which we will cover later), do not handle paths with spaces well so you might face various problems if you install Ruby to standard Windows location C:\Program Files. By default installer offers you to install Ruby to C:\Ruby22. It is recommended to install Ruby on the path without spaces. However there are few things you must pay attention to. Double click on the downloaded executable file (rubyinstaller-2.2.1.exe) and follow instructions on the screen. Go to download section of RubyInstaller site and download Ruby 2.2.1-p85 installer. Main version of Ruby we'll be using in this book is 2.2.1, so that's the first version we will install.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |