Home > Article > Operation and Maintenance > what is linux gem
linux gem is a development toolset, a Ruby-based library and framework that supports developers to develop more efficient applications; the method for installing GEM on Linux is: 1. Use the source command to install the standard GEM executable file; 2. Execute the "$ bundle install" command; 3. Specify the GEM you need to install through "gem install rails -v 5.0.7".
The operating environment of this tutorial: linux5.9.8 system, gem version 5.0.7, Dell G3 computer.
What is linux gem?
Step-by-step guide for installing GEM on the Linux operating system
GEM (development toolset) is an excellent development toolset. It is a library and framework based on Ruby. Support developers to develop more efficient applications. Most applications can be installed through GEM on Linux, and the installation steps are not complicated. We will now introduce the step-by-step guide to installing GEM in detail.
First, install the standard GEM executable file. On Linux, you can use the source command:
$ source 项目路径/Gemfile
Next, install the project’s dependency packages. First, use the bundle command to install GEM:
$ bundle install
After that, you need to manually specify the GEM you need to install. Use the following command to specify the GEM version (take rails GEM as an example):
gem install rails -v 5.0.7
After the installation is completed, you can start using GEM. Such as changing the file:
$ gem update -system
In addition, if you want to update GEM to the latest version on Linux, you can use the following instructions:
$ sudo gem update
The above is the step-by-step guide for installing GEM on Linux, just follow the above With a few steps of instructions, you can quickly complete the installation of GEM. In addition, due to the high complexity of GEM, it is recommended to refer to the official documentation for installation to achieve more accuracy and reliability.
Recommended learning: "linux video tutorial"
The above is the detailed content of what is linux gem. For more information, please follow other related articles on the PHP Chinese website!