Install gems with C-extensions and additional library dependencies See the Wiki for further instructions to the ridk command. Ridk enable can be used to enable MSYS2 development tools on the running console. Help | -help | -? | /? Display this help and exit Version Print RubyInstaller and MSYS2 versions Install Install MSYS2 and MINGW dev toolsĮxec Execute a command within MSYS2 contextĮnable Set environment variables for MSYS2ĭisable Unset environment variables for MSYS2 See ridk help for further options: Usage: Ridk is a cmd/powershell script which can be used to install MSYS2 components, to issue MSYS commands like pacman or to set environment variables for using MSYS2 development tools from the running shell. Its also possible to install MSYS2 manually from and run ridk install afterwards to add non default, but required development tools.įor unattended install of Ruby and MSYS2 see the FAQ chocolatey install. Some gems require additional packages, which can be installed per pacman. It installs a MSYS2/MINGW build environment into the ruby directory that ships common build tools and libraries. In order to install C based source gems, it's recommended to use the Devkit installer version. The non-Devkit installer file is enough to use pure Ruby gems or fat binary gems for 圆4-mingw32 or x86-mingw32. Download and install the latest RubyInstaller2:.This and more changes are documented in the CHANGELOG. It therefore integrates well into MSYS2 after installation on the target system to provide a build-and-runtime environment for installation of gems with C-extensions. In contrast to the old RubyInstaller it does not provide its own DevKit, but makes use of the rich set of MINGW libraries from the MSYS2 project. It is licensed under the 3-clause Modified BSD License. It is the successor to the MSYS1 based RubyInstaller which was used for Ruby-2.3 and older. This saves you a lot of trouble if you later want to run your Ruby programs on, say, Linux, or in a Cygwin environment.This project provides an Installer for Ruby-2.4 and newer on Windows based on the MSYS2 toolchain. Just one note for the practical side: Once you have installed the text editor of your choice, set it up so that it generates files with just LF line endings (the default on Windows is usually CR LF). Basically, you need two things for a start: A good text editor, and a console (which could be the Windows command prompt console), from which you will start several instances (some of those consoles running irb, some just the command prompt of your shell). I understand that, if you are new to programming in general, this might sound a bit complicated. Since I don’t like neither the “old” Windows “DOS-shell” nor the Power Shell, I’m using on Windows the Cygwin environment, and within it I use the Z-Shell (zsh) as a shell, and mintty (which is also a Cygwin program) as a console (which I also prefer over the Windows console), but here again, this is a personal choice. I find for many tasks using a shell easier than doing it from Ruby. Technically you could do all of this from within irb, but to what extend you consider it convenient, you have to find out by yourself. One (or more) running irb, where I can quickly try out some Ruby expression (this is why I don’t have any need to just syntax-check them - I want to run them!) and one or more windows running some shell, from where I’m launchin programs and so on. I usually work with several console windows open. Well, you didn’t say that you are on the Windows operating system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |