Note: This can be made the default option by configuring the following ~/.gemrc file: This is required for executable gems to work without typing out the full location, although libraries will work without having to modify your path. ~/.profile export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" ![]() The recommended way to setup that is by manually specifying your $GEM_HOME, which then can be appended to your $PATH environment variable in order to allow RubyGems binaries to be executed: This is considered the best way to manage gems on Arch, because otherwise they might interfere with gems installed by Pacman. ![]() It can be installed with the rubygems package, which is a dependency of ruby.īy default in Arch Linux, when running gem, gems are installed per-user (into ~/.local/share/gem/ruby/), instead of system-wide (into /usr/lib/ruby/gems/). Somewhat comparable to what pacman is to Arch Linux. RubyGems is a package manager for Ruby modules (called gems), The Java implementation of Ruby, JRuby can be installed with the jruby package. ![]() You can then query the docs with: ri Array, ri Array.pop etc. Install ruby-rdoc and ruby-docs for the documentation itself. To make documentation available through the ri command-line tool, The easiest way is to use one of RVM, chruby AUR, rbenv, asdf-vm AUR. If you want to run multiple versions on the same system (e.g. ![]() To install IRB, install the ruby-irb package. Ruby is a dynamic, interpreted, open source programming language with a focus on simplicity and productivity.įor the latest version of Ruby, install the ruby package.
0 Comments
Leave a Reply. |